Closed (fixed)
Project:
Drush
Version:
6.x-2.0-alpha2
Component:
Miscellaneous
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2009 at 14:22 UTC
Updated:
3 Oct 2009 at 14:40 UTC
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
Comment #1
moshe weitzman commentedthat 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.
Comment #2
hefox commentedthankyou 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
Comment #3
moshe weitzman commentedoops type. i meant rename to drushrc.php
Comment #4
hefox commentedYeah I guessed that, thanks.
By the way, did you just typo 'typo'?