From 41e14071197d271ace370332dbcec9bf50239f92 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Mon, 29 Nov 2021 00:09:20 -0600 Subject: automatically create histdir --- zsh/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index aeed465..f639b2f 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -12,7 +12,9 @@ source "$XDG_CONFIG_HOME/zsh/keybindrc" #source "$XDG_CONFIG_HOME/zsh/lficons" # History settings -HISTFILE="$XDG_DATA_HOME/zsh/zhistory" +HISTDIR="$XDG_DATA_HOME/zsh/" +mkdir -p "$HISTDIR" +HISTFILE="$HISTDIR/zhistory" HISTSIZE=200 # Max lines of history loaded into memory SAVEHIST=10000000 # Max lines of history saved to the histfile setopt INC_APPEND_HISTORY # Create entries after each command, not after zsh exits -- cgit v1.2.3