tips:tmux

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
tips:tmux [2016/11/14 08:40] – [sessions] scipiotips:tmux [2017/01/20 14:01] (current) – [conf] scipio
Line 5: Line 5:
 ===== keyboard ===== ===== keyboard =====
  
-  * ctrl+c: create +  * ctrl+c: create 
-  * ctrl+n: move next +  * ctrl+n: move next 
-  * ctrl+o: move previous +  * ctrl+o: move previous 
-  * ctrl+w: list windows+  * ctrl+w: list windows 
 +  * ctrl+a d: detach 
 +  * ctrl+a PGUP: scroll mode
  
 ===== sessions ===== ===== sessions =====
 +
 +list
 +<code bash>
 +tmux ls
 +</code>
 +
 +attach
 +<code bash>
 +tmux a [-t name]
 +</code>
  
 kill detached kill detached
 <code bash> <code bash>
 tmux kill-server tmux kill-server
 +</code>
 +
 +===== script =====
 +
 +<code bash>
 +tmux -2 new-session -d -s wega -n 'all' 'make runall'
 +
 +tmux new-window -t wega:2 -n 'brain & GUI' "bash"
 +tmux send-keys -t wega:2.0 'cd wegabrain; make run' Enter
 +
 +tmux split-window -v "bash"
 +tmux send-keys -t wega:2.1 'cd wegagui/wegagui/webapp; make serve' Enter
 +
 +tmux select-window -t wega:2
 +tmux -2 attach-session -t wega
 </code> </code>
  
Line 128: Line 155:
 if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"' if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
 if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"' if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"'
 +
 </file> </file>
  • tips/tmux.1479109205.txt.gz
  • Last modified: 2016/11/14 08:40
  • by scipio