TMUX
brew install tmux
open tmux:
tmux
hold
ctrl+b
hitshift %
to split tabs verticallyhold
ctrl+b
hitshift "
to split tabs horizontallyexit
orctrl+d
removes a tabhold
ctrl+b
and pressc
to open a new windowswitch to previous window use
ctrl+b
p
for previousn
for next or enter the numberdetach from current session
ctrl+b
d
or capital D for a choice of which sesstions to detachto reattach
tmux ls
tmux attach -t 0
If you prefer to give your sessions a more meaningful name (instead of a numerical one starting with 0) you can create your next session using
tmux new -s database
This will create a new session with the name “database”.You could also rename your existing session:
tmux rename-session -t 0 database
The next time you attach to that session you simply usetmux attach -t database
.ctrl+b
?
gives you al ist of commandsctrl+b
z
make pane go full scren hitctrl+b
z
again to shrink back to previous sizectrl+b
C-<arrowkey>
resize pane in direction of arrow keyctrl+b
,
rename current window
#command-line/tmux
Created on: 13th October, 2022
Last updated: 13th October, 2022