linux:user:tmux
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:user:tmux [2020/10/16 11:16] – created stone | linux:user:tmux [2023/11/10 10:24] (current) – stone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| Irgendwie hasse ich das Ding. | Irgendwie hasse ich das Ding. | ||
| + | \\ | ||
| - | ===== Mouse Settings ===== | + | ===== Tmux Settings |
| - | Umschaltbar mit STRG+B m/M | + | |
| < | < | ||
| + | # Scroll History | ||
| + | set -g history-limit 100000 | ||
| + | |||
| + | |||
| + | # Show Messages longer | ||
| + | set -g display-time 2000 | ||
| + | |||
| + | |||
| + | # Messages Color | ||
| + | set -g message-style bg='# | ||
| + | |||
| + | |||
| + | # Mouse Settings | ||
| set -g mouse on | set -g mouse on | ||
| + | |||
| + | # Bind for Mouse on/off | ||
| bind-key m \ | bind-key m \ | ||
| - | set-option -g mouse off \;\ | + | |
| - | display-message ' | + | display-message ' |
| bind-key M \ | bind-key M \ | ||
| - | set-option -g mouse on \;\ | + | |
| - | display-message ' | + | display-message ' |
| + | |||
| + | |||
| + | # Bind Sync Panes (Send CMD To all) | ||
| + | bind-key k \ | ||
| + | set-option -g synchronize-panes off \;\ | ||
| + | display-message ' | ||
| + | |||
| + | bind-key K \ | ||
| + | set-option -g synchronize-panes on \;\ | ||
| + | display-message ' | ||
| + | |||
| + | |||
| + | # Bind for Config reload | ||
| + | bind r source-file ~/ | ||
| + | |||
| + | |||
| + | # Statusbar Globals | ||
| + | set -g default-terminal " | ||
| + | set-option -g status-interval 2 | ||
| + | |||
| + | |||
| + | # Statusbar - Left | ||
| + | set -g status-bg '# | ||
| + | set -g status-fg '# | ||
| + | set-option -g status-left-length 15 | ||
| + | set -g status-left '# | ||
| + | set -g window-status-format '# | ||
| + | set -g window-status-current-format '# | ||
| + | |||
| + | |||
| + | # Statusbar - Right | ||
| + | set -g status-position bottom | ||
| + | set-option -g status-right-length 45 | ||
| + | set -g status-right '# | ||
| + | |||
| + | |||
| + | # Pane Colors | ||
| + | set -g pane-border-style fg='# | ||
| + | set -g pane-active-border-style fg='# | ||
| + | |||
| + | |||
| + | # 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 | ||
| + | |||
| + | |||
| + | # Dont Jump after copy some text in vi mode | ||
| + | #bind-key V \ | ||
| + | # set -g mode-keys vi on \;\ | ||
| + | # | ||
| + | |||
| + | #bind-key v \ | ||
| + | # set -g mode-keys vi off \;\ | ||
| + | # | ||
| + | |||
| + | #bind-key -T copy-mode C-w send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode M-w send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode-vi C-j send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode-vi Enter send-keys -X copy-selection | ||
| + | #bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection | ||
| + | |||
| + | |||
| + | # Clock color | ||
| + | # | ||
| + | |||
| + | # TPM | ||
| + | #set -g @plugin ' | ||
| + | #set -g @plugin ' | ||
| + | #run-shell ' | ||
| + | |||
| + | |||
| + | # Nord Theme | ||
| + | # https:// | ||
| + | # run-shell " | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ===== Tmux Cheat Sheet ===== | ||
| + | ==== Sessions ==== | ||
| + | List Session | ||
| + | < | ||
| + | tmux ls | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Create new Session | ||
| + | < | ||
| + | tmux new -s < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | Attacht Session | ||
| + | < | ||
| + | tmux a -t < | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | 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.1602846996.txt.gz · Last modified: by stone
