summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-04-13 10:04:03 +0100
committerAlan Pearce2014-04-13 10:04:03 +0100
commitad529fd05f192d37299a5e8d009baa5d16da30bb (patch)
tree5ac8b339263bbdca86127d125e14e7e465cda730
parent606c29d286a3da41da310faaa008d1a0280decd7 (diff)
downloadnixfiles-ad529fd05f192d37299a5e8d009baa5d16da30bb.tar.lz
nixfiles-ad529fd05f192d37299a5e8d009baa5d16da30bb.tar.zst
nixfiles-ad529fd05f192d37299a5e8d009baa5d16da30bb.zip
Update and migrate zsh history file location
-rwxr-xr-xhooks/post-up/zsh1
-rwxr-xr-xtag-zsh/config/zsh/zshrc2
2 files changed, 2 insertions, 1 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index 1db24bfa..2d94d49a 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -49,3 +49,4 @@ for fp in $ZDOTDIR/functions/*(/); do
 done
 
 [[ -f ~/.zsh/fasd-data ]] && mv ~/.zsh/fasd-data ~/.cache/zsh/fasd-data
+[[ -f ~/.zsh/history ]] && mv ~/.zsh/history ~/.cache/zsh/history
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 40af65cf..ce4b91f8 100755
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -6,7 +6,7 @@ export CLICOLOR=true
 #
 # zsh variables
 #
-HISTFILE=~/.zsh/history
+HISTFILE=~/.cache/zsh/history
 HISTSIZE=4000
 SAVEHIST=3000