notes/tmux.md

46 lines
1.2 KiB
Markdown
Raw Normal View History

2020-01-12 21:28:28 -05:00
`Ctlr+B` activiates command entry (called the prefix)
panes
----------------------------------
2022-04-27 14:26:24 -04:00
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
2020-01-12 21:28:28 -05:00
windows
----------------------------------
2022-04-27 14:26:24 -04:00
prefix + c = create new window
prefix + w = create window selection prompt
2022-04-07 13:00:50 -04:00
prefix + , = rename window
2020-01-12 21:28:28 -05:00
sessions
----------------------------------
2022-04-27 14:26:24 -04:00
prefix + d = detach session
2020-01-12 21:28:28 -05:00
tmux ls = list sesions
tmux attach -t 0 = attach to session 0
2020-04-30 21:53:00 -04:00
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`
2020-01-12 21:28:28 -05:00
2020-04-30 21:53:00 -04:00
fonts
----------------------------------
powerline fonts
https://github.com/vim-airline/vim-airline
https://github.com/powerline/fonts
2020-12-04 21:14:43 -05:00
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
2022-04-27 14:26:24 -04:00
use <prefix> + I to install plugins
2020-12-04 21:14:43 -05:00