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, 2 insertions, 1 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 0efda5de..d5bdaf5c 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -31,7 +31,8 @@ in
 
   home.activation.linkOldZshHistory = config.lib.dag.entryAfter ["writeBoundary"] ''
     if [[ ! -f ''${XDG_DATA_HOME}/zsh/history ]]; then
-      ln ${toString ./.cache/zsh/history} ''${XDG_DATA_HOME}/zsh/history
+      mkdir -p ''${XDG_DATA_HOME}/zsh/
+      ln ~/.cache/zsh/history ''${XDG_DATA_HOME}/zsh/history
     fi
   '';