zsh: save history in cache directory

This commit is contained in:
Fernando Schauenburg 2021-08-09 18:48:24 +02:00
parent e97ba8c079
commit b8807ca1de
2 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,7 @@ ${HOME}/.local/etc/git
${HOME}/.jupyter/custom ${HOME}/.jupyter/custom
${HOME}/.jupyter/nbconfig ${HOME}/.jupyter/nbconfig
${HOME}/.ssh ${HOME}/.ssh
${XDG_CACHE_HOME}/zsh
${XDG_CONFIG_HOME}/alacritty ${XDG_CONFIG_HOME}/alacritty
${XDG_CONFIG_HOME}/git ${XDG_CONFIG_HOME}/git
${XDG_CONFIG_HOME}/mintty ${XDG_CONFIG_HOME}/mintty

View file

@ -9,3 +9,8 @@ unset f
stty stop undef # Prevent ctrl-s from freezing the terminal. stty stop undef # Prevent ctrl-s from freezing the terminal.
# Save a lot of history in the cache directory.
HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"
HISTSIZE=1000000
SAVEHIST=1000000