diff --git a/README.md b/README.md index a9888a0..1992602 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,7 @@ Edit your `~/.profile` or `~/.bash_profile` and add the following to the top: export GITAWAREPROMPT=~/.bash/git-aware-prompt source $GITAWAREPROMPT/main.sh - export PS1="\u@\h \w\[$txtcyn\]\$git_branch\[$txtylw\]\$git_dirty\[$txtrst\]\$ " - + export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " Optionally, if you want a nice pretty prompt when using `sudo -s`, also add this line: diff --git a/prompt.sh b/prompt.sh index cfe5e94..7bd51f5 100644 --- a/prompt.sh +++ b/prompt.sh @@ -42,7 +42,7 @@ find_git_dirty() { PROMPT_COMMAND="find_git_branch; find_git_dirty; $PROMPT_COMMAND" # Default Git enabled prompt with dirty state -# export PS1="\u@\h \w\[$txtcyn\]\$git_branch\$git_dirty\[$txtrst\]\$ " +# export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " # Another variant: # export PS1="\[$bldgrn\]\u@\h\[$txtrst\] \w\[$bldylw\]\$git_branch\[$txtcyn\]\$git_dirty\[$txtrst\]\$ "