Very cool bash prompt trick (color if last command resulted in a error) ! added to the classic PS1 it's neat export PS1="\[ \u@\h \w \$(if [ \$? == 0 ]; then echo -e \"\\e[0;92m\"; else echo -e \"\\e[0;91m\"; fi)\]●\[\e[0m\] "
Very cool bash prompt trick (color if last command resulted in a error) ! added to the classic PS1 it's neat export PS1="\[ \u@\h \w \$(if [ \$? == 0 ]; then echo -e \"\\e[0;92m\"; else echo -e \"\\e[0;91m\"; fi)\]●\[\e[0m\] " https://t.co/KA8Od7hgsu
@zehavoc So you could do something like "$(git status --porcelain | grep -v '^??')" != "" To show a red dot if there are uncommitted changes. I wonder if this is too slow.