A terminal multiplexer: enables a number of terminals to be created, accessed, and controlled from a single screen
A few useful tmux
aliases:
tl
->tmux ls
- list currently runningtmux
sessionstmuxn
->tmux -f /dev/null
- starttmux
without configuration (useful for debugging)
See functions README.
tmux
configuration.
Here are highlights:
- remap prefix from
C-b
(Ctrl-b
) ->M-Space
(Alt/Option-Space
depending on your OS) - open new panes/windows to current path (
$PWD
) - remap pane
- horizontal:
<prefix> "
->M--
(that'sAlt/Option
and-
at the same time) - vertical:
<prefix> %
->M-\
(meant to evoke|
for vertical split but no need to holdShift
)
- horizontal:
- switch panes w/
M-(h|j|k|l)
, e.g.M-h
moves left a pane,M-j
down a pane,M-k
up a pane, andM-l
right a pane - resize panes w/
M-(H|J|K|L)
, e.g.M-H
(M-Shift-h
) resizes to the left,M-J
resizes down, etc.- Note: by default this resizing is slightly coarse (3x larger increments than the smallest possible). To resize more granularly use
<prefix> M-(h|j|k|l)
.
- Note: by default this resizing is slightly coarse (3x larger increments than the smallest possible). To resize more granularly use
- switch to last session w/
<prefix> l
(similar to hittingAlt-Tab
(Windows) orCmd-Tab
(macOS) once) - enable true color (RGB color), dimming, strikethrough and italics through terminal overrides
This file is symlinked to $HOME/.tmux.conf
by $DOTFILES/infra/setup/bin/symlink
.