zsh: Disable globbing of # globally
Otherwise using nix shell et al. as root is a pain.
This commit is contained in:
parent
d106f39685
commit
da56357ad8
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue