-
-
Save marcusmoore/f4c01add7c5a9b21a10ef4c9e312ef1a to your computer and use it in GitHub Desktop.
opendb for ddev
This file contains hidden or 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
opendb () { | |
unset GREP_OPTIONS | |
PORT="$(ddev describe | ggrep -Pio "(?<=port=)[0-9]*")" | |
open mysql://db:[email protected]:${PORT}/db | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment