diff options
author | EuAndreh <eu@euandre.org> | 2018-04-08 18:34:40 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-04-08 18:34:40 -0300 |
commit | fdaf45d65cbe8cbfb48fb2c765e0bd23089bcc87 (patch) | |
tree | 44730984d8196be0d82b777ab85340bf384d7c91 | |
parent | Remove pixels repo (diff) | |
download | dotfiles-fdaf45d65cbe8cbfb48fb2c765e0bd23089bcc87.tar.gz dotfiles-fdaf45d65cbe8cbfb48fb2c765e0bd23089bcc87.tar.xz |
Improve custom git status on PS1
-rw-r--r-- | bash/colors.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/colors.sh b/bash/colors.sh index 13e98e1..47019fd 100644 --- a/bash/colors.sh +++ b/bash/colors.sh @@ -99,8 +99,8 @@ $(git branch &>/dev/null;\ if [ $? -eq 0 ]; then \ echo "$(\ echo `git status` | grep "Changes" > /dev/null 2>&1 && echo "'$IRed'"$(__git_ps1 " {%s}")"'$Color_Off'"; \ - echo `git status` | grep -v "Changes" | grep -E "to publish your local commits" > /dev/null 2>&1 && echo "'$IBlue'"$(__git_ps1 " [%s ^^^]")"'$Color_Off'"; \ - echo `git status` | grep -v "Changes" | grep -E "to update your local branch" > /dev/null 2>&1 && echo "'$IBlue'"$(__git_ps1 " [%s vvv]")"'$Color_Off'"; \ + echo `git status` | grep -v "Changes" | grep -E "to publish your local commits" > /dev/null 2>&1 && echo "'$IBlue'"$(__git_ps1 " [^%s^]")"'$Color_Off'"; \ + echo `git status` | grep -v "Changes" | grep -E "to update your local branch" > /dev/null 2>&1 && echo "'$IBlue'"$(__git_ps1 " [v%sv]")"'$Color_Off'"; \ echo `git status` | grep -v "Changes" | grep -E -v "to publish|update your local branch" > /dev/null 2>&1 && echo "'$Green'"$(__git_ps1 " (%s)")"'$Color_Off'"; \ )" - $(echo "'$IBlack'"`git sha7`"'$Color_Off'"); \ fi)$(if [[ $IN_NIX_SHELL == 1 ]]; then\ |