mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-03 14:53:41 +08:00
d3daa585aa
- add function "composer" - uses local composer if available - add function "composer_install" to install composer to current dir
11 lines
350 B
Fish
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
|