Sep
08

2011

Enabling Color Support in your Terminal on an Apple Mac



I spend a lot of time in terminal, and on my mac, so I am constantly looking for ways to make it a little better. And color is one of the best ways…

So to enable colors in terminal on a mac, the first thing you need to do is to create a .bash_profile

  1. Open up your terminal
  2. Type ‘ cd ~’ to go to your home folder.
  3. Type ‘touch .bash_profile’ which will create your new bash file.
  4. Edit the ‘.bash_profile’ file you just created with your favorite text editor.
  5. Add in these two line to the file:
  6. Go back to your terminal and type ‘. .bash_profile’ (note the space between the periods).
  7. Try it now with an ‘ls’ command. If it still isn’t in color, try restarting your terminal.


Author:

The author didnt add any Information to his profile yet



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">