]> git.sev.monster Git - dotfiles.git/commitdiff
added ssh display to zsh title, made VICOL strict
authords6 <git@ds6.pw>
Fri, 1 Dec 2017 00:48:28 +0000 (18:48 -0600)
committersev <git@sev.monster>
Fri, 5 Apr 2024 20:44:51 +0000 (15:44 -0500)
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.038206 seconds and 4 git commands to generate.