Last active
May 11, 2018 15:36
-
-
Save redgluten/4ecacf8b13c1ee574326bfdc37c48ad5 to your computer and use it in GitHub Desktop.
Drush uli command for local host
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
function duli() { | |
sitename=`dirname $PWD | grep -Po "^/var/www/\K(.*)$"` | |
uniquelink=`drush uli | grep -Po "^http://default/\K(.*)$"` | |
echo "http://$sitename.test/$uniquelink" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment