Skip to content

Instantly share code, notes, and snippets.

@dnordstrom
Created February 28, 2019 12:42
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/4d5f2d7240f6ce187640b8c88d14f905 to your computer and use it in GitHub Desktop.
Save dnordstrom/4d5f2d7240f6ce187640b8c88d14f905 to your computer and use it in GitHub Desktop.
.shellrc
{
# Enable Windows access for Vagrant
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
# Add VirtualBox to path
export PATH="$PATH:/c/Program Files/Oracle/VirtualBox"
# 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')
cd /mnt/d/Code
} > "$0.log" 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment