mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +00:00
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:
parent
29d06760bc
commit
adc3b0e122
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue