From 7606d92d8386a72d2a787951a0c232be80dbe59f Mon Sep 17 00:00:00 2001 From: Timo Riski Date: Sat, 31 Aug 2024 11:16:35 +0300 Subject: [PATCH] fix: don't run tmux in Zed IDE integrated terminal Zed IDE sets `TERM_PROGRAM` to 'zed'. See: https://github.com/zed-industries/zed/blob/a850731b0ed61b0ef2a0173843b6daedf45327e8/crates/terminal/src/terminal.rs#L328 --- conf.d/tmux.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/conf.d/tmux.fish b/conf.d/tmux.fish index c0c0152..cef23ec 100644 --- a/conf.d/tmux.fish +++ b/conf.d/tmux.fish @@ -84,6 +84,7 @@ if status is-interactive && ! fish_is_root_user test -z $VIM && \ test -z $VSCODE_RESOLVING_ENVIRONMENT && \ test "$TERM_PROGRAM" != 'vscode' && \ + test "$TERM_PROGRAM" != 'zed' && \ test "$TERMINAL_EMULATOR" != 'JetBrains-JediTerm' if test $fish_tmux_autostart_once = false || test ! $fish_tmux_autostarted = true set -x fish_tmux_autostarted true