User Tools

Site Tools


linux:user:tmux

This is an old revision of the document!


Tmux

Irgendwie hasse ich das Ding.

Tmux Settings & Config

# Scroll History
set -g history-limit 50000


# Show Messages longer
set -g display-time 3000


# Messages Color
set -g message-style 'fg=colour160 bg=colour237 bold'


# 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 'Config Reloaded...'


# Statusbar
set -g default-terminal "screen-256color"


# Statusbar Global
set -g status-bg colour237
set -g status-fg colour034


# Statusbar - Rechts Datum und Uhrzeit
set -g status-position bottom
set -g status-right '#[fg=colour233,bg=colour8] %d/%m/%y #[fg=colour233,bg=colour237]|#[fg=colour233,bg=colour8] %H:%M:%S '

set-window-option -g window-status-fg colour19
set-window-option -g window-status-bg colour8


# Split Border (Pane)


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 -> %


List Panels

CTRL + B -> q


Delete Current Panel

CTRL + B -> x


linux/user/tmux.1621950083.txt.gz · Last modified: by stone