Skip to content

Instantly share code, notes, and snippets.

@otterthecat
Last active August 29, 2015 14:14
Show Gist options
  • Save otterthecat/bfa0bfa7fc9920bb0be4 to your computer and use it in GitHub Desktop.
Save otterthecat/bfa0bfa7fc9920bb0be4 to your computer and use it in GitHub Desktop.
split terminal views for vim and unit test results
#!/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