mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 02:17:11 +00:00
remove environment variable
This commit is contained in:
parent
21abdef636
commit
fd7fadb2fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user