Created
December 13, 2017 13:54
-
-
Save Toflar/5d64cd4a10b0cefcec5e88a584e8dd6f to your computer and use it in GitHub Desktop.
sf function for bash_profile
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
sf() { | |
if [ -f ./vendor/bin/contao-console ]; then | |
./vendor/bin/contao-console $@ | |
return $? | |
fi; | |
if [ -f ./bin/console ]; then | |
./bin/console $@ | |
return $? | |
fi; | |
if [ -f ./app/console ]; then | |
./app/console $@ | |
return $? | |
fi; | |
echo "Did not find any console"; | |
return 1; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment