Created
November 6, 2013 12:51
-
-
Save kl/7335593 to your computer and use it in GitHub Desktop.
tmux-development
This file contains hidden or 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
tmux has-session -t development | |
if [ $? != 0 ] | |
then | |
tmux new-session -s development -n editor -d | |
tmux send-keys -t development 'cd ~/Programming' C-m | |
tmux send-keys -t development 'vim' C-m | |
tmux split-window -h -p 35 -t development | |
tmux split-window -v -p 50 -t development | |
tmux send-keys -t development:1.2 'cd ~/Programming' C-m | |
tmux send-keys -t development:1.3 'cd ~/Programming' C-m | |
tmux new-window -n console -t development | |
tmux send-keys -t development:2 'cd ~/Programming' C-m | |
tmux select-window -t development:1 | |
fi | |
tmux attach -t development |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment