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.
This commit is contained in:
Fabian Homborg 2016-02-04 23:31:32 +01:00
parent 29d06760bc
commit adc3b0e122

View file

@ -19,7 +19,7 @@ function __fish_complete_eselect_action_options
# Alter further php completion # Alter further php completion
if [ (__fish_print_cmd_args_without_options)[2] = 'php' ] if [ (__fish_print_cmd_args_without_options)[2] = 'php' ]
eselect php list-modules | string split " " eselect php list-modules ^/dev/null | string split " "
return return
end 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/' 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' 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
end end