Browse Source

colors

master
pvincent 4 years ago
parent
commit
b714645054
  1. 4
      bash.bashrc

4
bash.bashrc

@ -111,11 +111,11 @@ __prompt_command() {
local tag_release=$(git describe --tags | cut -d'-' -f1)
local dirty=$(git status -s | wc -l)
if [[ $dirty -ne 0 ]]; then
PS1+="${Mag}⚡|${tag_release}…$dirty"
PS1+="⚡|${tag_release}${Mag}…$dirty"
else
local ahead=$(git rev-list --branches --not --remotes |wc -l)
if [[ $ahead -ne 0 ]]; then
PS1+="${Blu}${R}|${Blu}${tag_release}↑${ahead}"
PS1+="⚡|${Blu}${tag_release}${Yel}↑${ahead}"
else
if [[ -z $tag_release ]];then
PS1+="${Red}✔"

Loading…
Cancel
Save