Skip to content

Commit

Permalink
!more
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Nov 7, 2020
1 parent 32d3590 commit 9558f1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tmuxp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,11 @@ def command_shell(
'No tmux server running, create?',
default=True,
):
session = server.new_session(session_name=session_name or 'tmuxp shell')
window = session.attached_window
window_name = window.name
current_pane = window.attached_pane
session = server.new_session(
session_name=session_name or 'tmuxp shell',
window_command=' '.join(sys.argv),
)
session.attach_session()
else:
current_pane = util.get_current_pane(server=server)

Expand Down

0 comments on commit 9558f1c

Please sign in to comment.