aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/zsh')
-rw-r--r--modules/tools/zsh/default.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/tools/zsh/default.nix b/modules/tools/zsh/default.nix
index 71e0be3..882653b 100644
--- a/modules/tools/zsh/default.nix
+++ b/modules/tools/zsh/default.nix
@@ -4,16 +4,13 @@
options.tools.zsh = {
enable = lib.mkEnableOption "Enables zsh.";
};
-
+
config = lib.mkIf config.tools.zsh.enable {
programs.zsh = {
enable = true;
dotDir = "${config.xdg.configHome}/zsh";
history.path = "${config.xdg.cacheHome}/zsh/history";
initContent = ''
-${if config.tools.fzf.enable then
- "eval \"$(fzf --zsh)\""
-else ""}
setopt PROMPT_SUBST
autoload -U colors && colors
@@ -22,7 +19,7 @@ bindkey "^[[3~" delete-char
bindkey "^?" backward-delete-char
'';
};
-
+
home.sessionVariables.SHELL = "${config.programs.zsh.package}/bin/zsh";
};
}