pages:cheatsheets:tmux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pages:cheatsheets:tmux [2021/01/26 17:03] – rokkitlawnchair | pages:cheatsheets:tmux [2023/05/03 13:59] (current) – [Links] mischerh | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== tmux ====== | ====== tmux ====== | ||
- | Angelegt Mittwoch 26 Juli 2017 | + | {{ : |
===== Quellen ===== | ===== Quellen ===== | ||
* https:// | * https:// | ||
* http:// | * http:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ===== Links ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Beschreibung ===== | ===== Beschreibung ===== | ||
- | tmux ist ein sog. terminal multiplexer vergleichbar mit GNU Screen, nur komfortabler zu bedienen und um einiges umfangreicher. | + | //tmux// ist ein sog. terminal multiplexer, vergleichbar mit [[https:// |
- | + | ||
- | ===== Bedienung und Tastenkombinationen ===== | + | |
- | tmux wird fast ausschließlich über verschiedene Tastenkombinationen gesteuert. Per Default ist das < | + | |
- | + | ||
- | ===== Sessionverwaltung ===== | + | |
- | * **new session:** < | + | |
- | * **list sessions:** < | + | |
- | * **name session:** < | + | |
- | + | ||
- | Windowverwaltung (Tabs) | + | |
- | * **create window:** < | + | |
- | * **list windows:** < | + | |
- | * **next window:** < | + | |
- | * **previous window** < | + | |
- | * **kill window** < | + | |
- | + | ||
- | + | ||
- | ===== Ausgewählte Tastaturkürzel (Shortcuts) ===== | + | |
- | + | ||
- | Das Programm kann ausschließlich über Tastenkombinationen (engl.: " | + | |
- | + | ||
- | ^ Tastaturkürzel | + | |
- | | < | + | |
- | | < | + | |
- | | < | + | |
- | | < | + | |
- | | < | + | |
- | | < | + | |
- | | l | (last) Wechseln zum letzten aktiven Fenster (ist durch - markiert) | + | |
- | | p | (previous) Wechsel zum vorherigen Fenster (z.B. von 3 nach 2) | + | |
- | | n | (next) Wechsel zum nächsten Fenster | + | |
- | | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | Christians Notizen | + | |
- | ------------------ | + | |
- | Das Programm tmux ist ein Terminal-Multiplexer, | + | |
- | + | ||
- | ### Aufruf | + | |
- | + | ||
- | #### Zeige die Übersicht aller Sessions | + | |
- | Strg+b, dann s | + | |
- | + | ||
- | + | ||
- | #### Erzeugen einer neuen Session | + | |
- | tmux new | + | |
- | + | ||
- | + | ||
- | #### An eine Session anhängen | + | |
- | tmux attach | + | |
- | + | ||
- | + | ||
- | ### Von einer Session abhängen | + | |
- | man landet | + | |
- | Strg+b, dann d | + | |
- | + | ||
- | + | ||
- | ### Session beenden | + | |
- | alle Windows beenden | + | |
- | exit oder logout oder Strg+d | + | |
- | + | ||
- | + | ||
- | ### Erzeugen eines neuen Window innerhalb einer Session | + | |
- | Strg+b, dann c | + | |
- | + | ||
- | + | ||
- | ### Wechsel zum vorherigen Window | + | |
- | Strg+b, dann l (L) | + | |
- | + | ||
- | + | ||
- | ### Wechsel zum Window 0, 1, 2, ... | + | |
- | Strg+b, dann 0, 1, 2, ... | + | |
- | ### Zeige die Übersicht aller Windows innerhalb einer Session | + | ===== Bedienung ===== |
- | Strg+b, dann w | + | //tmux// wird fast ausschließlich per Tastenkombinationen gesteuert. Um in den Kommandomodus zu wechseln drückt man < |
+ | ^ Auf der Shell || | ||
+ | ^ Shell Kommando | ||
+ | | <sxh bash; gutter: false> | ||
+ | | <sxh bash; gutter: false> | ||
+ | | || | ||
+ | ^ Sessionverwaltung || | ||
+ | ^ tmux Kommando | ||
+ | | <sxh bash; gutter: false>: | ||
+ | ^ Taste ^ Aktion | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | || | ||
+ | ^ Fensterverwaltung (Tabs) || | ||
+ | ^ tmux Kommando | ||
+ | | <sxh bash; gutter: false>: | ||
+ | | <sxh bash; gutter: false>: | ||
+ | ^ Taste ^ Aktion | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | || | ||
+ | ^ Panelverwaltung (Teilen von Fenstern) || | ||
+ | ^ Taste ^ Aktion | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | < | ||
+ | | || | ||
+ | ^ Maus || | ||
+ | ^ tmux Kommando | ||
+ | | <sxh bash; gutter: false>: | ||
+ | ^ key / command | ||
+ | | | ||
+ | | || | ||
+ | ^ Weitere Kommandos | ||
+ | ^ key / command | ||
+ | | < | ||
+ | | < | ||
- | ### Window umbenennen | + | ===== Installation und tmux.conf ===== |
- | man muss sich im umzubenennenden Window befinden | + | This config file is 99% the work of my (soon) former colleague S. Wurm. |
- | Strg+b; dann :rename-window WINDOWNAME | + | <sxh bash; gutter: false> |
+ | apt install tmux tmux-plugin-manager | ||
+ | vim ~/ | ||
+ | <sxh bash; title: ~/ | ||
+ | # reload config file (change file location to your the tmux.conf you want to use) | ||
+ | bind r source-file ~/ | ||
+ | set -g assume-paste-time 1 | ||
+ | set -g base-index 0 | ||
+ | #set -g bell-on-alert off | ||
+ | set -g default-command "" | ||
+ | set -g default-shell "/ | ||
+ | set -g default-terminal " | ||
+ | set -g destroy-unattached off | ||
+ | set -g detach-on-destroy on | ||
+ | set -g display-panes-active-colour red | ||
+ | set -g display-panes-colour blue | ||
+ | set -g display-panes-time 1000 | ||
+ | set -g display-time 750 | ||
+ | set -g history-limit 2000 | ||
+ | set -g key-table " | ||
+ | set -g lock-after-time 0 | ||
+ | set -g lock-command "lock -np" | ||
+ | set -g message-command-style fg=yellow, | ||
+ | set -g message-style fg=black, | ||
+ | set -g mode-keys vi | ||
+ | set -g mouse off | ||
+ | set -g prefix C-b | ||
+ | set -g prefix2 None | ||
+ | set -g renumber-windows off | ||
+ | set -g repeat-time 500 | ||
+ | #set -g set-remain-on-exit off | ||
+ | set -g set-titles on | ||
+ | set -g set-titles-string "# | ||
- | ### Windows beenden | + | # Status Style (default) |
- | exit oder logout oder Strg+d | + | #set -g status on |
+ | #set -g status-interval 15 | ||
+ | #set -g status-justify left | ||
+ | #set -g status-keys vi | ||
+ | #set -g status-left "[#S] " | ||
+ | #set -g status-left-length 20 | ||
+ | #set -g status-left-style default | ||
+ | #set -g status-position bottom | ||
+ | #set -g status-right " "# | ||
+ | #set -g status-right-length 40 | ||
+ | #set -g status-right-style default | ||
+ | #set -g status-style fg=black, | ||
+ | # Status Style (wurmobil) | ||
+ | set -g pane-active-border-style fg=green, | ||
+ | set -g pane-border-style fg=white, | ||
+ | set -g message-style fg=black, | ||
+ | set -g window-status-style bg=black | ||
+ | set -g window-status-current-style fg=green | ||
+ | set -g window-status-activity-style fg=yellow | ||
+ | set -g status-justify left | ||
+ | set -g status-style bg=black, | ||
+ | set -g status-left '# | ||
+ | set -g status-left-length 40 | ||
+ | # this one draws the window title in the status bar, but eats up a lot of space | ||
+ | set -g status-right ' # | ||
- | ### Pane innerhalb eines Window erzeugen | + | set -g update-environment " |
- | #### horizontal unterteilt | + | # don't rename windows automatically |
- | Strg+b, dann " | + | #set-option -g allow-rename off |
+ | # Activity Monitor | ||
+ | set -g monitor-activity on | ||
+ | set -g activity-action none | ||
+ | set -g visual-activity off | ||
+ | set -g visual-bell off | ||
+ | set -g visual-silence off | ||
+ | set -g word-separators " -_@" | ||
+ | set -g bell-action none | ||
- | #### vertikal unterteilt | + | # Tmux Plugin Manager configuration |
- | Strg+b, dann % | + | |
+ | # List of plugins | ||
+ | set -g @plugin ' | ||
+ | set -g @plugin ' | ||
+ | set -g @plugin ' | ||
- | ### Scrollen in tmux | + | # Other examples: |
- | Strg+b, dann [ | + | # set -g @plugin ' |
- | zum Verlassen q | + | # set -g @plugin ' |
+ | # set -g @plugin ' | ||
+ | # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | ||
+ | run ' | ||
- | ### Window killen | + | source / |
- | Strg+b, dann : kill-window -t window-number | + | </ |
+ | Um Plugins zu installieren/ | ||
+ | <sxh bash; gutter: false> | ||
+ | / | ||
+ | / | ||
+ | </ |
pages/cheatsheets/tmux.1611680584.txt.gz · Last modified: 2021/01/26 17:03 by rokkitlawnchair