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 32d3590 commit 9558f1cCopy full SHA for 9558f1c
tmuxp/cli.py
@@ -731,10 +731,11 @@ def command_shell(
731
'No tmux server running, create?',
732
default=True,
733
):
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
+ session = server.new_session(
+ session_name=session_name or 'tmuxp shell',
+ window_command=' '.join(sys.argv),
+ )
738
+ session.attach_session()
739
else:
740
current_pane = util.get_current_pane(server=server)
741
0 commit comments