Ohmyzsh: `zsh: command not found: composer` after `plugins/composer/composer.plugin.zsh` updated

Created on 22 Mar 2017  ·  1Comment  ·  Source: ohmyzsh/ohmyzsh

After update the composer.plugin.zsh the c* command can't work any more.

I also leave a comment on the #5886

My composer lives in the *composer/vendor/bin, installed by composer global require composer/composer. I wonder you guys installed composer in system bin directory by other way like apt-get or brew,so composer command should work before the *composer/vendor/bin set in the PATH.

However I'd like my composer lives in *composer/vendor/bin because I'd like to have my composer up to date everytime I ran cgu.

So is there some better way? maybe use find to find composer bin file in the user home directory and add it's path to PATH? Sorry that I am not familiar with shell so I can't tell what the exact code looks like.

Most helpful comment

current workaround

add composer vendor bin path manually in .zshrc

export PATH="$PATH:$HOME/.composer/vendor/bin"

or make a symlink in the /usr/local/bin

>All comments

current workaround

add composer vendor bin path manually in .zshrc

export PATH="$PATH:$HOME/.composer/vendor/bin"

or make a symlink in the /usr/local/bin

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samsondav picture samsondav  ·  3Comments

dogrizz picture dogrizz  ·  3Comments

cbou picture cbou  ·  3Comments

mukteshkrmishra picture mukteshkrmishra  ·  3Comments

TadorHead picture TadorHead  ·  3Comments