Skip to content

Have an optional parameter cmd in Session.new_window() #87

Open
@ritiek

Description

@ritiek

Hi, thanks for this library.

In tmux we can create a new window and immediately run a command in it using:

tmux new-session -d -s cool_session
tmux new-window -t cool_session -n fun_window "echo kills fun_window after 5s && sleep 5"

This is useful when one wants the window to automatically kill itself once the command has finished running.

It would be nice to have this feature in libtmux as well. Maybe an optional parameter like Session.new_window(cmd=None).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions