From 6b5621353981ee36280e6c4f08540fc24c19ca26 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 20 Apr 2021 17:09:48 +1000 Subject: [PATCH] shell-completion: use base.lst, not xorg.lst Since 2005 xorg.lst has been the legacy symlink to the real file base.lst. (cherry picked from commit 7a4afd3a15f201a2230dce1f640fc37d18bc39ac) --- shell-completion/zsh/_localectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-completion/zsh/_localectl b/shell-completion/zsh/_localectl index 1c7ac82b65..851ac8253b 100644 --- a/shell-completion/zsh/_localectl +++ b/shell-completion/zsh/_localectl @@ -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]}:# *}# }%% *} ) -- 2.25.1