iam4x / zsh-iterm-touchbar

Display feedback of terminal in the 🍏 Touchbar
MIT License
689 stars 75 forks source link

Add support for tmux #10

Closed Hermanverschooten closed 7 years ago

Hermanverschooten commented 7 years ago

When you start a TMUX session (see #9), none of the functions will work. This is because TMUX swallows all unknown escape sequences. To allow the sequence to pass through you need to surround it with: \ePtmux;\e<your original sequence>\e\\

So I replaced all echo statements with a function that will check if we're in a TMUX session and do this.

iam4x commented 7 years ago

Thanks 🚢