diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-04 13:22:06 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-04 13:22:06 -0700 |
commit | 15cf06438e4438e21ec4048b1848f6e1bf60e072 (patch) | |
tree | a89b47a1938e178fbcfc2910fe64cf5f8ae4c336 | |
parent | 93b296d89987b8c4ba7e3b4341c90d2ea45737fb (diff) |
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.
-rw-r--r-- | share/functions/__fish_complete_subcommand_root.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_complete_subcommand_root.fish b/share/functions/__fish_complete_subcommand_root.fish index f4df8d9d..822820fd 100644 --- a/share/functions/__fish_complete_subcommand_root.fish +++ b/share/functions/__fish_complete_subcommand_root.fish @@ -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 |