zstyle ':vcs_info:git*' formats "(%F{green}%r/%b%f) %m%u%c "
function precmd {
+ print -Pn "\e]0;${SSH_CLIENT+$USER@$HOST}%#zsh%(1j,:%j,):%~\a"
vcs_info
- print -Pn "\e]0;%#zsh%L %(1j,%jj ,)%~\a"
}
function preexec {
printf "\033]0;%s\a" "$1"
RPROMPT='${vcs_info_msg_0_}%F{yellow}%~%f %T'
function zle-line-init zle-keymap-select {
- VICOL="${${KEYMAP/vicmd/red}/(main|viins)/green}"
+ VICOL="${${KEYMAP:/vicmd/red}:/(main|viins)/green}"
zle reset-prompt
}
zle -N zle-line-init