Created
March 13, 2018 19:53
-
-
Save glebkuznetsov/8daaecfd9b3ceb9f6885e20c11243583 to your computer and use it in GitHub Desktop.
Shell script that creates tmux with 2 named windows and launches docker. Commonly used for MLPE dev
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/sh | |
| # Customizable | |
| SESSION_NAME='aws-mlpe' | |
| # Default filesystem setup | |
| cd ~/notebooks/mlpe-gfp-pilot/ | |
| # Create session and name first window git | |
| tmux new-session -s $SESSION_NAME -n git -d | |
| # Set up docker window | |
| tmux new-window -n docker -t $SESSION_NAME | |
| tmux send-keys -t $SESSION_NAME:docker './docker/run_docker.sh' C-m | |
| # Attach | |
| tmux attach -t $SESSION_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment