mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
zsh-completion: fix option ordering in set-x11-keymap (#3646)
This commit is contained in:
parent
1071fd0823
commit
b010a6a1ae
|
@ -36,8 +36,8 @@ _localectl_set-x11-keymap() {
|
|||
local _xorg_lst
|
||||
_xorg_lst=${"$($commands[pkg-config] xkeyboard-config --variable=xkb_base)"}
|
||||
_file=( ${(ps:\n\!:)"$(<$_xorg_lst/rules/xorg.lst)"} )
|
||||
_layout=( ${${${(M)${(f)_file[1]}:# *}# }%% *} )
|
||||
_model=( ${${${(M)${(f)_file[2]}:# *}# }%% *} )
|
||||
_layout=( ${${${(M)${(f)_file[2]}:# *}# }%% *} )
|
||||
_model=( ${${${(M)${(f)_file[1]}:# *}# }%% *} )
|
||||
_variant=( ${${${(M)${(f)_file[3]}:# *}# }%% *} )
|
||||
_options=( ${${${(M)${(f)_file[4]}:# *}# }%% *} )
|
||||
#_layout=( ${(f)"$( echo $_file[1] | awk '/^ / {print $1}' )"} )
|
||||
|
|
Loading…
Reference in a new issue