We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ffd54 commit c20e410Copy full SHA for c20e410
tmuxp/cli.py
@@ -880,10 +880,11 @@ def command_shell(
880
"No tmux server running, create?",
881
default=True,
882
):
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
+ session = server.new_session(
+ session_name=session_name or "tmuxp shell",
+ window_command=" ".join(sys.argv),
+ )
887
+ session.attach_session()
888
else:
889
current_pane = util.get_current_pane(server=server)
890
0 commit comments