mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Fix issue with switching to already existing session
This commit is contained in:
@@ -116,7 +116,7 @@ initialize_session() {
|
|||||||
# created, the session already exists, and we'll need to specifically switch
|
# created, the session already exists, and we'll need to specifically switch
|
||||||
# to it here.
|
# to it here.
|
||||||
finalize_and_go_to_session() {
|
finalize_and_go_to_session() {
|
||||||
tmux kill-window -t "$session:99" 2>/dev/null
|
tmux kill-window -t "$session:99" 2>/dev/null || true
|
||||||
if [[ "$(tmuxifier-current-session)" != "$session" ]]; then
|
if [[ "$(tmuxifier-current-session)" != "$session" ]]; then
|
||||||
__go_to_session
|
__go_to_session
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user