Wednesday, September 15, 2010

Things I usually add to my bashrc

Here are some little things I usually like to add to my bash configuration, since I used debian the file is /etc/bash.bashrc, but could also be ~/.bashrc:

readonly HISTTIMEFORMAT="%d/%m/%Y at %T: "
readonly HISTFILESIZE=5000
export HISTCONTROL="erasedups"
readonly command_oriented_history=1
export HISTTIMEFORMAT HISTFILESIZE HISTCONTROL command_oriented_history
source /usr/bin/funcoeszz
shopt -s histappend
shopt -s cdspell
shopt -s dirspell
history -a
set -o vi
if [ -x /usr/games/fortune ]; then
        echo
        /usr/games/fortune -a
        echo
fi

Much funnier than default!

No comments: