bash/bashrc/.wit

34 lines
681 B
Plaintext

# set -x
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
export WIT_BASH=true
export WIT_USER=$LC_USER
if [ "x$WIT_USER" == "x" ]; then
export WIT_USER=$USER
fi
# read in custom bash settings if you want
#if [ -f ~/jcarr/bashrc/.jcarr ] && ! shopt -oq posix; then
# . ~/jcarr/bashrc/.jcarr
#fi
# read in custom bash settings if you want
case "$WIT_USER" in
jcarr2)
. ~/jcarr/bashrc/.jcarr
;;
*)
if [ -f ~/$WIT_USER/bashrc/.$WIT_USER ] && ! shopt -oq posix; then
. ~/$WIT_USER/bashrc/.$WIT_USER
fi
;;
esac