neubert
neubert

Reputation: 16832

making it so you can call composer from any directory

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

Answers (1)

Anatoly Rugalev
Anatoly Rugalev

Reputation: 1168

Use symlink:

ln -s ~/composer.phar /usr/bin/composer
chmod +x ~/composer.phar

Upvotes: 5

Related Questions