diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index bded335..f21830c 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -1,4 +1,5 @@ # create the missing directories +[ ! -d "$HISTFILE_DIR" ] && mkdir -p "$HISTFILE_DIR" [ ! -d "$COMPDIR" ] && mkdir -p "$COMPDIR" # transmission diff --git a/.zshenv b/.zshenv index 4cb2645..7272d94 100644 --- a/.zshenv +++ b/.zshenv @@ -2,7 +2,8 @@ export ZDOTDIR="$HOME/.config/zsh" # History -export HISTFILE="$HOME/.config/zsh/.zsh_history" +export HISTFILE_DIR="$HOME/.local/share/zsh/.zsh_history" +export HISTFILE="$HISTFILE_DIR/.zsh_history" export HISTSIZE=5000 export SAVEHIST=100000