Fix issue with switching to already existing session

This commit is contained in:
2012-04-22 13:03:07 +01:00
parent 8b2c32be68
commit 64e91f7d16

View File

@@ -116,7 +116,7 @@ initialize_session() {
# created, the session already exists, and we'll need to specifically switch
# to it here.
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
__go_to_session
fi