]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: use base.lst, not xorg.lst
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 20 Apr 2021 07:09:48 +0000 (17:09 +1000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Apr 2021 08:19:41 +0000 (10:19 +0200)
Since 2005 xorg.lst has been the legacy symlink to the real file base.lst.

shell-completion/zsh/_localectl

index 1c7ac82b65967731f6a845135ae2fa3c626de307..851ac8253b0342aef1c3d290985e59ac1e67f9ea 100644 (file)
@@ -39,7 +39,7 @@ _localectl_set-x11-keymap() {
         local -a _file _layout _model _variant _options
         local _xorg_lst
         _xorg_lst=${"$($commands[pkg-config] xkeyboard-config --variable=xkb_base)"}
-        _file=( ${(ps:\n\!:)"$(<$_xorg_lst/rules/xorg.lst)"} )
+        _file=( ${(ps:\n\!:)"$(<$_xorg_lst/rules/base.lst)"} )
         _layout=( ${${${(M)${(f)_file[2]}:#  *}#  }%% *} )
         _model=( ${${${(M)${(f)_file[1]}:#  *}#  }%% *} )
         _variant=( ${${${(M)${(f)_file[3]}:#  *}#  }%% *} )