Skip to content

Commit 9558f1c

Browse files
committed
!more
1 parent 32d3590 commit 9558f1c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tmuxp/cli.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -731,10 +731,11 @@ def command_shell(
731731
'No tmux server running, create?',
732732
default=True,
733733
):
734-
session = server.new_session(session_name=session_name or 'tmuxp shell')
735-
window = session.attached_window
736-
window_name = window.name
737-
current_pane = window.attached_pane
734+
session = server.new_session(
735+
session_name=session_name or 'tmuxp shell',
736+
window_command=' '.join(sys.argv),
737+
)
738+
session.attach_session()
738739
else:
739740
current_pane = util.get_current_pane(server=server)
740741

0 commit comments

Comments
 (0)