commit 6c89706a156c68649b12c8cdef4ffe17863a005d parent 7801ea226c7c775772cacb82cb43927820e44842 Author: Ryan Jeffrey <ryan@ryanmj.xyz> Date: Thu, 30 Sep 2021 11:22:34 -0700 fix for older tmux versions Diffstat:
M | .config/zsh/zshrc | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.config/zsh/zshrc b/.config/zsh/zshrc @@ -7,6 +7,12 @@ if [[ $TERM == "tramp" ]]; then return fi +# Fixes old versions of tmux +if [[ -n "$TMUX" && $(tmux -V | awk '{print $2}' | head -c3) -lt "1.8" ]] +then + PROMPT_COMMAND="printf '\ePtmux;\e\e[<u\e\\'" +fi + autoload -U colors && colors autoload -Uz vcs_info precmd() { vcs_info }