From d1b4d6c8dcd228f95b35f5164e0d3c2452e9937f Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 24 Jan 2023 14:43:43 +0100 Subject: [PATCH] Prevent zsh from destroying mackup's symlink --- .zshrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 0d4a86e..f6e535c 100644 --- a/.zshrc +++ b/.zshrc @@ -51,12 +51,16 @@ unalias -a # Set these environment variables here (and not in ~/.profile) # due to conflict/overlap with bash -export HISTFILE="$HOME/.zhistory" # default name by oh-my-zsh -export HISTSIZE=999999 # number of lines kept in memory -export SAVEHIST=999999 # number of lines kept in $HISTFILE + +# Can NOT be $HOME/.zhistory as zsh destroys mackup's symbolic link +export HISTFILE="$HOME/data/getraenkemarkt/mackup/.zhistory" + +export HISTSIZE=999999 # number of lines kept in memory +export SAVEHIST=999999 # number of lines kept in $HISTFILE # Append to the $HISTFILE rather than overwrite it setopt APPEND_HISTORY +setopt INC_APPEND_HISTORY