Created
September 17, 2020 16:39
-
-
Save AlexVanderbist/3c127033d10eb461ef245a0a09bca890 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