From 51d537e03ad877566f00af3c6a1c00340512ac65 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 12 Mar 2026 18:48:40 +0530 Subject: Using spaces instead of tabs --- modules/tools/zsh/default.nix | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'modules/tools/zsh') 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"; + }; } -- cgit v1.2.3