Tmux usage

From wikinotes
Revision as of 22:18, 8 September 2021 by Will (talk | contribs) (→‎Commands)

Default Hotkeys

Commands

Command Interfaces

tmux kill-session -t 2              # issue commands on cli
${prefix_then_:} kill-session -t 2  # issue commands in command-mode

Sessions

tmux new-session -d -s ${session_name} -c ${cwd}
tmux switch -t ${session_name}

Windows

<syntaxhighlight lang="bash"> tmux new-window -t ${session}:${window_num} -n ${window_name} -c ${cwd} tmux split-window -t ${session}:${window_num} -c ${cwd} tmux rename-window ${window_name} </sorce>

Notifications

tmux can receive notifications through the command
tmux display-message -c /dev/pts/0 'message'.