mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue