-
-### prompt
-setopt prompt_subst
-# DEPR: color reset added to NetBSD in PR/53245, following is not needed for recent releases
-#local f=
-#XXX: can't think of a way to tell if ssh client is on wscons, just kludge 24/7
-#if [[ "$OSTYPE" = "netbsd" && ( "$TERM" =~ "^wsvt" || "$TERM" =~ '^vt' ) ]] {
-# # fix for wscons
-# f="%F{white}"
-#} else {
-# f="%f"
-#}
-PROMPT='%F{$VICOL}%n%f@%F{$VICOL}%2m%f%(?../%F{red}$?%f)%# '
-RPROMPT='%F{yellow}${vcs_info_msg_0_:-%~}%f %T'
-
-## change color based on zle vi mode
-function zle-line-init zle-keymap-select {
- VICOL="${${KEYMAP:/vicmd/red}:/(main|viins)/green}"
- zle reset-prompt