Skip to content

Commit c20e410

Browse files
committed
!more
1 parent 88ffd54 commit c20e410

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
@@ -880,10 +880,11 @@ def command_shell(
880880
"No tmux server running, create?",
881881
default=True,
882882
):
883-
session = server.new_session(session_name=session_name or "tmuxp shell")
884-
window = session.attached_window
885-
window_name = window.name
886-
current_pane = window.attached_pane
883+
session = server.new_session(
884+
session_name=session_name or "tmuxp shell",
885+
window_command=" ".join(sys.argv),
886+
)
887+
session.attach_session()
887888
else:
888889
current_pane = util.get_current_pane(server=server)
889890

0 commit comments

Comments
 (0)