Skip to content

Instantly share code, notes, and snippets.

@desyncr
Forked from h4cc/.bash_aliases
Created September 1, 2014 15:20
Show Gist options
  • Save desyncr/15af005ba8acf9246e4c to your computer and use it in GitHub Desktop.
Save desyncr/15af005ba8acf9246e4c to your computer and use it in GitHub Desktop.
# 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