diff options
author | Dan McGee <dan@archlinux.org> | 2012-01-19 16:23:57 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-19 16:28:04 -0600 |
commit | de56874cc9cdbfa96dd6360818ee6f21da3e1c86 (patch) | |
tree | 7fee5e473388f71522068cd49c7b156fea0e71b4 /contrib/zsh_completion.in | |
parent | 1eb40c83287b07ac7428ad2d58504f386fad98f1 (diff) | |
download | pacman-de56874cc9cdbfa96dd6360818ee6f21da3e1c86.tar.xz |
contrib/bash_completion: don't print stderr messages
If you are a crazy developer like me and have bogus options in your
pacman.conf file, the tab completion gets messed up by the output on
stderr. Suppress it.
Fix the same basic issue in zsh_completion, thanks to the work by
Florian Pritz <bluewind@xinu.at>.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib/zsh_completion.in')
-rw-r--r-- | contrib/zsh_completion.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in index 59551c58..2cfc946c 100644 --- a/contrib/zsh_completion.in +++ b/contrib/zsh_completion.in @@ -276,7 +276,7 @@ _pacman_completions_repositories() { # $cmd must be declared by calling function _pacman_get_command() { # this is mostly nicked from _perforce - cmd=( "pacman" ) + cmd=( "pacman" "2>/dev/null") integer i for (( i = 2; i < CURRENT - 1; i++ )); do if [[ ${words[i]} = "--config" || ${words[i]} = "--root" ]]; then |