Install
brew tap drud/ddev && brew install ddev
ddev-update-db() { REVERSE=$(which typo3reverse) DDEV=$(which ddev) CONFIG=$1 if [ ! -d ".ddev" ]; then echo "This folder is not a ddev project" fi if [ -d ".ddev" ]; then if [ -z "$1" ] then CONFIG='live' fi $REVERSE "$CONFIG" && $DDEV stop --remove-data && $DDEV import-db --src ".data/db/dump/$CONFIG.sql" fi }