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.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 47945755..64157ba3 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -36,6 +36,9 @@ in
         mkdir -p ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/
         ln ~/.cache/zsh/history ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/history
       fi
+      if [[ ! -d "${config.home.sessionVariables.XDG_CACHE_HOME}/zsh" ]]; then
+        mkdir -p ${config.home.sessionVariables.XDG_CACHE_HOME}/zsh
+      fi
     '';
 
   programs.zsh = {
@@ -50,7 +53,7 @@ in
     history = {
       expireDuplicatesFirst = true;
       extended = true;
-      path = "\${XDG_DATA_HOME#$HOME/}/zsh/history";
+      path = "\${XDG_DATA_HOME}/zsh/history";
       save = 20000;
       size = 10000;
       share = false;