summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-11-29 00:09:20 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-11-29 00:09:20 -0600
commit41e14071197d271ace370332dbcec9bf50239f92 (patch)
tree7da0c43c8e38656075f290381b2bf2c6769c1226
parenteda4b09f6321b4a939a44bacf624dcebc41c3434 (diff)
downloaddotconfig-41e14071197d271ace370332dbcec9bf50239f92.tar.xz
dotconfig-41e14071197d271ace370332dbcec9bf50239f92.zip
automatically create histdir
-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