Last Updated: February 25, 2016
·
1.462K
· craigmarvelley

Easily copying parameters.yml.dist to parameters.yml

I was getting a bit bored of having to type the following when installing a Symfony2 app for the first time:

cp app/config/parameters.yml.dist app/config/parameters.yml

Thankfully my colleague Aurelien introduced us to this trick:

cp app/config/parameters.yml{.dist,}

which does the same thing, but in a much nicer way :) Tested on Ubuntu and OSX.