bash_aliases: cdshowgitstatus: also show git status when .git is a file
This commit is contained in:
parent
b8e40766e7
commit
f2b3d767d7
@ -29,7 +29,7 @@ alias cribbage='cribbage -r'
|
|||||||
alias backgammon='backgammon -r -pb'
|
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 [[ -d .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()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user