Reputation: 16832
I put composer.phar in /usr/bin and I then created /usr/bin/composer with php /usr/bin/composer.phar $@
and then when I try to run composer
I get the following:
No command 'composer' found, did you mean:
Command 'compose' from package 'mime-support' (main)
composer: command not found
Any ideas?
Upvotes: 4
Views: 3367
Reputation: 1168
Use symlink:
ln -s ~/composer.phar /usr/bin/composer
chmod +x ~/composer.phar
Upvotes: 5