mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
plugins/tmux-autoattach: Automatically attach to session 0 by default
this corrects the plugin not connecting back to the session by default
This commit is contained in:
committed by
Koichi Murase
parent
cb7238fb8f
commit
fb978ce75e
@@ -8,11 +8,11 @@
|
||||
[ -z "$OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR" ] && OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR="detach"
|
||||
|
||||
_osh_plugin_tmux_autoattach_exit() {
|
||||
[ -z "$TMUX" ] && tmux -2u new -A && exit
|
||||
[ -z "$TMUX" ] && tmux -2u new -As0 && exit
|
||||
}
|
||||
|
||||
_osh_plugin_tmux_autoattach_detach() {
|
||||
[ -z "$TMUX" ] && tmux -2u new -A
|
||||
[ -z "$TMUX" ] && tmux -2u new -As0
|
||||
}
|
||||
|
||||
case "$OSH_PLUGIN_TMUX_AUTOATTACH_BEHAVIOR" in
|
||||
|
Reference in New Issue
Block a user