tmux new -ssessionname
tmuxinator
: tmuxinator start [projectname]
tmuxinator new [projectname]
tmuxinator edit [projectname]
C-b ?
- list key bindingsC-b :
- command prompt
kill-session
- quit tmux entirelyC-b c
- create new windowC-b [0-9]
- switch to window by numberC-b &
- prompt to kill windowC-b %
- split horizontallyC-b "
- split verticallyC-b Up
- switch active pane to pane aboveC-b Down
- switch active pane to pane belowC-b x
- kill active paneC-b page-up/page-down
- scroll within a pane. Press q
to exit scrolling modeC-b z
- toggle zooming active pane to fill whole windowtmux source ~/.tmux.conf
within a tmux terminalIn tmuxinator config file (ref):
attach: false
on_project_exit: tmux -CC attach
In iTerm2 settings:
https://iterm2.com/documentation-tmux-integration.html
esc
to exit tmux keeps the session (and processes within them) running in the background. Rerunning tmuxinator [name]
reconnects to ittmux ls
tmux kill-session [name]