Different possibilities to run drush (drush 10)
Method 1 : Install and run drush as described in this article
This is the recommended method
Method 2 : Create a shortcut on ~/.local/bin
1. Create a link to drush exec file on ~/.local/bin
ln -s 'PATH TO DRUSH BIN'
ln -s /home/drupal/.config/composer/vendor/bin/drush
2. If not added yet, add ~/.local/bin folder to env path (Tutorial) to load automaticly or load manually like
Methos 3 : Create shorcut on .bashrc
Edit ~.bashrc file and add (For example)
alias drush='PATH TO DRUSH BIN'
Add new comment