oh-my-fish/plugins/composer/composer.load
Natrim d3daa585aa Composer plugin
- add function "composer"
- uses local composer if available
- add function "composer_install" to install composer to current dir
2014-11-28 19:45:55 +11:00

17 lines
475 B
Fish

# add Composer's global binaries to PATH
if test -z "$COMPOSER_BIN_PATH"
set -gx COMPOSER_BIN_PATH $HOME/.composer/vendor/bin
end
set PATH $COMPOSER_BIN_PATH $PATH
# get composer path
if test -z "$COMPOSER_BIN"
if type "composer.phar" > /dev/null
set -gx COMPOSER_BIN (which composer.phar)
else if type "composer" > /dev/null
set -gx COMPOSER_BIN (which composer)
else
echo "FAILED to find Composer! Please install composer.phar to your PATH."
end
end