Tag Archives: colors

How to fix no colors in Symfony2 Console Component

After updating from PHP 5.4 to PHP 5.6 I saw there was no colors anymore when running commands with the console component.

symfony-console-component-no-colors

This happend because I didn’t install php-poxis extension. So it was fixed by just running this Mac Ports command:

$ sudo port install php56-posix

symfony-console-component-with-colors

Note: If you use another version of PHP change the version number or just use php-poxis.

Ref: http://serverfault.com/a/409966

Add colors to the text in terminal application in Mac OS X

Just add the following 2 lines to your /etc/profile, ~/.profile or ~/.bash_profile:

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

Then to make it work you have to close and open again the terminal application.

Source: StackOverflow.