From da56357ad840574aec80b7eec695bd1bbc2217f6 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 26 Mar 2022 12:37:11 +0100 Subject: [PATCH] zsh: Disable globbing of # globally Otherwise using nix shell et al. as root is a pain. --- modules/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index 85a58b6..bd9d119 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -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";