Personnal notes while experimenting on tmux, not intended for sharing for the moment
If you ever come across this, feel free to comment if you have something useful to share with me :-)
Resources
Browsable man page for tmux, convenient
Default shortcuts
- n Change to the next window.
- o Select the next pane in the current window.
Misc
-
<prefix> d
send current session to the background
Targeting a pane
> tmux split-window -h -t 2:1.1 # session 2, window 1, pane2
Doesn't seem to work when invoked from tmux session with <prefix>:split-pane
(makes kind of sense that commands invoked this way concern the current session)
Naming everything
Default session names and windows names start from 1 and increment
> tmux new-session -d -s my_session # -d for detached, -s to name
> tmux ls # list existing sessions (see how they are named!)
-
tmux rename-session -t my_session my_awesome_session
rename targeted session tmux rename-window -t my_awesome_session:1 first_window
- looks like I can't rename a pane (tried
select-pane -T <title>
but didn't work)
Creating new windows, panes
tmux new-window -t my_awesome_session:2 -n plouf
seems you have to provide a number (for ordering the windows) non taken by another window, and optionnaly a name
Sending commands to windows
not specified but you can target a session with the -t option
tmux send-keys "ls -lh" C-m
Top comments (0)