Skip to content

Add custom command support to prise.spawn() #65

@adagradschool

Description

@adagradschool

Currently prise.spawn() only accepts cwd and always spawns the user's shell ($SHELL or /bin/sh).

It would be useful to spawn a PTY with a custom command when customizing the UI or manipulating it programmatically.

  prise.spawn({ cmd = "htop" })
  -- or with arguments:
  prise.spawn({ cmd = { "vim", "file.txt" } })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions