Skip to content

Instantly share code, notes, and snippets.

@nickgartmann
Created May 28, 2015 21:34
Show Gist options
  • Save nickgartmann/cbf6bd71f9387f64790b to your computer and use it in GitHub Desktop.
Save nickgartmann/cbf6bd71f9387f64790b to your computer and use it in GitHub Desktop.
Put this in your .bashrc or .zshrc to auto-initialize boot2docker for new shells (while boot2docker is up)
if [ "$(boot2docker status)" = 'running' ]; then
$(boot2docker shellinit 2&>1) > /dev/null
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment