Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
showtell:show_tell2014 [2014-04-08 04:00]
xro [Backup von Tmux Show+Tell]
showtell:show_tell2014 [2015-09-22 22:16]
xro ↷ Page moved from show_tell2014 to showtell:show_tell2014
Line 285: Line 285:
 <file - guckes_tmux2014graz.txt>​ <file - guckes_tmux2014graz.txt>​
 = Problem = = 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 302: 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
Line 329: Line 342:
 - h: layout der panes ändern - h: layout der panes ändern
 - coole statusleiste die auch das grml default geworden ist :-) - 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 343: 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
 +
 = Key Bindings = = 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
  
-    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 
  
 == tmux commandos == == tmux commandos ==
- + ​* ​werden zur Konfiguration in ~/​.tmux.conf verwendet 
-    ​werden zur Konfiguration in ~/​.tmux.conf verwendet + 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 
-    ​können, genau gleich, mit <​prefix-key>:​ auf der tmux CL eingegeben werden + in jedem der drei Fälle schreiben sich die Commandos exakt gleich 
- + die meisten Commandos nehmen die Standardargumente  
-    ​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 +   * -s für quell session:​fenster 
- +   * -t für ziel session:​fenster 
-    ​in jedem der drei Fälle schreiben sich die Commandos exakt gleich +   * new-session -s <name der neuen session> da sie eine neue quelle ist
- +
-    ​die meisten Commandos nehmen die Standardargumente  +
- +
-    ​-s für quell session:​fenster +
- +
-    ​-t für ziel session:​fenster +
- +
-    ​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> 
- 
-    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 
 Noch besser, session "​bg"​ bei Bedarf erst anlegen: 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
 +
  
-    bind-key B if-shell "! tmux has-session -t bg" "​new-session -d -s bg" \; move-window -t bg 
  
 = 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 415: 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 EOF
 </​file>​ </​file>​
  
 ---- ----
-{{tag>​workshop}}+{{tag>​workshop ​show+tell}}
realraum Graz, Brockmanngasse 15, 8010 Graz, realraum - Verein für Technik in Kultur und Gesellschaft
  • /var/lib/dokuwiki/data/pages/showtell/show_tell2014.txt
  • Last modified: 2015-09-22 22:16
  • by xro