Skip to content

Commit cf011d6

Browse files
committed
Ensure tmuxinator switches or attaches on connect
1 parent df084f5 commit cf011d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

connector/tmuxinator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ func tmuxinatorStrategy(c *RealConnector, name string) (model.Connection, error)
1919
}
2020

2121
func connectToTmuxinator(c *RealConnector, connection model.Connection, opts model.ConnectOpts) (string, error) {
22-
return c.tmuxinator.Start(connection.Session.Name)
22+
c.tmuxinator.Start(connection.Session.Name)
23+
return c.tmux.SwitchOrAttach(connection.Session.Name, opts)
2324
}

0 commit comments

Comments
 (0)