Fix sudo/doas completions not using /sbin

Fixes #6259
[ci skip]
This commit is contained in:
Johannes Altmanninger 2019-10-31 18:25:46 +01:00 committed by David Adam
parent 713c8f2d32
commit e0d4a1d78b
3 changed files with 2 additions and 4 deletions

View file

@ -23,6 +23,7 @@ end
function __fish_complete_doas_subcommand
set -l args (__fish_doas_print_remaining_args)
set -lx -a PATH /sbin /usr/sbin
complete -C"$args"
end

View file

@ -33,6 +33,7 @@ end
function __fish_complete_sudo_subcommand
set -l args (__fish_sudo_print_remaining_args)
set -lx -a PATH /sbin /usr/sbin
complete -C"$args"
end

View file

@ -1,4 +0,0 @@
function __fish_complete_subcommand_root -d "Run the __fish_complete_subcommand function using a PATH containing /sbin and /usr/sbin"
set -lx -p PATH /sbin /usr/sbin 2>/dev/null
__fish_complete_subcommand $argv
end