Skip to content

Instantly share code, notes, and snippets.

@Toflar
Created December 13, 2017 13:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Toflar/5d64cd4a10b0cefcec5e88a584e8dd6f to your computer and use it in GitHub Desktop.
Save Toflar/5d64cd4a10b0cefcec5e88a584e8dd6f to your computer and use it in GitHub Desktop.
sf function for bash_profile
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