diff options
Diffstat (limited to 'modules/tools/zsh/default.nix')
| -rw-r--r-- | modules/tools/zsh/default.nix | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/modules/tools/zsh/default.nix b/modules/tools/zsh/default.nix index 882653b..0fed380 100644 --- a/modules/tools/zsh/default.nix +++ b/modules/tools/zsh/default.nix @@ -1,25 +1,25 @@ { config, lib, ... }: { - 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 = '' -setopt PROMPT_SUBST + 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 = '' + setopt PROMPT_SUBST -autoload -U colors && colors + autoload -U colors && colors -bindkey "^[[3~" delete-char -bindkey "^?" backward-delete-char - ''; - }; - - home.sessionVariables.SHELL = "${config.programs.zsh.package}/bin/zsh"; - }; + bindkey "^[[3~" delete-char + bindkey "^?" backward-delete-char + ''; + }; + + home.sessionVariables.SHELL = "${config.programs.zsh.package}/bin/zsh"; + }; } |
