remove environment variable

This commit is contained in:
Wes Key 2021-12-23 23:58:03 -05:00 committed by Koichi Murase
parent 21abdef636
commit fd7fadb2fb

View File

@ -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