Created
May 26, 2016 09:32
-
-
Save rodrigoaguilera/3adc30d4ef242b814e01000f0fc5fb1c to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
// Load a drushrc.php file from the 'drush' folder at the root | |
// of the current git repository. | |
exec('git rev-parse --git-dir 2> /dev/null', $output); | |
if (!empty($output)) { | |
$repo = $output[0]; | |
$options['config'] = $repo . '/../drush/drushrc.php'; | |
$options['include'] = $repo . '/../drush/commands'; | |
$options['alias-path'] = $repo . '/../drush/aliases'; | |
} | |
$options['variables']['language_default']->language = 'en'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment