]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh-completion: fix option ordering in set-x11-keymap (#3646)
authorntzrmtthihu777 <ntzrmtthihu777@gmail.com>
Fri, 15 Jul 2016 08:59:45 +0000 (03:59 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Jul 2016 08:59:45 +0000 (04:59 -0400)
shell-completion/zsh/_localectl

index d8af4d186374a100c7384e361bdf62c6f31cf381..54c2d456e41de51edcb5ea26b0322ca83e80a775 100644 (file)
@@ -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}' )"} )