# Name: Woefe's prompt (wprompt)
# Description:
# The wprompt example is similar to the multi-line and Pure examples, but with optional
# [vi-mode](https://github.com/woefe/vi-mode.zsh) and the secondary prompt enabled.
#
# - Depends on [Font Awesome](https://fontawesome.com/)
# - Optionally depends on [vi-mode](https://github.com/woefe/vi-mode.zsh)
# - Source this example after fzf and after loading
# [vi-mode](https://github.com/woefe/vi-mode.zsh)
#
# If you want to try other examples again after sourcing this example, you might have to restart
# your shell, because this prompt will always print a newline between prompts.
ZSH_PIJUL_PROMPT_FORCE_BLANK=1
ZSH_THEME_PIJUL_PROMPT_PREFIX=" · "
ZSH_THEME_PIJUL_PROMPT_SUFFIX=""
ZSH_THEME_PIJUL_PROMPT_SEPARATOR=" · "
ZSH_THEME_PIJUL_PROMPT_CHANNEL="⎇ %{ [cyan]%}"
ZSH_THEME_PIJUL_PROMPT_REMOTE_SYMBOL="%{ [green]%} "
ZSH_THEME_PIJUL_PROMPT_REMOTE_NO_TRACKING="%{ [red]%}!"
ZSH_THEME_PIJUL_PROMPT_REMOTE_PREFIX="%{ [red]%}(%{ [yellow]%}"
ZSH_THEME_PIJUL_PROMPT_REMOTE_SUFFIX="%{ [red]%})"
ZSH_THEME_PIJUL_PROMPT_CHANGED="%{ [blue]%}∆"
ZSH_THEME_PIJUL_PROMPT_ADDED="%{ [green]%}+"
ZSH_THEME_PIJUL_PROMPT_REMOVED="%{ [red]%}−"
ZSH_THEME_PIJUL_PROMPT_RESURRECTED="✝"
ZSH_THEME_PIJUL_PROMPT_SOLVED="%{ [magenta]%}⛙"
ZSH_THEME_PIJUL_PROMPT_UNSOLVED="%{ [yellow]%}×"
ZSH_THEME_PIJUL_PROMPT_UNTRACKED="…"
ZSH_THEME_PIJUL_PROMPT_CLEAN="%{ [green]%} "
ZSH_THEME_PIJUL_PROMPT_TAGS_PREFIX=" · "
RPROMPT=''
PROMPT=$'┏╸'
[ \
&& [ \
&& PROMPT+='%B%F{blue}@%m%f%b · ' # Hostname, if in SSH session
PROMPT+='%B%30<..<%~%b%<<' # Path truncated to 30 characters
PROMPT+='%(12V. · %F{244} %12v%f.)' # Python virtualenv name
PROMPT+='$(pijul_prompt)' # Pijul status
PROMPT+='$(pijul_prompt_secondary)' # Pijul status secondary info
PROMPT+=$'\n┗╸' # Newline
_WPROMPT_END='%(?.%(!.%F{white}❯%F{yellow}❯%F{red}.%F{blue}❯%F{cyan}❯%F{green})❯%f.%F{red}❯❯❯%f) '
# Vi mode indicator, if github.com/woefe/vi-mode.zsh is loaded
if ; then
VI_INSERT_MODE_INDICATOR=
VI_NORMAL_MODE_INDICATOR=
PROMPT+='$(vi_mode_status)'
else
PROMPT+=
fi