fish: don't use manpath(1) from PATH in functions/man.fish

Close #12762.
This commit is contained in:
Nathan Zadoks 2016-02-02 02:47:02 +01:00 committed by Vladimír Čunát
parent 9468f2c925
commit 1072e2bf4d

View File

@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
sed -i "s|(hostname\||(${nettools}/bin/hostname\||" "$out/share/fish/functions/fish_prompt.fish"
sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py"
sed -i "s|command manpath|command ${man_db}/bin/manpath|" "$out/share/fish/functions/man.fish"
'' + ''
sed -i "s|/sbin /usr/sbin||" \
"$out/share/fish/functions/__fish_complete_subcommand_root.fish"