46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
`Ctlr+B` activiates command entry (called the prefix)
|
|
|
|
panes
|
|
----------------------------------
|
|
prefix + % = split pane right
|
|
prefix + " = split pane below
|
|
prefix + <Up>/<Left> = switch panes
|
|
prefix + z = maximize/minimize pane
|
|
prefix + x = kill pane
|
|
prefix + <Arrow> = resize
|
|
|
|
windows
|
|
----------------------------------
|
|
prefix + c = create new window
|
|
prefix + w = create window selection prompt
|
|
prefix + , = rename window
|
|
|
|
sessions
|
|
----------------------------------
|
|
prefix + d = detach session
|
|
tmux ls = list sesions
|
|
tmux attach -t 0 = attach to session 0
|
|
|
|
|
|
colors
|
|
----------------------------------
|
|
setup a `.tmux.conf` file with this line `set -g default-terminal 'screen-256color'`
|
|
point tmux to it with `tmux source-file ~/.tmux.conf`
|
|
|
|
|
|
fonts
|
|
----------------------------------
|
|
powerline fonts
|
|
https://github.com/vim-airline/vim-airline
|
|
https://github.com/powerline/fonts
|
|
sudo apt-get install fonts-powerline
|
|
|
|
plugins
|
|
----------------------------------
|
|
using tmux plugin manager to install tmux-resurrect
|
|
plugin manager: https://github.com/tmux-plugins/tpm
|
|
resurrect: https://github.com/tmux-plugins/tmux-resurrect
|
|
use <prefix> + I to install plugins
|
|
|
|
|