From d8e97c7c2c8e1d169266f4cdcf012dda325870f0 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 31 Oct 2019 19:52:22 +0100 Subject: [PATCH] Fix setting the terminal palette under tmux --- dotfiles/.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 4ea26a2..2670766 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -198,9 +198,9 @@ alias light='_update_colors light' alias dark='_update_colors dark' _send_osc() { - local OSC="\E]" ST="\E\\" - if [ -n "$TMUX" ]; then OSC="\EPtmux;\E\E]"; fi - echo -ne "$OSC$1$ST" + local OSC=$'\e]' ST=$'\e\\' + if [ -n "$TMUX" ]; then OSC=$'\ePtmux;\e\e]' ST=$'\e\e\\\e\\'; fi + echo -n "$OSC$1$ST" } _update_colors() {