Tmux

Dword's tmux cheat-sheet
========================
x kill current pane
" split pane horizontally
% split pane vertically
t show time
q show numeric value of panes
? see keybindings
w list windows
l previous window
r force re-draw
, rename current window
! split the current pane out of the window
' search for window by name and jump
d detach from currently attached session
space - this lets you switch through various pre-set layouts

PREFIX : resize-pane (By default it resizes the current pane down)
PREFIX : resize-pane -U (Resizes the current pane upward)
PREFIX : resize-pane -L (Resizes the current pane left)
PREFIX : resize-pane -R (Resizes the current pane right)
PREFIX : resize-pane 20 (Resizes the current pane down by 20 cells)
PREFIX : resize-pane -U 20 (Resizes the current pane upward by 20 cells)
PREFIX : resize-pane -L 20 (Resizes the current pane left by 20 cells)
PREFIX : resize-pane -R 20 (Resizes the current pane right by 20 cells)
PREFIX : resize-pane -t 2 20 (Resizes the pane with the id of 2 down by 20 cells)
PREFIX : resize-pane -t -L 20 (Resizes the pane with the id of 2 left by 20 cells)

select-layout even-vertical # splits all panes vertically an even amount 
select-layout even-horizontal # splits all panes horizontally an even amount

tmux arguments
==============
tmux           ls list sessions
tmux attach    re-attach an attached sessions

And of course if you want to have a more screen like experience create this file in your home directory as .tmux.conf

unbind C-b
set -g prefix C-a
bind C-a send-prefix

Leave a Comment

Close Bitnami banner
Bitnami