From dd7be9fd1f71731f3f64b6df98c04959f899ff36 Mon Sep 17 00:00:00 2001 From: Nicole Tietz-Sokolskaya Date: Tue, 8 Sep 2015 11:15:58 -0400 Subject: [PATCH] Changed history handling --- profile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/profile b/profile index 4458aa7..8786ab0 100644 --- a/profile +++ b/profile @@ -42,7 +42,9 @@ export EDITOR=vim # set history export HISTSIZE=1000 export HISTFILESIZE=1000 -export HISTCONTROL=ignoredups +export HISTCONTROL=ignoredups,erasedups +export PROMPT_COMMAND="history -a; $PROMPT_COMMAND" +shopt -s histappend # disable messaging if `tty -s`; then @@ -82,7 +84,7 @@ alias cls='clear && ls' alias doit='sudo $(history -p !-1)' alias f="pushd" alias b="popd" -alias psql="'/Applications/Postgres.app/Contents/Versions/9.3/bin'/psql -p5432" +alias href="history -a; history -c; history -r" macos_magic_fix() { killall Dock