aboutsummaryrefslogtreecommitdiffstats
path: root/modules/terminal/zsh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/zsh/default.nix')
-rw-r--r--modules/terminal/zsh/default.nix19
1 files changed, 3 insertions, 16 deletions
diff --git a/modules/terminal/zsh/default.nix b/modules/terminal/zsh/default.nix
index 0f0471c..8b7897c 100644
--- a/modules/terminal/zsh/default.nix
+++ b/modules/terminal/zsh/default.nix
@@ -25,22 +25,9 @@
dotDir = "${config.xdg.configHome}/zsh";
history.path = "${config.xdg.cacheHome}/zsh/history";
enableCompletion = true;
- initContent = ''
- setopt PROMPT_SUBST
-
- # Vi insert/command modes for command-line editing. Escape enters normal mode.
- bindkey -v
- KEYTIMEOUT=1
-
- autoload -U colors && colors
-
- export GPG_TTY="$(tty)"
- gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
-
- bindkey "^[[3~" delete-char
- bindkey "^?" backward-delete-char
- ${nixCommandWrappers}
- '';
+ initContent = builtins.replaceStrings [ "@@NIX_COMMAND_WRAPPERS@@" ] [ nixCommandWrappers ] (
+ builtins.readFile ./init.sh
+ );
};
home.sessionVariables.SHELL = "${lib.getExe config.terminal.zsh.package}";