commit ae1c40b22afb90b720c1eca226e373c4a8c40e06 parent 0719374dabda8e9f88ca9de3693211b2c1749ab2 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Sun, 9 Aug 2020 23:57:29 +0200 zsh: fix histfile in tmux Former-commit-id: 4def24d53936d81349215c6a6301f176e5e21f15 Diffstat:
M | shell/oh-my-zsh-defaults/history.zsh | | | 1 | - |
M | shell/zshenv | | | 3 | ++- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/shell/oh-my-zsh-defaults/history.zsh b/shell/oh-my-zsh-defaults/history.zsh @@ -26,7 +26,6 @@ case ${HIST_STAMPS-} in esac ## History file configuration -[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" HISTSIZE=50000 SAVEHIST=10000 diff --git a/shell/zshenv b/shell/zshenv @@ -1,2 +1,3 @@ . $HOME/.profile -HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history +export ZDOTDIR=$HOME/.config/zsh +export HISTFILE=$ZDOTDIR/.zsh_history