summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2020-07-06 12:48:18 +0200
committerAlan Pearce2020-07-06 12:48:18 +0200
commitcbc125670e86c7ce9419b6e84fefeaa5c6ef20b4 (patch)
treed5c4d5920b9a003d7de6843f45341bb7b76d32ed /user
parent89af66a446fc3d04647d935a1540f0679986d84a (diff)
downloadnixfiles-cbc125670e86c7ce9419b6e84fefeaa5c6ef20b4.tar.lz
nixfiles-cbc125670e86c7ce9419b6e84fefeaa5c6ef20b4.tar.zst
nixfiles-cbc125670e86c7ce9419b6e84fefeaa5c6ef20b4.zip
zsh: fix XDG_DATA_HOME error on first install
Diffstat (limited to 'user')
-rw-r--r--user/settings/zsh.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index b838e2bc..5ad9aa7f 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -30,9 +30,9 @@ in
   ];
 
   home.activation.linkOldZshHistory = config.lib.dag.entryAfter ["writeBoundary"] ''
-    if [[ ! -f ''${XDG_DATA_HOME}/zsh/history ]]; then
-      mkdir -p ''${XDG_DATA_HOME}/zsh/
-      ln ~/.cache/zsh/history ''${XDG_DATA_HOME}/zsh/history
+    if [[ ! -f ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/history ]]; then
+      mkdir -p ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/
+      ln ~/.cache/zsh/history ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/history
     fi
   '';