From deb659dbe3e21d8eff78cee3851b5b66ac1628f0 Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Mon, 4 Feb 2013 11:08:01 +0200 Subject: [PATCH] fix previous commit --- zshrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 61bccdba..c31209a2 100644 --- a/zshrc +++ b/zshrc @@ -20,7 +20,7 @@ promptinit PS1="%B%(!.%F{red}.%F{green})%n@%m %~ %#%f%b " -setopt histignorealldups sharehistory APPEND_HISTORY SHARE_HISTORY +setopt histignorealldups sharehistory # Use emacs keybindings even if our EDITOR is set to vi bindkey -e @@ -29,6 +29,15 @@ HISTCONTROL=ignoredups export HISTSIZE=9999999999 export HISTFILESIZE=99999999999 export HISTTIMEFORMAT='%F %T ' +export HISTFILE=~/.zsh_history + +HISTSIZE=9999999999 +if (( ! EUID )); then + HISTFILE=~/.history_root +else + HISTFILE=~/.history +fi +SAVEHIST=9999999999 # Use modern completion system autoload -Uz compinit