-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setxkbmap: broken zsh completion #46025
Comments
I can reproduce it on I just had a short look through the commit log of I can try to fix it (didn't find further related issues ATM, let's see)... |
I just managed to get it working by adding |
@teto would you mind having a look at this patch: Ma27@7299cd6 Will file it tomorrow, but I'm not sure, why not sure if there's a better way (don't like to manually specify |
yep it seems to have fixed it :) |
Instead of searching `/usr` it should search for the `xkb`, $XDG_DATA_DIRS will be searched. With this approach we allow compliance on NixOS and non-NixOS systems to find `symbols` in the `xkb` directory. The patch has been accepted by upstream, but isn't released yet, so this is mainly a temporary fix until we can bump ZSH to the next stable version. The `xserver` module links `/share/X11/xkb` to `/run/current-system` to make this possible. The fix can be tested inside the following VM: ``` { zshtest = { programs.zsh.enable = true; users.extraUsers.vm = { password = "vm"; isNormalUser = true; }; services.xserver.enable = true; }; } ``` Fixes NixOS#46025
Issue description
Steps to reproduce
type "setxkbmap" then try to trigger completion with
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
"x86_64-linux"
Linux 4.14.24, NixOS, 18.09.git.baa158d (Jellyfish)
no
yes
nix-env (Nix) 2.0.4
/home/teto/nixpkgs
The text was updated successfully, but these errors were encountered: