linux:user:tmux
This is an old revision of the document!
Table of Contents
Tmux
Irgendwie hasse ich das Ding.
Tmux Settings & Config
# Scroll History
set -g history-limit 100000
# Show Messages longer
set -g display-time 2000
# Messages Color
set -g message-style bg='#ffffff',fg='#1f618d'
# Mouse Settings
set -g mouse on
# Bind for Mouse on/off
bind-key m \
set-option -g mouse off \;\
display-message 'Mouse: OFF'
bind-key M \
set-option -g mouse on \;\
display-message 'Mouse: ON'
# Bind Sync Panes (Send CMD To all)
bind-key k \
set-option -g synchronize-panes off \;\
display-message 'Sync-Panes: OFF'
bind-key K \
set-option -g synchronize-panes on \;\
display-message 'Sync-Panes: ON'
# Bind for Config reload
bind r source-file ~/.tmux.conf \; display-message 'Reload Config..'
# Statusbar Globals
set -g default-terminal "screen-256color"
set-option -g status-interval 2
# Statusbar - Left
set -g status-bg '#303030'
set -g status-fg '#65c7fa'
set-option -g status-left-length 15
set -g status-left '#[bg=#1f618d]#[fg=#ffffff]#(echo "S:")#S #[bg=#303030]#[fg=#65c7fa] '
set -g window-status-format '#[bg=#303030]#[fg=#257ca9]#{window_index}#(echo ":")#{window_name}#{window_flags}#{window_zoomed_flag} #[bg=#ffffff]#[fg=#1f618d]#(echo " <> ")'
set -g window-status-current-format '#[bold]#[bg=#303030]#[fg=#85d4fc]#{window_index}#(echo ":")#{window_name}#{window_flags} #[bg=#ffffff]#[fg=#1f618d]#(echo " <> ")'
# Statusbar - Right
set -g status-position bottom
set-option -g status-right-length 45
set -g status-right '#[bg=#1f618d]#[fg=#ffffff] #(hostname) #[bg=#ffffff]#[fg=#1f618d] <> #[bg=#1f618d]#[fg=#ffffff] %d/%m/%Y #[bg=#ffffff]#[fg=#1f618d] <> #[bg=#1f618d]#[fg=#ffffff] %H:%M:%S '
# Pane Colors
set -g pane-border-style fg='#303030'
set -g pane-active-border-style fg='#1f618d'
# Window counter starts at 1 not at 0
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Clock color
set-window-option -g clock-mode-colour fg='#1f618d
Tmux Cheat Sheet
Sessions
List Session
tmux ls
Create new Session
tmux new -s <name>
Attacht Session
tmux a -t <name>
Rename Session
tmux rename-session -t <current name> <new name>
Windows
Create new Window
CTRL + B -> C
Switch Window
CTRL + B -> 0-9
Close Window
??
Rename Window
CTRL + B -> ,
List Windows
CTRL + B -> w
Panes
Split Horizontal
CTRL + B -> "
Split Vertical
CTRL + B -> %
Delete Current Panel
CTRL + B -> x
List Panels
CTRL + B -> q
Swap Random Panels
CTRL + B -> Space
Swap Panel Up
CTRL + B -> :swap-pane -U
Swap Panel Down
CTRL + B -> :swap-pane -D
linux/user/tmux.1642433764.txt.gz · Last modified: by stone
