diff options
| author | 2026-01-26 22:34:37 +0100 | |
|---|---|---|
| committer | 2026-01-26 22:34:37 +0100 | |
| commit | a0e1b99cf07c4b15290083b9bdd732d9f3008404 (patch) | |
| tree | 46410d5ebc1835e362b9c9cd04fc50f8ba68aff0 | |
| parent | zsh: move promptinit to before compinit (diff) | |
zsh: initialize histfile directory if nonexistent
| -rw-r--r-- | dot_config/zsh/zprofile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dot_config/zsh/zprofile b/dot_config/zsh/zprofile index 9fdd008..ca974ac 100644 --- a/dot_config/zsh/zprofile +++ b/dot_config/zsh/zprofile @@ -9,6 +9,7 @@ if [ "${HISTSIZE:-30}" = 30 ]; then HISTSIZE=5000 SAVEHIST=10000 fi +[ -d "${HISTFILE:h}" ] || mkdir -m 0700 "${HISTFILE:h}" export EDITOR PAGER setopt nullglob |
