mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge bc6defc875 into 291e96dcd0
This commit is contained in:
commit
0cb1ef9ea7
1 changed files with 11 additions and 0 deletions
|
|
@ -93,6 +93,17 @@ if which tmux &> /dev/null
|
||||||
_zsh_tmux_plugin_run
|
_zsh_tmux_plugin_run
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add window name support
|
||||||
|
function omz_tmux_windowname_precmd {
|
||||||
|
# ZSH_THEME_TERM_TAB_TITLE_IDLE is from lib/termsupport.zsh
|
||||||
|
if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
print -Pn "\033k$ZSH_THEME_TERM_TAB_TITLE_IDLE\033"
|
||||||
|
}
|
||||||
|
autoload -U add-zsh-hook
|
||||||
|
add-zsh-hook precmd omz_tmux_windowname_precmd
|
||||||
else
|
else
|
||||||
print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
|
print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue