Skip to content

Instantly share code, notes, and snippets.

@glebkuznetsov
Created March 13, 2018 19:53
Show Gist options
  • Select an option

  • Save glebkuznetsov/8daaecfd9b3ceb9f6885e20c11243583 to your computer and use it in GitHub Desktop.

Select an option

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
#!/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