This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:tmux [2016/11/14 10:44] – [keyboard] scipio | tips:tmux [2017/01/20 14:01] (current) – [conf] scipio | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * ctrl+a w: list windows | * ctrl+a w: list windows | ||
| * ctrl+a d: detach | * ctrl+a d: detach | ||
| + | * ctrl+a PGUP: scroll mode | ||
| ===== sessions ===== | ===== sessions ===== | ||
| Line 26: | 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 139: | Line 155: | ||
| if-shell "test '# | if-shell "test '# | ||
| if-shell "test '# | if-shell "test '# | ||
| + | |||
| </ | </ | ||