Skip to content

Commit

Permalink
fish: Fixed tab completion with sudo (close #2705)
Browse files Browse the repository at this point in the history
We don't have /sbin and /usr/sbin, so fish complains.

(cherry picked from commit 927c41e)
  • Loading branch information
madjar authored and vcunat committed Jun 10, 2014
1 parent b22f28b commit f6f9e85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/shells/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; {
Expand Down

0 comments on commit f6f9e85

Please sign in to comment.