Add prompt handling for git main branch
This commit is contained in:
parent
de77f6c33c
commit
15a74be406
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ gitprompt () {
|
|||
fi
|
||||
fi
|
||||
if [ "$git_branch" = 'master' ]
|
||||
then
|
||||
/bin/echo -ne "$blue"
|
||||
elif [ "$git_branch" = 'main' ]
|
||||
then
|
||||
/bin/echo -ne "$blue"
|
||||
elif [ $(echo "$git_branch" | grep '^#' ) ]
|
||||
|
|
Loading…
Reference in a new issue