summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xzsh/zshrc4
1 files changed, 3 insertions, 1 deletions
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