From adc3b0e122cc1fc09d60a810ef00c8abb898982f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 4 Feb 2016 23:31:32 +0100 Subject: [PATCH] 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. --- share/completions/eselect.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/eselect.fish b/share/completions/eselect.fish index 94d31b404..0b891230a 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