fish: Fixed tab completion with sudo (close #2705)

We don't have /sbin and /usr/sbin, so fish complains.
This commit is contained in:
Georges Dubus 2014-05-20 15:36:10 +02:00 committed by Vladimír Čunát
parent 651595c969
commit 927c41e258

View File

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
-e "s|which |${which}/bin/which |" \
-i "$out/share/fish/functions/_.fish"
sed -i "s|Popen(\['manpath'|Popen(\['${man_db}/bin/manpath'|" "$out/share/fish/tools/create_manpage_completions.py"
sed -i "s|/sbin /usr/sbin||" \
"$out/share/fish/functions/__fish_complete_subcommand_root.fish"
'';
meta = with stdenv.lib; {