brew install tmux
Run tmux -CC
or tmux -CC attach
in iTerm2 and then menu is shown on terminal:
- ESC to detach
- C to run commands
- X to force quit
- L for log
new -s session-name [-c working-dir] [shell-cmd]
alias fornew-session
kill-session -t target-session
rename [-t target-session] new-name
alias forrename-session
ls
alias forlist-sessions
attach -t target-session [-c working-dir]
alias forattach-session
- ID:
$1
- name:
myse
or=mysession
(exact match)
lsc
alias forlist-clients
neww [-c working-dir] [-t target-window] -n window-name [shell-cmd]
alias fornew-window
killw -t target-window
alias forkill-window
renamew -t target-window new-name
alias forrename-window
lsw -t target-session
alias forlist-windows
- specified in form:
session:window
, eg.mysession:1
- ID:
@1
- name:
mysession:mywindow
/mysession:mywin
/mysession:=mywindow