Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I natively installed ubuntu with the package manager through apt-get install drush .

After a find i discovered that they're natively installed at /usr/share/drush.

My question is the following: is it possible to add aliases with the ubuntu brewed drush? If so where? in the /usr/share/drush/ folder?

The ubuntu version seems to be missing the example folder as well as some other files: ini, topic files.

share|improve this question

migrated from drupal.stackexchange.com Dec 2 '11 at 9:07

This question came from our site for Drupal developers and administrators.

add comment

2 Answers 2

up vote 2 down vote accepted

For instructions on creating aliases, see drush topic docs-aliases, which can also be found at http://drupalcode.org/project/drush.git/blob/refs/heads/7.x-4.x:/examples/example.aliases.drushrc.php

The best place to put global aliases would be in /etc/drush; user-specific aliases should go in $HOME/.drush.

share|improve this answer
    
Thanks Greg. Welcome to askubuntu.com too btw. –  chrisjlee Dec 7 '11 at 19:05
add comment

You can create a folder in your drush folder called 'aliases'. In that folder you can create a file aliases.drushrc.php (or project specific -> myproject.aliases.drushrc.php) and i guess it should work then. so first try /usr/share/drush/aliases/aliases.drushrc.php, and see if that works.

If you put the drush location in your path, you can place the alias file in a drush folder in your home directory

there's more linux specific info in the readme.txt http://drupalcode.org/project/drush.git/blob/refs/heads/7.x-4.x:/README.txt

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.