header

bashrc on FreeBSD

The default bashrc for freebsd is bland, black and white, so I looked for something to spice it up.
First I added color as well as some custom-ities to my two line prompt:

export PS1="e[32;40mt e[33;40mue[34;40m@e[31;40mh e[36;40mwne[37;40m#$ e[0m"

Then I added color to my ls’s. Once you experience the default linux coloring, going back is pretty hard.

CLICOLOR="YES";    export CLICOLOR
LSCOLORS="ExGxFxdxCxDxDxhbadExEx";    export LSCOLORS

This gives
the 24 hour time in green, followed by user (orange)@(blue)host(red), followed by the current path (light blue), then new line
followed by the number of commands done on this term thus far, followed by the “$” symbol.

Works great for me.

Of course, don’t forget to source it in your .bash_profile
source ~/.bashrc

Leave a Comment

blogtimes