Last active
August 29, 2015 14:14
-
-
Save otterthecat/bfa0bfa7fc9920bb0be4 to your computer and use it in GitHub Desktop.
split terminal views for vim and unit test results
This file contains 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/bash | |
SESSION=$USER | |
tmux -2 new-session -d -s $SESSION | |
tmux new-window -t SESSION:1 -n "code" | |
tmux split-window -v | |
tmux select-pane -t 0 | |
tmux send-keys "vim" C-m | |
tmux select-pane -t 1 | |
tmux resize-pane -D 12 | |
tmux send-keys "gulp tdd:server" C-m | |
tmux select-window -t $SESSION:1 | |
tmux -2 attach-session -t $SESSION | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment