Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By bendqh1 on
drush
-bash: drush: command not found
vendor/bin/drush
Normal output
Executing vendor/bin/drush
each time is probably inefficient and only drush
is better.
How to do that correctly?
I have tried to put the alias drush="vendor/bin/drush"
in "$HOME"/.bashrc and then source "$HOME"/,bashrc
, but when executing drush I still get that the command isn't found.
How to alias vendor/bin/drush into drush?
Comments
Maybe use $PATH instead?
Check out the discussion Document how to most easily make
vendor/bin/drush
available asdrush
#5828 and the Drush documentation.