mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
completion generator: Define parent_paths directly if MANPATH is set
This commit is contained in:
parent
3e17b8fccc
commit
94b71353ef
1 changed files with 2 additions and 2 deletions
|
@ -859,7 +859,7 @@ def get_paths_from_manpath():
|
||||||
import subprocess, os
|
import subprocess, os
|
||||||
# $MANPATH takes precedence, just like with `man` on the CLI.
|
# $MANPATH takes precedence, just like with `man` on the CLI.
|
||||||
if os.getenv("MANPATH"):
|
if os.getenv("MANPATH"):
|
||||||
manpath = os.getenv("MANPATH")
|
parent_paths = os.getenv("MANPATH").strip().split(':')
|
||||||
else:
|
else:
|
||||||
# Some systems have manpath, others have `man --path` (like Haiku).
|
# Some systems have manpath, others have `man --path` (like Haiku).
|
||||||
# TODO: Deal with systems that have neither (OpenBSD)
|
# TODO: Deal with systems that have neither (OpenBSD)
|
||||||
|
|
Loading…
Reference in a new issue