Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- name=${PWD##*/}
- tmux new-session -d -s $name
- tmux new-window -t $name:2 -n 'server'
- tmux send-keys -t $name:2 'npm start' 'C-m'
- tmux new-window -t $name:1 -n 'test'
- tmux send-keys -t $name:1 'npm test' 'C-m'
- tmux select-window -t $name:0
- tmux -2 attach-session -t $name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement