Last active
August 29, 2015 13:57
-
-
Save andreisebastianc/9643156 to your computer and use it in GitHub Desktop.
the script I use to initialize my work workspace
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
#!/bin/bash | |
SESSION_NAME="JS" | |
cd ~/Documents/work/project/app | |
tmux has-session -t ${SESSION_NAME} | |
if [ $? != 0 ] | |
then | |
tmux -2 new-session -d -s ${SESSION_NAME} -n 'CODE' | |
tmux send-keys -t ${SESSION_NAME} 'node' C-m | |
tmux split-window -v | |
tmux send-keys -t ${SESSION_NAME} 'clear' C-m | |
tmux send-keys -t ${SESSION_NAME} 'vim' C-m | |
tmux resize-pane -U 20 | |
tmux resize-pane -Z | |
tmux new-window -n 'git' | |
tmux send-keys -t ${SESSION_NAME} 'clear' C-m | |
tmux send-keys -t ${SESSION_NAME} 'git status' C-m | |
cd ~/Documents/repo/project-DOC | |
tmux new-window -n 'DOCS' | |
tmux split-window -h | |
tmux select-pane -t 0 | |
tmux send-keys -t ${SESSION_NAME} 'grunt' C-m | |
tmux split-window -v | |
tmux send-keys -t ${SESSION_NAME} 'clear' C-m | |
tmux send-keys -t ${SESSION_NAME} 'ls' C-m | |
tmux select-pane -t 1 | |
tmux send-keys -t ${SESSION_NAME} 'vim' C-m | |
fi | |
tmux -2 attach-session -t ${SESSION_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment