I know that Drush is a huge time saver so I'm trying to get familiar with it but I keep getting
command not found
error after installation. I've required and removed Drush a couple of times just to make sure I'm doing this correctly.
Here's what I did:
$ cd mydrupal
$ composer require drush/drush
After I run the above command many things install:
Using version ^9.3 for drush/drush
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 57 installs, 0 updates, 0 removals
- Installing... (many things download and install (100%))
And I end up with this:
Writing lock file
Generating autoload files
Drupal\Core\Composer\Composer::preAutoloadDump Drupal\Core\Composer\Composer::ensureHtaccess
Then I get my command line prompt and I run
$ drush status
and I get this:
-bash: drush: command not found
Any ideas?