/bin/bash configuration

# IBM has a good mini-tutorial on how to customize the bash prompt

# setting up a custom prompt
blue=’e[0;34m'
green='e[0;32m'
white='e[0m'

export PS1="[${blue}]t [${green}]h[${white}]:[${blue}]W[${white}]$ “

alias rm=’rm -i’
alias cp=’cp -i’
alias mv=’mv -i’
alias ls=’ls -G’

# & supresses duplicate entries
# [ t] doesn’t record any commands with a preceding space
export HISTIGNORE=”&:[ t]*:ls:[bf]g:exit”
export HISTSIZE=1000
export EDITOR=/usr/bin/vim

Leave a Reply