Hi,

Another snippet to add to the list, a quick login command that opens the result of a drush uli command in the default browser:

  l)
    shift
    alias=$1
    shift
    uri=`${DRUSH_PATH} $alias uli $@`
    if [ $uri ] ; then
      sleep 1
      echo "Opening: $uri"
      open $uri
    else
      echo "Invalid alias: $1"
    fi
    ;;

Syntax is as such:
d l @alias - Login as UID 1
d l @alias [username] - Login as [username]

 

Marked as needs work as I am unable to completely test it myself at the moment (though I have a 3rd party testing for me), and I suspect that it may need a little bit more error handling if a [username] that doesn't exist is supplied.

Comments

dstol’s picture

Status: Needs work » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.