Colorful Linux Bash Console by .alias and .bash_profile

At Dreamhost, we are all granted unlimited accounts of SSH access to the servers. The default console setting is a monochromatic one just like the old DOS days that it sores the eyes to look through the screen. Read their wiki the other day and found it’s possible to reconfigure all the colors and display schemes for the ease of console operations.

.alias and .bash_profile are the 2 basic console configuration files located at your home directory, hidden by default, and you have to use ‘ls -a’ to get them in sight. Add the line:

alias ls ‘ls –color=auto’

at the end of the file .alias, and add the line:

alias lsl=’ls –color’

to the end of .bash_profile. After that, you are blessed with a colorful console with the command ‘lsl -o‘, just like the one I have:

image

Enjoy!

Leave a Comment