Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
showtell:show_tell2014 [2014-04-08 02:54] xro [Backup Titanpad] |
showtell:show_tell2014 [2015-09-22 22:15] xro |
||
---|---|---|---|
Line 73: | Line 73: | ||
http://guckes.titanpad.com/24 | http://guckes.titanpad.com/24 | ||
- | '' | + | <file - guckes_showtell2014graz.txt> |
= Event = | = Event = | ||
Line 276: | Line 276: | ||
EOF | EOF | ||
- | '' | + | </file> |
Line 283: | Line 283: | ||
http://guckes.titanpad.com/25 | http://guckes.titanpad.com/25 | ||
- | ''= Problem = | + | <file - guckes_tmux2014graz.txt> |
+ | = Problem = | ||
screen is old, there are no updates. | screen is old, there are no updates. | ||
tmux has a vivid community. | tmux has a vivid community. | ||
so.. how to switch from screen to tmux? | so.. how to switch from screen to tmux? | ||
+ | |||
= Log = | = Log = | ||
+ | |||
Tmux at first glance: once I understood how to use commands in a running session it started to be real fun! Splitting a window into so called panes (C-b " for horizontal split or C-b % for vertical) is cool, and then you move/resize panes either using keys or mouse! The latter requires options "mouse-resize-pane" and "mouse-select-pane" which I set in my .tmux.conf (see link below). | Tmux at first glance: once I understood how to use commands in a running session it started to be real fun! Splitting a window into so called panes (C-b " for horizontal split or C-b % for vertical) is cool, and then you move/resize panes either using keys or mouse! The latter requires options "mouse-resize-pane" and "mouse-select-pane" which I set in my .tmux.conf (see link below). | ||
+ | |||
(And here I noticed that I still don't know how to select text using the mouse in tmux) ... looks like one has to decide if the mouse can be used to select/resize windows/panes or if it can be used to select text. Would be nice if I were wrong on this one. | (And here I noticed that I still don't know how to select text using the mouse in tmux) ... looks like one has to decide if the mouse can be used to select/resize windows/panes or if it can be used to select text. Would be nice if I were wrong on this one. | ||
+ | |||
= Links = | = Links = | ||
+ | |||
TMUX - Terminal MUltipleXer | TMUX - Terminal MUltipleXer | ||
TMUX 0.6 [2009-01-17] | TMUX 0.6 [2009-01-17] | ||
Line 301: | Line 308: | ||
book: http://pragprog.com/book/bhtmux/tmux | book: http://pragprog.com/book/bhtmux/tmux | ||
ChangeLog: https://sourceforge.net/p/tmux/tmux-code/ci/master/tree/CHANGES | ChangeLog: https://sourceforge.net/p/tmux/tmux-code/ci/master/tree/CHANGES | ||
+ | |||
= HowTos = | = HowTos = | ||
+ | |||
[2010-06-28 by Cody] | [2010-06-28 by Cody] | ||
http://blog.hawkhost.com/2010/06/28/tmux-the-terminal-multiplexer/ | http://blog.hawkhost.com/2010/06/28/tmux-the-terminal-multiplexer/ | ||
+ | |||
= Setup Files = | = Setup Files = | ||
+ | |||
http://www.guckes.net/Setup/screenrc | http://www.guckes.net/Setup/screenrc | ||
this also contains some of the problems i had with screen. | this also contains some of the problems i had with screen. | ||
(Sven Guckes) | (Sven Guckes) | ||
+ | |||
Sven Guckes (aka SvenG): | Sven Guckes (aka SvenG): | ||
http://www.guckes.net/Setup/tmux.conf | http://www.guckes.net/Setup/tmux.conf | ||
+ | |||
Jogi Hofmueller (aka Thesix): | Jogi Hofmueller (aka Thesix): | ||
http://hofos.at/configs/tmux.conf | http://hofos.at/configs/tmux.conf | ||
+ | |||
Bernhard (ak Xro): | Bernhard (ak Xro): | ||
https://www.tittelbach.at/files/.tmux.conf | https://www.tittelbach.at/files/.tmux.conf | ||
+ | Features: | ||
+ | - some keybindings like screen (Ctrl-a) | ||
+ | - j: join-pane | ||
+ | - K: kill-pane mit nachfrage | ||
+ | - \: kill-session mt nachfrage | ||
+ | - B: fenster ineine background session verschieben | ||
+ | - R: config reload | ||
+ | - space: next windows | ||
+ | - backspace: previous window | ||
+ | - tab: next-pane | ||
+ | - |: als intuitive alternative to horizontal split mit cmd | ||
+ | - -: als intuitive alternative to vertical split mit cmd nachfrage | ||
+ | - h: layout der panes ändern | ||
+ | - coole statusleiste die auch das grml default geworden ist :-) | ||
+ | |||
+ | |||
http://www.linuxwiki.de/tmux | http://www.linuxwiki.de/tmux | ||
an old attempt to describe tmux | an old attempt to describe tmux | ||
by Sven Guckes and Anselm Helbig | by Sven Guckes and Anselm Helbig | ||
[latest change on 2010-08-01] | [latest change on 2010-08-01] | ||
+ | |||
= Features = | = Features = | ||
+ | |||
== automatic terminal resize == | == automatic terminal resize == | ||
1. öffne ein terminal | 1. öffne ein terminal | ||
Line 328: | Line 360: | ||
7. schließe das kleinere terminalfenster | 7. schließe das kleinere terminalfenster | ||
8. schau zu wie tmux automatisch die größere ann die neue kleineste terminal größe anpasst | 8. schau zu wie tmux automatisch die größere ann die neue kleineste terminal größe anpasst | ||
- | == tmux commandos == | ||
- | werden zur Konfiguration in ~/.tmux.conf verwendet | + | = Key Bindings = |
+ | * w menu with all windows | ||
+ | * s tree-menu with all sessions and their windows | ||
+ | * # list all paste buffers (everything you ever copied) | ||
+ | * % split vertical | ||
+ | * " split horizontal | ||
+ | * ! break two panes into separate windows | ||
+ | * h change layout of panes | ||
- | können, genau gleich, mit <prefix-key>: auf der tmux CL eingegeben werden | ||
- | können aus der shell als argument zu 'tmux' angegeben werden in welchem Fall man z.b. volle zsh shell completion hat und sie auf das aktuelle Fenster wirken | + | == tmux commandos == |
- | + | * werden zur Konfiguration in ~/.tmux.conf verwendet | |
- | in jedem der drei Fälle schreiben sich die Commandos exakt gleich | + | * können, genau gleich, mit <prefix-key>: auf der tmux CL eingegeben werden |
- | + | * können aus der shell als argument zu 'tmux' angegeben werden in welchem Fall man z.b. volle zsh shell completion hat und sie auf das aktuelle Fenster wirken | |
- | die meisten Commandos nehmen die Standardargumente | + | * in jedem der drei Fälle schreiben sich die Commandos exakt gleich |
- | + | * die meisten Commandos nehmen die Standardargumente | |
- | -s für quell session:fenster | + | * -s für quell session:fenster |
- | + | * -t für ziel session:fenster | |
- | -t für ziel session:fenster | + | * new-session -s <name der neuen session> da sie eine neue quelle ist |
- | + | ||
- | new-session -s <name der neuen session> da sie eine neue quelle ist | + | |
== Fenster zwischen Sessions verschieben / teilen == | == Fenster zwischen Sessions verschieben / teilen == | ||
+ | * das aktuelle Fenster in eine andere (oder die selbe) Session linken: link-window -t <target session> | ||
+ | * das aktuelle Fenster in eine andere Session verschieben (oder einen anderen Platz in der aktuellen Session): move-window -t <target-session> | ||
+ | * Shortcut dafür festlegen in der config, z.b. C-b O um in die session "bg" zu verschieben: | ||
+ | bind-key B move-windows -t bg | ||
- | das aktuelle Fenster in eine andere (oder die selbe) Session linken: link-window -t <target session> | + | Noch besser, session "bg" bei Bedarf erst anlegen: |
+ | * bind-key B if-shell "! tmux has-session -t bg" "new-session -d -s bg" \; move-window -t bg | ||
- | das aktuelle Fenster in eine andere Session verschieben (oder einen anderen Platz in der aktuellen Session): move-window -t <target-session> | ||
- | Shortcut dafür festlegen in der config, z.b. C-b O um in die session "serverprocs" zu verschieben: | ||
- | bind-key O move-windows -t serverprocs | ||
= Tipps = | = Tipps = | ||
+ | |||
== immer die selbe tmux session attachen/wiederherstellen == | == immer die selbe tmux session attachen/wiederherstellen == | ||
#> tmux has-session -t guakesession && {exec tmux attach-session -t guakesession || exec zsh} || exec tmux new-session -s guakesession | #> tmux has-session -t guakesession && {exec tmux attach-session -t guakesession || exec zsh} || exec tmux new-session -s guakesession | ||
+ | |||
+ | |||
= Manual = | = Manual = | ||
+ | |||
NAME | NAME | ||
SYNOPSIS | SYNOPSIS | ||
Line 380: | Line 421: | ||
AUTHORS | AUTHORS | ||
BSD | BSD | ||
+ | |||
= FILES = | = FILES = | ||
+ | |||
~/.tmux.conf Default tmux configuration file. | ~/.tmux.conf Default tmux configuration file. | ||
/etc/tmux.conf System-wide configuration file. | /etc/tmux.conf System-wide configuration file. | ||
- | EOF | ||
- | EOT | ||
- | '' | ||
+ | EOF | ||
+ | </file> | ||
---- | ---- | ||
- | {{tag>workshop}} | + | {{tag>workshop show+tell}} |
realraum Graz, Brockmanngasse 15, 8010 Graz, realraum - Verein für Technik in Kultur und Gesellschaft