Wednesday, October 02, 2013

OSX Terminal - Colours for Directory Listing

If you're used to seeing a multi-coloured display when looking at directory contents: on most *nix systems, these listings have a colour code for directories, system files etc. In Mac's OSX Terminal, it's all just plain text.

One solution is use another shell app (I frequently use the one built into Pathfinder).

However, you can also turn the colour on for Terminal by editing the ~/.bash_profile file and adding the following lines:

# Add colours to Terminal 
export CLICOLOR=1 
export LSCOLORS=GxFxCxDxBxegedabagaced

Restart Terminal.

You're welcome

No comments:

Post a comment