Shell CMDS – <\/span><\/b>From any shell prompt: start new: start new with session name: attach: attach to named: list sessions: kill session: TMUX CMDS –<\/span><\/b> In tmux, hit the prefix ctrl+b and then: Sessions :new<CR> new session Windows (tabs) c new window Panes (splits) % vertical split Resizing Panes You can also resize panes if you don\u2019t like the layout defaults. I use the mouse to resize PREFIX : resize-pane (By default it resizes the current pane down) Misc <\/strong> <\/p>\n d detach How do I copy and paste when the mouse select plane is enabled? If you are a mac user an easier approach is to use Iterm2 and then under the preference, go to the general tab and check the allow clipboard access to terminal apps. <\/p>\n <\/p>\n CONFIGURATIONS OPTIONS: # Sane scrolling # Set the base index for windows to 1 instead of 0 # Set the base index for panes to 1 instead of 0 # set colors for the active window # pane colors # Command \/ message line # better mnemonics for splitting panes! # Justify Status bar # toggle statusbar # scrollback buffer n lines # enable activity alerts # reload settings # tell tmux to use 256 colour terminal # instructs tmux to expect UTF-8 sequences # listen for activity on all windows # open a man page in new window # Broadcast input Source: Shell CMDS – From any shell prompt: start new:tmux start new with session name:tmux new -s myname attach:tmux a # (or at, or attach) attach to named:tmux a -t myname list sessions:tmux ls kill session:` TMUX CMDS – In tmux, hit the prefix ctrl+b and then: Sessions :new<CR> new sessions list sessions$ name session Windows (tabs) c new windoww list windowsf find window, name window& kill window Panes (splits) % vertical split” horizontal splito swap panesq show pane numbersx kill pane+ break pane into window (e.g. to select text by mouse to copy)– restore pane from window\u237d space – toggle between layoutsPREFIX q (Show pane numbers, when the numbers show up type the key to goto that pane)PREFIX { (Move the current pane left)PREFIX } (Move the current pane right) Resizing Panes You can also resize panes if you don\u2019t like the layout defaults. I use the mouse to resize 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) Misc d detacht big clock? list shortcuts: prompt z zoom How do I copy and paste when the mouse […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[17,19,15,18,14,16],"_links":{"self":[{"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/posts\/54"}],"collection":[{"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":6,"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":85,"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/posts\/54\/revisions\/85"}],"wp:attachment":[{"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/theipzone.com\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
tmux<\/span>
tmux new -s myname<\/span>
tmux a<\/span> # (or at, or attach)
tmux a -t myname<\/span>
tmux ls<\/span>
`<\/span>
s list sessions
$ name session
w list windows
f find window
, name window
& kill window
” horizontal split
o swap panes
q show pane numbers
x kill pane
+ break pane into window (e.g. to select text by mouse to copy)
– restore pane from window
<\/span>\u237d<\/span> <\/span> space – toggle between layouts
PREFIX q (Show pane numbers, when the numbers show up type the key to goto that pane)
PREFIX { (Move the current pane left)
PREFIX } (Move the current pane right)
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)
t big clock
? list shortcuts
: prompt
z zoom <\/p>\n
To copy\/paste text in xterm running tmux on mac you simply hold down the option key and highlight the text you want to copy. On PC you hold down the shift key. If you are running split plane windows then you can zoom into the window you are interesting in copying text from using C-b z (prefix: z) <\/p>\n
<\/span><\/b># Just click it
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on <\/span><\/p>\n
set -g mode-mouse on <\/p>\n
set -g base-index 1
setw -g pane-base-index 1
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg red
set -g message-fg white
set -g message-bg black
set -g message-attr bright
bind | split-window -h
bind \\ split-window -h
bind – split-window -v
bind _ split-window -v
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
bind-key s set status
set -g history-limit 10000
setw -g monitor-activity on
set -g visual-activity on
bind-key R source-file ~\/.tmux.conf
set -g default-terminal “screen-256color”
setw -g utf8 on
set -g bell-action any
bind-key \/ command-prompt “split-window ‘exec man %%'” <\/span><\/p>\n
bind-key S setw synchronize-panes <\/p>\n
<\/span><\/b>http:\/\/blog.yjl.im\/2009\/11\/migrating-to-tmux-from-gnuscreen.html<\/a>
http:\/\/blog.hawkhost.com\/2010\/06\/28\/tmux-the-terminal-multiplexer\/<\/a>
http:\/\/blog.hawkhost.com\/2010\/07\/02\/tmux-%E2%80%93-the-terminal-multiplexer-part-2\/<\/a>
http:\/\/www.dayid.org\/os\/notes\/tm.html<\/a>
https:\/\/gist.github.com\/shinzui\/866897<\/a>
https:\/\/gist.github.com\/MohamedAlaa\/2961058<\/a>