Last active
May 2, 2017 15:36
-
-
Save jasonvarga/321575cf83c3ecef021cfab6f41cffb6 to your computer and use it in GitHub Desktop.
Interchangeable "please" and "artisan" regardless of Laravel/Statamic project type.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias artisan='art_plz' | |
alias please='art_plz' | |
alias art='art_plz' | |
alias plz='art_plz' | |
function art_plz { | |
if [ -e artisan ]; then | |
php artisan "$@" | |
elif [ -e please ]; then | |
php please "$@" | |
else | |
echo "No artisan binary detected." | |
fi | |
} |
Very slight difference. Negligible for most people. Searches a couple dirs deep, b/c I don't keep Statamic at root of my repo. Also, you don't have to change the command. It's artisan
or please
rather than art_plz
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's exactly what it's doing, unless I'm missing something.