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>
Sat, 15 May 2021 18:25:24 +0000 (20:25 +0200)
Since 2005 xorg.lst has been the legacy symlink to the real file base.lst.

(cherry picked from commit 7a4afd3a15f201a2230dce1f640fc37d18bc39ac)
(cherry picked from commit 6b5621353981ee36280e6c4f08540fc24c19ca26)
(cherry picked from commit f66253f0e3bca4bb5e3a4ce9a54c3f1de7d3e886)

shell-completion/zsh/_localectl

index a712473ce248ad1d66617dbdbc6034b853f22e15..7f4ff7d0c815443f7d8eb2c8afd97b9e12ef30bf 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]}:#  *}#  }%% *} )