]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zshrc
added ssh display to zsh title, made VICOL strict
[dotfiles.git] / base / .zshrc
index 5fdafa80c4a410b37367638d14f296fe8c7c9702..4c2fdb49600824627d150cbf55cefba5c975d35e 100644 (file)
@@ -5,8 +5,8 @@ zstyle ':vcs_info:*' get-revision true
 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"
@@ -18,7 +18,7 @@ PROMPT='%F{$VICOL}%n%f@%F{$VICOL}%m%f%(?../%F{red}$?%f)%# '
 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
This page took 0.044529 seconds and 4 git commands to generate.