mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-12-12 00:56:55 +00:00
Auto-create zsh histfile file if not exists
This commit is contained in:
parent
e4b7fe0234
commit
1e3b187d27
1 changed files with 5 additions and 0 deletions
|
|
@ -57,3 +57,8 @@ setopt EXTENDED_HISTORY
|
||||||
# beep in ZLE when a widget attempts to access a history entry which isn’t there
|
# beep in ZLE when a widget attempts to access a history entry which isn’t there
|
||||||
unsetopt HIST_BEEP
|
unsetopt HIST_BEEP
|
||||||
|
|
||||||
|
# Auto-create the histfile cache directory if it doesn't yet exist
|
||||||
|
if [ ! -d "$(dirname "$HISTFILE")" ]; then
|
||||||
|
mkdir -p "$(dirname "$HISTFILE")"
|
||||||
|
touch "$HISTFILE"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue