zsh: Disable globbing of # globally

Otherwise using nix shell et al. as root is a pain.
pull/64/head
Simon Bruder 2022-03-26 12:37:11 +01:00
parent d106f39685
commit da56357ad8
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 8 additions and 2 deletions

View File

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