zsh: indicate Hover status

This commit is contained in:
Max Headroom 2022-09-18 19:36:33 +02:00
parent 002e017653
commit f377a7a177

View file

@ -49,10 +49,15 @@ delta_prompt_init() {
hostnamevar='%m'
fi
local dirdisplay="%c"
if [[ -n $HOVER_HOME ]]; then
dirdisplay="[ %c ]"
fi
if [[ -n $SSH_CONNECTION ]]; then
PROMPT=" \$(delta_prompt_symbol \$?)Δ%f %F{8}$hostnamevar %c >%f "
PROMPT=" \$(delta_prompt_symbol \$?)Δ%f %F{8}$hostnamevar $dirdisplay >%f "
else
PROMPT=" \$(delta_prompt_symbol \$?)Δ%f %F{8}%c >%f "
PROMPT=" \$(delta_prompt_symbol \$?)Δ%f %F{8}$dirdisplay >%f "
fi
zstyle ':vcs_info:*' enable git