pvincent 6 years ago
parent
commit
bb3549965a
  1. 4
      bash.bashrc

4
bash.bashrc

@ -85,12 +85,12 @@ __prompt_command() {
PS1+=" ${R}[${Mag}${branch}${R}|"
local dirty=$(git status -s | wc -l)
if [ $dirty > 0 ]; then
if [[ $dirty -ne 0 ]]; then
PS1+="${Mag}…$dirty"
else
local ahead=$(git rev-list --branches --not --remotes)
echo $ahead
if [ $ahead > 0 ]; then
if [[ $ahead -ne 0 ]]; then
PS1+="${Blu}↑${ahead}"
else
PS1+="${Gre}✔"

Loading…
Cancel
Save