From c6c4fa3d59a1c74fbc59caa4db994cca50c2d36f Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 7 Oct 2014 08:41:24 +0300 Subject: [PATCH] zshrc: fix history saving Closes #46 --- zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zshrc b/zshrc index f25baba8..b9c2fd59 100644 --- a/zshrc +++ b/zshrc @@ -19,6 +19,14 @@ fi # This is based on zshrc which came with Debian (Third option in wizard for new users.) +# Save history +export HISTSIZE=99999 +export SAVEHIST=$HISTSIZE +setopt hist_ignore_all_dups +export HISTFILE=~/.zsh_history +setopt INC_APPEND_HISTORY +setopt SHARE_HISTORY + # Set up the prompt autoload -Uz promptinit