Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:tmux [2016/11/14 10:44] – [sessions] scipio | tips:tmux [2017/01/20 14:01] (current) – [conf] scipio | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== keyboard ===== | ===== keyboard ===== | ||
- | * ctrl+b c: create | + | * ctrl+a c: create |
- | * ctrl+b n: move next | + | * ctrl+a n: move next |
- | * ctrl+b o: move previous | + | * ctrl+a o: move previous |
- | * ctrl+b w: list windows | + | * ctrl+a w: list windows |
+ | * ctrl+a d: detach | ||
+ | * ctrl+a PGUP: scroll mode | ||
===== sessions ===== | ===== sessions ===== | ||
Line 25: | Line 27: | ||
<code bash> | <code bash> | ||
tmux kill-server | tmux kill-server | ||
+ | </ | ||
+ | |||
+ | ===== script ===== | ||
+ | |||
+ | <code bash> | ||
+ | tmux -2 new-session -d -s wega -n ' | ||
+ | |||
+ | tmux new-window -t wega:2 -n 'brain & GUI' " | ||
+ | tmux send-keys -t wega:2.0 'cd wegabrain; make run' Enter | ||
+ | |||
+ | tmux split-window -v " | ||
+ | tmux send-keys -t wega:2.1 'cd wegagui/ | ||
+ | |||
+ | tmux select-window -t wega:2 | ||
+ | tmux -2 attach-session -t wega | ||
</ | </ | ||
Line 138: | Line 155: | ||
if-shell "test '# | if-shell "test '# | ||
if-shell "test '# | if-shell "test '# | ||
+ | |||
</ | </ |