All the Pretty Colors

I absolute love the saying "it's the little things" because to me, it truly is.  One of my favorite things is colors; bright colors, wild colors, happy colors, all the pretty colors.  Given that I spend a large percentage of my day working inside of my Mac terminal I have made a concerted effort to introduce some pizazz.  The first thing I did, that you should definitely do too, is to color the output from the ls command.  This not only makes the terminal prettier to look at but also is extremely useful in that you can distinguish easily between directories, regular files, and executables. 

Now you might be saying wawaweewah, that's awesome ... but wait why is you're prompt so cool looking too?  Well that's because I have journeyed one step further into the colorful world of linux esthetics.  And this is the personalization of the prompt and of the specific colors used by the ls command.  To change these settings I visited several great resources concerning prompt colors and ls colors.  To make these changes permanent I added the following lines to my bash source file (i.e. .profile if you are using a mac):

alias ls='ls -G'

export LSCOLORS=GxFxCxDxBxegedabagaced

export PS1='\[\e[1;31m\][\t \u\[\e[0;36m\] \W\[\e[1;31m\]]\[\e[1;31m\]\$\[\e[m\]'

You may just well be thinking well that's all well and good but really what's the point of changing your terminal prompt (besides the "it's the little things" life stance) - well it comes in especially handy if you're like me and you're constantly ssh'ing into other computers. Say you have 3 terminal windows open to three different computers, if you have the same computer name on all three it's pretty hard to tell them apart! My solution .... all the pretty colors :)

Get out there and start coloring!

Natalie AccardoLinux, Fun