Add prompt handling for git main branch

This commit is contained in:
Talia 2022-05-30 14:24:32 +02:00
parent de77f6c33c
commit 15a74be406
1 changed files with 3 additions and 0 deletions

View File

@ -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 '^#' ) ]