summaryrefslogtreecommitdiff
path: root/bashrc/.wit
blob: 275a7d2dfa771cb8a4914dbcb695e9107bc032fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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