Sorry if this is a duplicate issue or part of documentation I missed

Is there a way to tell drush to use a certain drupal install from outside of that folder without having to use the option when writting the command (I believe there's an option for the command)

Ie usually I'm working one directory down form a particular install (ie /var/www/site instead of /var/www/site/drupal) and keep cding to drupal for drush. It'd be nice if I could have a config file in the folder that tells drush where to look for the drupal install. Is there a way to do that? Keep getting "yo man, where's your drupal install? I'm totally confused!"ish from drush cause I forget to cd to the drupal directory :(.

Comments

moshe weitzman’s picture

that config file is drush.php. it can be discovered in a few places. see example.drushrc.php in your drush install. just rename and customize that as needed.

hefox’s picture

Status: Active » Fixed

thankyou That was emberssingly simple; I'm blame kathleen for saying there wasn't a way! :<

I guess the question now i can relative paths be used for $options['r'], though I'll figure that out by testing and seeing

moshe weitzman’s picture

oops type. i meant rename to drushrc.php

hefox’s picture

Yeah I guessed that, thanks.

By the way, did you just typo 'typo'?

Status: Fixed » Closed (fixed)

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