oh-my-fish/plugins/composer/composer.fish
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

11 lines
350 B
Fish

# composer command
function composer
if test -e ./composer.phar # if there is composer in this path use local one
./composer.phar $argv;
else if test -n "$COMPOSER_BIN"
eval "$COMPOSER_BIN" $argv;
else
echo "Please install composer.phar to your PATH. Or use \"composer_install\" to install Composer to current directory."
end
end