mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
fish: Fixed tab completion with sudo (close #2705)
We don't have /sbin and /usr/sbin, so fish complains.
This commit is contained in:
parent
651595c969
commit
927c41e258
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
|||||||
-e "s|which |${which}/bin/which |" \
|
-e "s|which |${which}/bin/which |" \
|
||||||
-i "$out/share/fish/functions/_.fish"
|
-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|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; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user