summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2020-06-16 13:06:42 +0200
committerAlan Pearce2020-06-16 13:06:42 +0200
commit986e34637a0b15e7c02ebef14f73585583a5bcbd (patch)
tree0ffba3380dab19d0e0d72bd1b19afc7c3538dab1 /user/settings
parent228df3ab08069e5061e7c07e731e7a3da536f5ab (diff)
downloadnixfiles-986e34637a0b15e7c02ebef14f73585583a5bcbd.tar.lz
nixfiles-986e34637a0b15e7c02ebef14f73585583a5bcbd.tar.zst
nixfiles-986e34637a0b15e7c02ebef14f73585583a5bcbd.zip
zsh: fix history migration
Diffstat (limited to 'user/settings')
-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
   '';