Fix setting the terminal palette under tmux

This commit is contained in:
Fernando Schauenburg 2019-10-31 19:52:22 +01:00
parent ca131bb775
commit d8e97c7c2c

View file

@ -198,9 +198,9 @@ alias light='_update_colors light'
alias dark='_update_colors dark' alias dark='_update_colors dark'
_send_osc() { _send_osc() {
local OSC="\E]" ST="\E\\" local OSC=$'\e]' ST=$'\e\\'
if [ -n "$TMUX" ]; then OSC="\EPtmux;\E\E]"; fi if [ -n "$TMUX" ]; then OSC=$'\ePtmux;\e\e]' ST=$'\e\e\\\e\\'; fi
echo -ne "$OSC$1$ST" echo -n "$OSC$1$ST"
} }
_update_colors() { _update_colors() {