mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08:00
Fix test error in localectl completion
localectl may emit an error for whatever reason. The localectl completion runs localectl in a command substitution so our stderr redirect doesn't apply. Just redirect to null. Hopefully this fixes the tests.
This commit is contained in:
parent
4e1b5e733f
commit
939ce10616
|
@ -6,7 +6,7 @@ for cmd in $commands
|
|||
complete -c localectl -n "not __fish_seen_subcommand_from $commands" -a $cmd
|
||||
end
|
||||
set -l localevars LANG LC_MESSAGES LC_{CTYPE,NUMERIC,TIME,COLLATE,MONETARY,MESSAGES,PAPER,NAME,ADDRESS,TELEPHONE,MEASUREMENT,IDENTIFICATION,ALL}
|
||||
set -l locales $localevars=(localectl list-locales)
|
||||
set -l locales $localevars=(localectl list-locales 2>/dev/null)
|
||||
|
||||
function __fish_localectl_layout
|
||||
set -l cmd (commandline -poc)
|
||||
|
|
Loading…
Reference in New Issue
Block a user