You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oh-my-fish/plugins/composer/composer.load

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