-
-
Save Lytol/32227b5854be41f4377e to your computer and use it in GitHub Desktop.
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=`basename $PWD` | |
tmux new-session -d -s $SESSION -n 'Shell' | |
tmux split-window -h | |
if [[ -e Procfile ]]; then | |
tmux new-window -t $SESSION:1 -n 'Foreman' | |
tmux select-window -t $SESSION:1 | |
tmux send-keys "foreman start" C-m | |
fi | |
tmux new-window -t $SESSION:2 -n 'Vim' | |
tmux select-window -t $SESSION:2 | |
tmux send-keys "vim" C-m | |
tmux select-window -t $SESSION:0 | |
tmux attach-session -t $SESSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment