Hey all,

I can't get the alias to drush to work.

I have the drush folder in /var/www, and so in ~./bashrc I have:

alias drush='/var/www/drush/drush'

I've made drush executable (when I go drush/drush dl views ....it works)

I just can't make the alias work. server=ubuntu

Thanks!

Comments

mikeybusiness’s picture

Are you using Ubuntu LTS? It doesn't support php-cli out of the box. The README may have more info. There is a PHP-ClI requirement for Drush. It helps you execute php commands from the command line I think. Someone else may know more.

saltcod’s picture

Thanks for the reply. Drush does actually work out of the box. Just make drush/drush executable and it works fine. The alias is the part that won't work. To run drush commands now I need to go:

/var/www/drush/drush dl views cck
instead of
drush dl views cck

rubenvarela’s picture

After creating the alias in .bashrc,

alias drush='/var/www/drush/drush'

to reload to detect the changes you simply have to run
source ~/.bashrc

saltcod’s picture

awesome. Works like a charm. Thanks!

rubenvarela’s picture

No problem saltcod