From 714d672fdb825293e1baba2af0643bb2332ddaa5 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 8 Nov 2011 14:59:53 -0500 Subject: [PATCH] bash_aliases: prepend to $PROMPT_COMMAND instead of appending --- bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_aliases b/bash_aliases index 28dc2d9..66980ea 100755 --- a/bash_aliases +++ b/bash_aliases @@ -22,7 +22,7 @@ alias backgammon='backgammon -r -pb' # put 'cattodo' in $PROMPT_COMMAND to use alias cattodo='if [[ $CATTODO_LAST_WD != $PWD ]]; then if [[ -r .todo ]]; then cat .todo; fi; CATTODO_LAST_WD=$PWD; fi' alias cdshowgitstatus='if [[ $CDSHOWGITSTATUS_LAST_WD != $PWD ]]; then if [[ -d .git ]]; then git status; fi; CDSHOWGITSTATUS_LAST_WD=$PWD; fi' -#PROMPT_COMMAND="$PROMPT_COMMAND;cdshowgitstatus" +#PROMPT_COMMAND="cdshowgitstatus;$PROMPT_COMMAND" function prompt_ps1_git_branch() { if [[ -e /usr/bin/git && "$PCGB_LAST_WD" != "$PWD" ]]; then