aboutsummaryrefslogtreecommitdiff
path: root/modules/user/zsh/default.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-03-26 09:27:34 -0400
committerRosa <rosaontheweb@proton.me>2026-03-26 09:27:34 -0400
commit88e8237653fe2b53d4f63345f788449d02657735 (patch)
tree8fea19593d0d09c92de06b15ee53cdb442432dd0 /modules/user/zsh/default.nix
parenta54434a5f8034918414c74fda4bf1baea68e025d (diff)
direnv
Diffstat (limited to 'modules/user/zsh/default.nix')
-rw-r--r--modules/user/zsh/default.nix33
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;
+ };
};
}