From b8807ca1de5f81088c6d8ca094bce5aa4f6a0228 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 9 Aug 2021 18:48:24 +0200 Subject: [PATCH] zsh: save history in cache directory --- bootstrap | 1 + files/zshrc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/bootstrap b/bootstrap index 988cdd3..971a842 100755 --- a/bootstrap +++ b/bootstrap @@ -30,6 +30,7 @@ ${HOME}/.local/etc/git ${HOME}/.jupyter/custom ${HOME}/.jupyter/nbconfig ${HOME}/.ssh +${XDG_CACHE_HOME}/zsh ${XDG_CONFIG_HOME}/alacritty ${XDG_CONFIG_HOME}/git ${XDG_CONFIG_HOME}/mintty diff --git a/files/zshrc b/files/zshrc index ce2d0a3..eb77912 100644 --- a/files/zshrc +++ b/files/zshrc @@ -9,3 +9,8 @@ unset f 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 +