diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2021-11-29 00:09:20 -0600 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2021-11-29 00:09:20 -0600 |
commit | 41e14071197d271ace370332dbcec9bf50239f92 (patch) | |
tree | 7da0c43c8e38656075f290381b2bf2c6769c1226 | |
parent | eda4b09f6321b4a939a44bacf624dcebc41c3434 (diff) | |
download | dotconfig-41e14071197d271ace370332dbcec9bf50239f92.tar.xz dotconfig-41e14071197d271ace370332dbcec9bf50239f92.zip |
automatically create histdir
-rwxr-xr-x | zsh/zshrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |