summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-04-08 21:48:58 +0200
committerAlan Pearce2023-04-08 21:48:58 +0200
commit172f32560aafdf3353716d31c1fa29e85064204a (patch)
tree0b339282c00be350b4fa2d4d6b62751fd94f6027 /user
parent617a1079107ab599c28a3cbbde69b1e9a1acc981 (diff)
downloadnixfiles-172f32560aafdf3353716d31c1fa29e85064204a.tar.lz
nixfiles-172f32560aafdf3353716d31c1fa29e85064204a.tar.zst
nixfiles-172f32560aafdf3353716d31c1fa29e85064204a.zip
zsh: use explicit home directory
Diffstat (limited to 'user')
-rw-r--r--user/settings/zsh.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 0963d490..2e0d9290 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -51,7 +51,7 @@ in
     history = {
       expireDuplicatesFirst = true;
       extended = true;
-      path = "$HOME/.local/share/zsh/history";
+      path = "${config.home.homeDirectory}/.local/share/zsh/history";
       save = 200000;
       size = 100000;
       share = false;
@@ -212,7 +212,7 @@ in
     initExtra =
       ''
         typeset -T GHQ_ROOT ghq_root
-        export GHQ_ROOT="$HOME/projects"
+        export GHQ_ROOT="${config.home.homeDirectory}/projects"
 
         function hist-freq-subcommands () {
           fc -l -m "$1*" -10000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less