d1ea849fddab1f9c82137bff93c87cc46be26769

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2106 from adepasquale/master

Added ssh-like mosh window title

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index e1c2e2f93a3b376a02180d21cdddf01f0bcdcb29..d667861ab65687736c452a2105a35c9c80e7c0cf 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -43,7 +43,7 @@ function omz_termsupport_preexec {
 6   setopt extended_glob
 7 
 8   # cmd name only, or if this is sudo or ssh, the next cmd
 9-  local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]:gs/%/%%}
10+  local CMD=${1[(wr)^(*=*|sudo|ssh|mosh|rake|-*)]:gs/%/%%}
11   local LINE="${2:gs/%/%%}"
12 
13   title '$CMD' '%100>...>$LINE%<<'