summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/settings/zsh.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 5d62101a..b409e728 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -4,6 +4,7 @@ let
   inherit (pkgs) stdenv;
   lsOptions = if stdenv.isDarwin then "-p" else "-v --group-directories-first";
   lsIsoDate = if stdenv.isDarwin then "" else "--time-style=long-iso";
+  zshrc = ".config/zsh/.zshrc";
   mkZshPlugin = attrs: {
     name = attrs.name;
     src = stdenv.mkDerivation {
@@ -254,4 +255,6 @@ in
 
     '' + builtins.readFile ../zsh/.config/zsh/.zshrc;
   };
+
+  home.file."${zshrc}".onChange = "${pkgs.zsh}/bin/zsh -i -c 'autoload -Uz compinit && compinit && zcompile ${zshrc}'";
 }