Created
January 18, 2019 09:02
-
-
Save dnordstrom/68cce4fac8c5e684682e060046688d37 to your computer and use it in GitHub Desktop.
WSL Shell Startup Script
This file contains 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
{ | |
# 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