Skip to content

Instantly share code, notes, and snippets.

drush() {
local git_root in_git local_drush
git_root=`git rev-parse --show-cdup 2>/dev/null`
in_git=$?
if [ $in_git = 0 ]; then
local_drush=$git_root"vendor/bin/drush"
if [ -e $local_drush ]; then
command $local_drush "$@"
return "$?"
fi