-
-
Save raulneis/4085f23a35d4ac18568fb6d373056246 to your computer and use it in GitHub Desktop.
Symfony console command shortcut
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
#!/bin/bash | |
# | |
# Instead of the `php bin/console` or `php app/console`, just type `sf`. | |
# Place this file in your ~/bin directory or include it in your path. | |
# | |
FILE=$(readlink -f ./bin/console) | |
if [ -f $FILE ]; then | |
php $FILE $@ | |
else | |
FILE=$(readlink -f ./app/console) | |
if [ -f $FILE ]; then | |
php $FILE $@ | |
else | |
echo "Not a Symfony directory" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment