bash_aliases: turn on cdshowgitstatus in PROMPT_COMMAND

This commit is contained in:
Josh Holtrop 2012-03-07 16:58:33 -05:00
parent b00a298f0a
commit 5d355aed43

View File

@ -31,7 +31,7 @@ alias backgammon='backgammon -r -pb'
# put 'cattodo' in $PROMPT_COMMAND to use # 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 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 [[ -e .git ]]; then git status; fi; CDSHOWGITSTATUS_LAST_WD=$PWD; fi' alias cdshowgitstatus='if [[ $CDSHOWGITSTATUS_LAST_WD != $PWD ]]; then if [[ -e .git ]]; then git status; fi; CDSHOWGITSTATUS_LAST_WD=$PWD; fi'
#PROMPT_COMMAND="cdshowgitstatus;$PROMPT_COMMAND" PROMPT_COMMAND="cdshowgitstatus;$PROMPT_COMMAND"
function prompt_ps1_git_branch() function prompt_ps1_git_branch()
{ {
which_git=$(which git) which_git=$(which git)