mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08:00
Suppress PATH errors in sudo tab-completion
Setting a non-existant path component to PATH logs an error to stderr. This is not appropriate for non-interactive temporary modifications, like the one done by the `sudo` completion helper function.
This commit is contained in:
parent
93b296d899
commit
15cf06438e
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
function __fish_complete_subcommand_root -d "Run the __fish_complete_subcommand function using a PATH containing /sbin and /usr/sbin"
|
||||
set -lx PATH /sbin /usr/sbin $PATH
|
||||
set -lx PATH /sbin /usr/sbin $PATH ^/dev/null
|
||||
__fish_complete_subcommand $argv
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user