commit bbd793408bd7840d2619147bfbab2a0cd23c393c
parent 269b747d3c0eb7b85cfdf599cdc0725e366c252e
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 3 Nov 2023 15:53:52 -0700
Move zsh history file to cache directory
Eliminates one more file polluting the top-level home directory. This
relies on XDG_CACHE_DIR being set either by the OS or in .zshenv.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
@@ -1,7 +1,7 @@
# .zshrc
# History.
-HISTFILE=~/.histfile
+HISTFILE="$XDG_CACHE_HOME/zsh_histfile"
HISTSIZE=10000
SAVEHIST=10000