Skip to content

Instantly share code, notes, and snippets.

@redgluten
Last active May 11, 2018 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redgluten/4ecacf8b13c1ee574326bfdc37c48ad5 to your computer and use it in GitHub Desktop.
Save redgluten/4ecacf8b13c1ee574326bfdc37c48ad5 to your computer and use it in GitHub Desktop.
Drush uli command for local host
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