linux:user:tmux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:user:tmux [2021/03/02 10:51] – stone | linux:user:tmux [2023/11/10 10:24] (current) – stone | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| < | < | ||
| # Scroll History | # Scroll History | ||
| - | set -g history-limit | + | set -g history-limit |
| # Show Messages longer | # Show Messages longer | ||
| - | set -g display-time | + | set -g display-time |
| # Messages Color | # Messages Color | ||
| - | set -g message-style 'fg=colour160 bg=colour237 bold' | + | set -g message-style |
| Line 29: | Line 29: | ||
| set-option -g mouse on \;\ | set-option -g mouse on \;\ | ||
| display-message ' | display-message ' | ||
| + | |||
| # Bind Sync Panes (Send CMD To all) | # Bind Sync Panes (Send CMD To all) | ||
| Line 38: | Line 39: | ||
| set-option -g synchronize-panes on \;\ | set-option -g synchronize-panes on \;\ | ||
| display-message ' | display-message ' | ||
| + | |||
| # Bind for Config reload | # Bind for Config reload | ||
| - | bind r source-file ~/ | + | bind r source-file ~/ |
| - | # Statusbar | + | # Statusbar |
| set -g default-terminal " | set -g default-terminal " | ||
| + | set-option -g status-interval 2 | ||
| - | # Statusbar | + | # Statusbar |
| - | set -g status-bg | + | set -g status-bg |
| - | set -g status-fg | + | 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 - Rechts Datum und Uhrzeit | + | # Statusbar - Right |
| set -g status-position bottom | set -g status-position bottom | ||
| - | set -g status-right '#[fg=colour233,bg=colour8] %d/%m/%y #[fg=colour233, | + | set-option -g status-right-length 45 |
| + | set -g status-right '# | ||
| - | set-window-option -g window-status-fg colour19 | ||
| - | set-window-option -g window-status-bg colour8 | ||
| + | # Pane Colors | ||
| + | set -g pane-border-style fg='# | ||
| + | set -g pane-active-border-style fg='# | ||
| - | # Split Border (Pane) | ||
| + | # 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 " | ||
| </ | </ | ||
| Line 81: | Line 123: | ||
| \\ | \\ | ||
| + | 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.1614682260.txt.gz · Last modified: by stone
