A Shorthand for Clearing Cache in Symfony

In developing with symfony, you delete the cache over and over. The symfony command for this is that:

symfony clear-cache

or

symfony cc

The second one is muct shorter, but we can make it far shorter by making an alias for the command.

  1. Open your bash profile file. That would “~/.bash_login”, “~/.profile” or “~/.bash_profile”.
  2. Add the following code: alias cc="symfony cc"
  3. Close the terminal window and reopen. Now the command cc should work as “symfony cc”.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.