aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/eselect.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-04 23:31:32 +0100
committerGravatar Fabian Homborg <FHomborg@gmail.com>2016-02-04 23:31:32 +0100
commitadc3b0e122cc1fc09d60a810ef00c8abb898982f (patch)
tree3972e1aad7cf3e60127af6e907f0c244a1348d56 /share/completions/eselect.fish
parent29d06760bc7055bd117b965021843784a66b3424 (diff)
eselect completion: Silence eselect php output
The version with the features we use isn't in gentoo stable yet and older versions print a very ugly warning.
Diffstat (limited to 'share/completions/eselect.fish')
-rw-r--r--share/completions/eselect.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/completions/eselect.fish b/share/completions/eselect.fish
index 94d31b40..0b891230 100644
--- a/share/completions/eselect.fish
+++ b/share/completions/eselect.fish
@@ -19,7 +19,7 @@ function __fish_complete_eselect_action_options
# Alter further php completion
if [ (__fish_print_cmd_args_without_options)[2] = 'php' ]
- eselect php list-modules | string split " "
+ eselect php list-modules ^/dev/null | string split " "
return
end
@@ -38,7 +38,7 @@ function __fish_complete_eselect_php_actions
set -l sedregexp 's/^\s*\[([0-9]+)\]\s+([A-Za-z0-9\.]+).*/\1\t\2/'
if test (__fish_print_cmd_args_without_options)[3] = 'set'
- eselect php list (__fish_print_cmd_args_without_options)[-1] | sed -r $sedregexp
+ eselect php list (__fish_print_cmd_args_without_options)[-1] ^/dev/null | sed -r $sedregexp
end
end