Skip to content

Commit 81d227b

Browse files
committed
!more
1 parent e237b75 commit 81d227b

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
@@ -801,10 +801,11 @@ def command_shell(
801801
'No tmux server running, create?',
802802
default=True,
803803
):
804-
session = server.new_session(session_name=session_name or 'tmuxp shell')
805-
window = session.attached_window
806-
window_name = window.name
807-
current_pane = window.attached_pane
804+
session = server.new_session(
805+
session_name=session_name or 'tmuxp shell',
806+
window_command=' '.join(sys.argv),
807+
)
808+
session.attach_session()
808809
else:
809810
current_pane = util.get_current_pane(server=server)
810811

0 commit comments

Comments
 (0)