I want to add a * if there are not staged file changes and a + if there are staged file changes. I used to have that on my old computer and want to do on my new one. Do you have any idea on how I can do it?
Thanks!
Maybe it help you, add these lines to .bashrc :
# Colors definition BLUE='\e[94m' L_BLUE='\e[96m' YELLOW='\e[93m' GREEN='\e[32m' L_GREEN='\e[92m' RED='\e[31m' L_RED='\e[91m' NC='\e[0m' export GIT_PS1_SHOWDIRTYSTATE=true # show * for changes export GIT_PS1_SHOWUNTRACKEDFILES=true # show % for new files export PS1="$GREEN\u$YELLOW@$L_GREEN\h$YELLOW: $BLUE\W $L_RED\$(__git_ps1)$NC $ "
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I want to add a * if there are not staged file changes and a + if there are staged file changes. I used to have that on my old computer and want to do on my new one. Do you have any idea on how I can do it?
Thanks!
Maybe it help you, add these lines to .bashrc :