Skip to content

Instantly share code, notes, and snippets.

@dnordstrom
Created January 18, 2019 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnordstrom/68cce4fac8c5e684682e060046688d37 to your computer and use it in GitHub Desktop.
Save dnordstrom/68cce4fac8c5e684682e060046688d37 to your computer and use it in GitHub Desktop.
WSL Shell Startup Script
{
# Add globally installed Yarn package scripts to path
export PATH="$(yarn global bin):$PATH"
# Make sure Windows Docker VM is running
docker-machine.exe start default
# Set Docker bridge environment variables
eval $(docker-machine.exe env --shell bash | sed 's/C:/\/c/' | sed 's/\\/\//g' | sed 's:#.*$::g' | sed 's/"//g')
} > "$0.log" 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment