August 5, 2009

Add Some Color to Your Terminal

I like to kick it grey on black with the terminal, pro style. That way, you can actually see the highlights that some programs output as white. Then I add a complementary splash of color by adding the following to my ~/.bashrc file:
eval `dircolors`
alias ls='ls --color=yes'
alias grep='grep --color=yes'
alias less='less -R'

Note that the above aliases will not break command line scripting by adding extra characters.

I also end up tweaking my vim editor colors in my ~/.vimrc file:
" color
set background=dark
" search
set ignorecase
set smartcase
set incsearch

Thanks, Chris!

0 comments: