For Future Reference
Scriptable tmux commands
Command | Description |
---|---|
tmux new-session -s development -n editor |
Creates a session named “development” and names the first window “editor.” |
tmux attach -t development |
Attaches to a session named “development.” |
tmux send-keys -t development ’[keys]’ C-m |
Sends the keystrokes to the “development” session’s active window or pane. C-m is equivalent to pressing the |
tmux send-keys -t development:1.1 ’[keys]’ C-m |
Sends the keystrokes to the “development” session’s first window and first pane, provided the window and pane indexes are set to 1. C-m is equivalent to pressing the |
tmux select-window -t development:1 |
Selects the first window of “development,” making it the active window. ... |
Get tmux 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.