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
|
# 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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue