From 88e8237653fe2b53d4f63345f788449d02657735 Mon Sep 17 00:00:00 2001 From: Rosa Date: Thu, 26 Mar 2026 09:27:34 -0400 Subject: direnv --- modules/user/zsh/default.nix | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'modules/user/zsh') 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; + }; }; } -- cgit v1.3.1