From 927c41e2585cf4b8d7fc1e64f8f9927af710cf94 Mon Sep 17 00:00:00 2001 From: Georges Dubus Date: Tue, 20 May 2014 15:36:10 +0200 Subject: [PATCH] fish: Fixed tab completion with sudo (close #2705) We don't have /sbin and /usr/sbin, so fish complains. --- pkgs/shells/fish/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/shells/fish/default.nix b/pkgs/shells/fish/default.nix index 7b70e98d2cd4..e69c033cf404 100644 --- a/pkgs/shells/fish/default.nix +++ b/pkgs/shells/fish/default.nix @@ -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; {