zsh: indicate Hover status
This commit is contained in:
parent
002e017653
commit
f377a7a177
1 changed files with 7 additions and 2 deletions
|
@ -49,10 +49,15 @@ delta_prompt_init() {
|
||||||
hostnamevar='%m'
|
hostnamevar='%m'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local dirdisplay="%c"
|
||||||
|
if [[ -n $HOVER_HOME ]]; then
|
||||||
|
dirdisplay="[ %c ]"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n $SSH_CONNECTION ]]; then
|
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
|
else
|
||||||
PROMPT=" \$(delta_prompt_symbol \$?)Δ%f %F{8}%c >%f "
|
PROMPT=" \$(delta_prompt_symbol \$?)Δ%f %F{8}$dirdisplay >%f "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zstyle ':vcs_info:*' enable git
|
zstyle ':vcs_info:*' enable git
|
||||||
|
|
Loading…
Reference in a new issue