aboutsummaryrefslogtreecommitdiff
path: root/etc/emacs-vterm.fish
diff options
context:
space:
mode:
authorKyle Gerard Felker <felker@anl.gov>2021-01-07 23:58:02 -0600
committerjixiuf <jixiuf@qq.com>2021-02-07 11:55:15 +0800
commit09cf48de5eb4db7520611bb55440141c15f18001 (patch)
tree92962ea358ee3c675c3543d6f2f32e330478a863 /etc/emacs-vterm.fish
parentb6592f94d76098d19f242c0d09f660f6a6461b76 (diff)
Fix vterm_printf tmux escape sequence pass through
Such that it is not activated if Emacs and vterm are running within a tmux session. The passthrough still functions for running tmux within Emacs and vterm
Diffstat (limited to 'etc/emacs-vterm.fish')
-rw-r--r--etc/emacs-vterm.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/emacs-vterm.fish b/etc/emacs-vterm.fish
index dbff64c..4f3248a 100644
--- a/etc/emacs-vterm.fish
+++ b/etc/emacs-vterm.fish
@@ -4,7 +4,7 @@
# function that helps in this task, `vterm_printf`, is defined below.
function vterm_printf;
- if [ -n "$TMUX" ]
+ if begin; [ -n "$TMUX" ] ; and string match -q -r "screen|tmux" "$TERM"; end
# tell tmux to pass the escape sequences through
printf "\ePtmux;\e\e]%s\007\e\\" "$argv"
else if string match -q -- "screen*" "$TERM"