On this page
session.Session.cmd
- Module
- session
- Declared in
- Session
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/session.ts
-
Run a tmux command this package does not model, addressed at this session.
The first argument is the tmux command name and nothing else — this does not parse a command line, so arguments go in the array:
The session's id is sent as the target; pass
targetto address something else, ornullfor a command that takes none.Examples
await session.cmd("rename-session", ["--", "renamed"]);
0 declared, 0 inherited