diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-11-12 13:39:31 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-11-12 13:39:31 -0600 |
commit | 1305288079f6d5665d6226d7b266899eb1a289a5 (patch) | |
tree | 97bd9b99d694c4f6edaa9b4598767691361c7e1e /dot_config | |
parent | oops (diff) | |
download | dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.tar dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.tar.gz dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.tar.bz2 dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.tar.lz dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.tar.xz dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.tar.zst dotfiles-1305288079f6d5665d6226d7b266899eb1a289a5.zip |
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'dot_config')
-rw-r--r-- | dot_config/zsh/dot_zshrc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index a592706..296d368 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -39,8 +39,11 @@ setopt interactive_comments setopt complete_aliases # History in cache directory: -HISTSIZE=100000000 -SAVEHIST=100000000 +HISTSIZE=999999999 +SAVEHIST=$HISTSIZE +if [ -z "$XDG_STATE_HOME/zsh" ]; then + mkdir -p "$XDG_STATE_HOME/zsh" +fi HISTFILE="$XDG_STATE_HOME"/zsh/history setopt BANG_HIST # Treat the '!' character specially during expansion. setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format. |