58ff4e1d2e6a81ea97a05b142c28a931a9924b70

Author
Michele Bologna <michele.bologna@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

lib: follow standards in window title (#9320)

In Ubuntu and Debian, in scp, and in rsync the prompt is by default specified as in

  user@hostname:/path/to/directory

while the previous title in ohmyzsh was

  user@hostname: /path/to/directory

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 8cb2389e2215b76949d73f7356d26cf344bb18ca..778f12bcacdef9d0236992dadc0f685e7c6e2070 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -42,7 +42,7 @@ function title {
 6 }
 7 
 8 ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
 9-ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
10+ZSH_THEME_TERM_TITLE_IDLE="%n@%m:%~"
11 # Avoid duplication of directory in terminals with independent dir display
12 if [[ "$TERM_PROGRAM" == Apple_Terminal ]]; then
13   ZSH_THEME_TERM_TITLE_IDLE="%n@%m"