Skip to content

Commit f69d2bf

Browse files
committed
More bugfix for attach session if already exists
1 parent e2a5608 commit f69d2bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tmuxp/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ def load_workspace(config_file, args):
257257
del os.environ['TMUX']
258258
os.execl(tmux_bin, 'tmux', 'switch-client', '-t',
259259
sconfig['session_name'])
260-
261-
if attach_session:
260+
else:
262261
os.execl(tmux_bin, 'tmux', 'attach-session', '-t',
263262
sconfig['session_name'])
264-
return
265263
return
266264

267265

0 commit comments

Comments
 (0)