zsh-git-prompt-rs-0.3.5 is not a library.
zsh prompt origionally implemented by https://github.com/olivierverdier/zsh-git-prompt
I no longer install the haskell toolchain everywhere so am trying to implement that prompt in Rust.
Installation
Install zsh-git-prompt-rs
via cargo
:
in your zsh init
#
# BEGIN PROMPT
#
# enable prompt
if ; then
fi
# customize prompt
PROMPT_PRE=''
if ; then
PROMPT_PRE='%n@%m '
fi
PROMPT='${PROMPT_PRE}%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg[green]%}%p %{$fg[green]%}%c %{$fg[cyan]%}$(git_super_status)%{$fg_bold[red]%}% %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{ [cyan]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX="%{ [cyan]%}] "
ZSH_THEME_GIT_PROMPT_SEPARATOR=""
ZSH_THEME_GIT_PROMPT_BRANCH="%{ [green]%}"
ZSH_THEME_GIT_PROMPT_STAGED="%{ [blue]%}%{ ●%G%}"
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{ [red]%}%{ ✖%G%}"
ZSH_THEME_GIT_PROMPT_CHANGED="%{ [yellow]%}%{ ✚%G%}"
ZSH_THEME_GIT_PROMPT_BEHIND="%{ ↓%G%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{ ↑%G%}"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{ [red]%}%{ …%G%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
#
# END PROMPT
#
TODO
- Seems correct but real merge conflicts still need to be tested
- Actually seems buggy - need more definition around the blue dot vs yellow +