mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-08 07:27:13 +08:00
![Kevin Ballard](/assets/img/avatar_default.png)
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.
7 lines
221 B
Fish
7 lines
221 B
Fish
|
|
|
|
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 ^/dev/null
|
|
__fish_complete_subcommand $argv
|
|
end
|