X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/bfb270cf83a87659a726c74c30dd6d3d696d2dd6..03e18ae17a72f3db72ee65eb290d35fb13d66237:/zsh/lib/prompt.zsh?ds=sidebyside diff --git a/zsh/lib/prompt.zsh b/zsh/lib/prompt.zsh index 2cea031..56d702b 100644 --- a/zsh/lib/prompt.zsh +++ b/zsh/lib/prompt.zsh @@ -2,7 +2,7 @@ setopt prompt_subst autoload colors; colors; -hostcolor=green +hostcolor=cyan [[ $(hostname) == "tardis" ]] && hostcolor=red precmd() { @@ -62,6 +62,7 @@ git_prompt_status() { [[ "$line" == 2\ R[.MTD]\ * ]] && (( renamed++ )) # work tree + [[ "$line" == 1\ [.MARCT]A\ * ]] && (( added++ , modified++ )) # intend-to-add [[ "$line" == 1\ [.MARCT]M\ * ]] && (( modified++ )) [[ "$line" == 1\ [.MARCT]D\ * ]] && (( deleted_wt++ )) [[ "$line" == \?\ * ]] && (( untracked++ ))