From fd7fadb2fbb8b754fcc9dcf9585a5b392684686d Mon Sep 17 00:00:00 2001 From: Wes Key <2540699+chopnico@users.noreply.github.com> Date: Thu, 23 Dec 2021 23:58:03 -0500 Subject: [PATCH] remove environment variable --- plugins/tmux-autoattach/tmux-autoattach.plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tmux-autoattach/tmux-autoattach.plugin.sh b/plugins/tmux-autoattach/tmux-autoattach.plugin.sh index 28302c9..db54c7c 100644 --- a/plugins/tmux-autoattach/tmux-autoattach.plugin.sh +++ b/plugins/tmux-autoattach/tmux-autoattach.plugin.sh @@ -4,7 +4,7 @@ # # A tmux plugin that will automatically attach itself to a bash session. -[ -z "$OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR" ] && export OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR="detach" +[ -z "$OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR" ] && OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR="detach" _osh_plugin_tmux_autoattach_exit() { [ -z "$TMUX" ] && tmux -2u new -A && exit @@ -14,7 +14,7 @@ _osh_plugin_tmux_autoattach_detach() { [ -z "$TMUX" ] && tmux -2u new -A } -if [ "$DISPLAY" ] || [ "$WAYLAND_DISPLAY" ]; then +if [ "$DISPLAY" ] || [ "$WAYLAND_DISPLAY" ] || [ "$SSH_TTY" ]; then case "$OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR" in "exit") _osh_plugin_tmux_autoattach_exit