-
-
Save desyncr/15af005ba8acf9246e4c to your computer and use it in GitHub Desktop.
This file contains 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
# Function for starting browser in background | |
browser() { firefox "$@" & } | |
#--- Composer | |
# Fetching latest composer version. | |
alias getcomposer='curl -s https://getcomposer.org/installer | php' | |
# Fetching latest composer version if not available and run it. | |
alias composer='[ ! -f composer.phar ] && getcomposer; php composer.phar' | |
#--- Symfony2 | |
# | |
# Source: | |
# http://johnkary.net/blog/useful-commands-for-efficient-symfony2-development/ | |
# | |
# Console | |
alias sf='php app/console' | |
# Clear Cache | |
alias sfcc="php app/console cache:clear" | |
# PHPUnit | |
alias sft='php bin/phpunit -c app' | |
# PHPunit with Coverage | |
alias sftc='php bin/phpunit -c app --coverage-html=coverage' | |
# ... and start with Browser | |
alias sftcfox='php bin/phpunit -c app --coverage-html=coverage && browser coverage/index.html' | |
# Sf2 Router Debug | |
alias sfrd='php app/console router:debug' | |
# Sf2 Container Debug | |
alias sfcd='php app/console container:debug' | |
# Sf2 Config Reference Dump | |
alias sfcdr='php app/console config:dump-reference' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment