From 3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 9 Mar 2026 20:26:17 +0530 Subject: Some minor code refactoring --- modules/tools/zsh/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/tools/zsh/default.nix') 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"; }; } -- cgit v1.2.3