Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
| 
                    admin_grundlagen:tmux [2019/02/10 10:35] ingo_wichmann  | 
                
                    admin_grundlagen:tmux [2024/05/26 04:04] (aktuell) ingo_wichmann  | 
            ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | // [[tmux_en|page in english]] // | ||
| + | |||
| // tmux ist eine Alternative zu [[screen]] // | // tmux ist eine Alternative zu [[screen]] // | ||
| Zeile 6: | Zeile 8: | ||
| * gemeinsam in einer Shell arbeiten | * gemeinsam in einer Shell arbeiten | ||
| * Eingaben und Befehle in mehreren Shells gleichzeitig absetzen | * Eingaben und Befehle in mehreren Shells gleichzeitig absetzen | ||
| + | * //nicht// auf serielle Schnittstellen zugreifen (Dafür gibt es [[https://packages.debian.org/bookworm/tio|tio]]) | ||
| + | ====== tmux Grundlagen ====== | ||
| ^ Einstieg  ^^ | ^ Einstieg  ^^ | ||
| Zeile 37: | Zeile 41: | ||
| | tmux Scrolling ausschalten  | ''Strg+c''  | | | tmux Scrolling ausschalten  | ''Strg+c''  | | ||
| - | ====== scrollen ====== | + | ===== Distributed shell ===== | 
| + | Eingabe in alle Fenster leiten: | ||
| + | * ''<Strg>+b'' | ||
| + | |||
| + | :set synchronize-panes | ||
| + | wieder ausschalten: | ||
| + | :set synchronize-panes off | ||
| + | |||
| + | ====== Konfigurationsmöglichkeiten ====== | ||
| + | ===== scrollen ===== | ||
| In tmux wieder "ganz normal" mit ''Shift+<BildAuf>'' scrollen: | In tmux wieder "ganz normal" mit ''Shift+<BildAuf>'' scrollen: | ||
| <file raw /etc/tmux.conf> | <file raw /etc/tmux.conf> | ||
| Zeile 44: | Zeile 57: | ||
| </file> | </file> | ||
| - | ====== Mausunterstützung ====== | + | ===== Mausunterstützung ===== | 
| - | In tmux per Maus scrollen, Fenster wechseln, etc.: | + | In tmux per Maus scrollen, Panes wechseln, etc.: | 
| <file raw ~/.tmux.conf> | <file raw ~/.tmux.conf> | ||
| # mouse support  | # mouse support  | ||
| Zeile 51: | Zeile 64: | ||
| </file> | </file> | ||
| - | ====== Reloading tmux config ====== | + | ===== Reloading tmux config ===== | 
| If you have made changes to your tmux configuration file in the ~/.tmux.conf file, | If you have made changes to your tmux configuration file in the ~/.tmux.conf file, | ||
| it shouldn’t be necessary to start the server up again from scratch with kill-server.  | it shouldn’t be necessary to start the server up again from scratch with kill-server.  | ||
| Zeile 70: | Zeile 83: | ||
| This should apply your changes to the running tmux server without affecting the sessions or windows within them. | This should apply your changes to the running tmux server without affecting the sessions or windows within them. | ||
| - | ====== Distributed shell ====== | + | ===== vi-like key-bindings für copy-mode ===== | 
| - | Eingabe in alle Fenster leiten: | + | <file> | 
| - | * ''<Strg>+b'' | + | :setw -g mode-keys vi | 
| - | + | </file> | |
| - | :set synchronize-panes | + | ===== in die Dokumentation kopieren ===== | 
| - | wieder ausschalten: | + | <file> | 
| - | :set synchronize-panes off | + | :set -s copy-command 'cat >> ~/doku' | 
| - | + | </file> | |
| - | ====== ''Strg+a'' statt ''Strg+b'' ====== | + | ===== ''Strg+a'' statt ''Strg+b'' ===== | 
| <file> | <file> | ||
| # Strg+a statt Strg+b | # Strg+a statt Strg+b | ||
| Zeile 89: | Zeile 102: | ||
| * https://gist.github.com/MohamedAlaa/2961058 | * https://gist.github.com/MohamedAlaa/2961058 | ||
| * http://man.openbsd.org/OpenBSD-current/man1/tmux.1 | * http://man.openbsd.org/OpenBSD-current/man1/tmux.1 | ||
| + | * https://github.com/tmuxinator/tmuxinator | ||