Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
opendb for ddev
opendb () {
unset GREP_OPTIONS
PORT="$(ddev describe | ggrep -Pio "(?<=port=)[0-9]*")"
open mysql://db:db@127.0.0.1:${PORT}/db
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment