diff options
Diffstat (limited to 'modules/user/zsh/default.nix')
| -rw-r--r-- | modules/user/zsh/default.nix | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/modules/user/zsh/default.nix b/modules/user/zsh/default.nix index 3901f36..48876fc 100644 --- a/modules/user/zsh/default.nix +++ b/modules/user/zsh/default.nix @@ -5,21 +5,24 @@ ... }: { - config.programs.zsh = { - enable = lib.mkDefault true; # default user shell - autocd = true; - autosuggestion = { - enable = lib.mkDefault true; - strategy = [ - "history" - "completion" - ]; - }; + config.programs = { + direnv.enable = lib.mkDefault config.programs.zsh.enable; + zsh = { + enable = lib.mkDefault true; # default user shell + autocd = true; + autosuggestion = { + enable = lib.mkDefault true; + strategy = [ + "history" + "completion" + ]; + }; - history.ignoreAllDups = true; - initContent = builtins.readFile ./zshrc.zsh; - loginExtra = builtins.readFile ./zlogin.zsh; - setOptions = [ "extendedglob" ]; - syntaxHighlighting.enable = true; + history.ignoreAllDups = true; + initContent = builtins.readFile ./zshrc.zsh; + loginExtra = builtins.readFile ./zlogin.zsh; + setOptions = [ "extendedglob" ]; + syntaxHighlighting.enable = true; + }; }; } |
