0% found this document useful (0 votes)
166 views2 pages

Tmux Terminal Multiplexer

This document provides a summary of keyboard shortcuts for tmux, the terminal multiplexer. It includes shortcuts for general tmux commands, pane navigation and management, session and window commands, scroll and clipboard functions, and configuration. Custom bindings are also described, such as reloading the tmux configuration file or clearing the terminal and history. Instructions are included for fixing issues with italics and standout text in the terminal.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
166 views2 pages

Tmux Terminal Multiplexer

This document provides a summary of keyboard shortcuts for tmux, the terminal multiplexer. It includes shortcuts for general tmux commands, pane navigation and management, session and window commands, scroll and clipboard functions, and configuration. Custom bindings are also described, such as reloading the tmux configuration file or clearing the terminal and history. Instructions are included for fixing issues with italics and standout text in the terminal.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

tmux - terminal multiplexer Keyboard Shortcuts

by alexandreceolin via cheatography.com/24507/cs/6071/

 General  Bash aliases  Scroll and Clipboard (emacs mode) (cont)

start tmux tmux alias clear='/usr/bin/clear;tmux next word alt f

default prefix ^b (control + b) clear-history' previous word alt b


alias tmux='tmux -2'
list bindings ^b ? or tmux list-keys list copied buffers ^b =

big clock ^b t paste ^b ]


 Pane
tmux 2.1 http:/​/tm​ux.g​it​hub.io X11 copy shift left click
split vertically ^b %
X11 paste shift middle click
 Config split horizo​ntally ^b "

next ^b o  Config file (~/.tm​ux.c​onf)


reload config tmux source​-file ~/.tmu​x.conf
previous ^b ;
show config tmux show-o​ptions -g set -g history-limit 10000
show pane number ^b q
set -g defaul​t-t​erminal "​tmu​x-
 Session swap pane location ^b ^o 2​56c​olo​r-i​tal​ic"

list tmux ls or ^b s move pane left ^b { set -g mouse on

attach tmux a move pane right ^b } setw -g xterm-keys on


# change prefix key
attach and detach others tmux a -d navigate ^b arrow key
#set -g prefix C-a
detach current client ^b d resize ^b ^arrow key
#bind-key C-a send-p​refix
detach other clients ^b D change layout ^b space
#unbin​d-key C-b
kill current ^b ! # new-window starts in current
 Custom Commands
zoom (in/out) ^b z directory
clear terminal and history ^b ^l bind '"' split-​window -c "​#

reload tmux config file ^b ^r  Scroll and Clipboard (emacs mode) {p​ane​_cu​rre​nt_​pat​h}"

start ^b [ bind % split-​window -h -c "​#


 Window (tab) {p​ane​_cu​rre​nt_​pat​h}"
exit q
new ^b c bind c new-window -c "​#
search up (reverse) ^r
{p​ane​_cu​rre​nt_​pat​h}"
close ^d or ^b x search down ^s
# custom commands
next ^b n search next n bind-key C-l send-keys "​cle​ar" \;
previous ^b p start selection ^sp​ace send-keys "​Ent​er"
rename ^b , copy selection and exit ^w bind-key C-r source​-file
list all ^b w start of line ^a ~/.tmu​x.conf \; displa​y-m​essage

jump to ^b number end of line ^e


"​~/.t​mu​x.conf is reload​ed"

top alt < https:​//r​aw.g​it​hub​use​rco​nte​nt.c​om​/tm​ux/​tmu​x/m​as


t​er/FAQ
bottom alt >

goto line g

By alexandreceolin Published 13th November, 2015. Sponsored by ApolloPad.com


Last updated 23rd September, 2016. Everyone has a novel in them. Finish Yours!
Page 1 of 2. https://apollopad.com

cheatography.com/alexandreceolin/
tmux - terminal multiplexer Keyboard Shortcuts
by alexandreceolin via cheatography.com/24507/cs/6071/

 Fix terminal italics and standout

# file: tmux-256color-italic.terminfo
# A 256 color terminal with
# italics and standout
tmux-2​56c​olo​r-i​tal​ic|​Ter​minal tmux,
​ ​sit​m=​\E[3m, ritm=​\E[23m,
​ ​sms​o=​\E[7m, rmso=​\E[27m,
​ ​use​=sc​ree​n-2​56c​olor,

Use: $ tic tmux-2​56c​olo​r-i​tal​ic.t​er​minfo


Test: $ echo `tput sitm`​ita​lic​s`tput ritm`
italics
$ echo `tput smso`​sta​ndo​ut​`tput rmso`
stan​dout

By alexandreceolin Published 13th November, 2015. Sponsored by ApolloPad.com


Last updated 23rd September, 2016. Everyone has a novel in them. Finish Yours!
Page 2 of 2. https://apollopad.com

cheatography.com/alexandreceolin/

You might also like