zsh: Disable globbing of # globally

Otherwise using nix shell et al. as root is a pain.
This commit is contained in:
Simon Bruder 2022-03-26 12:37:11 +01:00
parent d106f39685
commit da56357ad8
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -64,8 +64,14 @@
# Clean temporary files on boot # Clean temporary files on boot
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
# Set zsh as default shell # Set zsh as default shell with reasonable default config for all users
programs.zsh.enable = true; programs.zsh = {
enable = true;
loginShellInit = ''
# do not glob # (conflicts with nix flakes)
disable -p '#'
'';
};
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
environment.etc."zshrc.local".source = "${pkgs.grml-zsh-config}/etc/zsh/zshrc"; environment.etc."zshrc.local".source = "${pkgs.grml-zsh-config}/etc/zsh/zshrc";