Created
April 10, 2012 02:33
-
-
Save satococoa/2347993 to your computer and use it in GitHub Desktop.
tmuxで画面を4分割しつつコマンド実行
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| tmux new-window -n name # 新しいwindowを開きたくない場合は以下 | |
| # tmux rename-window name | |
| tmux split-window -h | |
| tmux split-window -v -t name.0 | |
| tmux split-window -v -t name.1 | |
| tmux send-keys -t name.0 'echo 0' C-m | |
| tmux send-keys -t name.1 'echo 1' C-m | |
| tmux send-keys -t name.2 'echo 2' C-m | |
| tmux send-keys -t name.3 'echo 3' C-m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment