Skip to content

Instantly share code, notes, and snippets.

@Lytol Lytol/dev
Created Dec 3, 2014

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.