-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
136 lines (110 loc) · 3.67 KB
/
bashrc
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi
if [ "$PS1" ]; then
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
if [ -z "$loginsh" ]; then # We're not a login shell
# Not all scripts in profile.d are compatible with other shells
# TODO: make the scripts compatible or check the running shell by
# themselves.
if [ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ]; then
for i in /etc/profile.d/*.sh; do
if [ -x $i ]; then
. $i
fi
done
fi
fi
fi
unset loginsh
if [[ -z "$Environ_Sourced" && -f /etc/profile ]]
then
source /etc/profile
fi
[ -n "$BASH_PATHS" ] || . $HOME/.bash_paths
LD_LIBRARY_EXTRA="/usr/site/lib:"$HOME/$arch_path/lib:/usr/local/lib
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_EXTRA
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LD_LIBRARY_EXTRA
fi
if [ "$PS1" ]; then
# enable color support of ls and also add handy aliases
eval `dircolors -b`
alias ls='ls --color=auto'
alias a2ps='a2ps -s1 --medium=Letter -o -'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias mkdir='mkdir -p'
alias edit='emacs -nw'
alias ipyn='ipython notebook --pylab=inline'
alias matlab='/usr/local/MATLAB/R2013b/bin/matlab'
alias addroot="su root -c 'stty -echo; /usr/bin/ssh-add -c -t 12h /root/.ssh/id_rsa; stty echo'"
PS1="[\\d \\t \\u@\\h:\\w]$ "
PS1="\[\e[1;32m\]${PS1}\[\e[m\]"
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
fi
export ARCH=`uname -m`
export KERNEL=`uname -r`
unset MATPLOTLIBDATA
export FIPYROOT=svn+ssh://svn@code.matforge.org/fipy
unset mail
export CDPATH='.:~:~/git:~/hg'
if [ `uname -n` == luggage ]; then
alias mpirun='/opt/mpich/ch-p4/bin/mpirun'
fi
source /etc/bash_completion
if [[ -e /usr/local/lib/python2.5/site-packages/virtualenvwrapper-2.2-py2.5.egg ]]
then
export VIRTUALENVWRAPPER=/usr/local/lib/python2.5/site-packages/virtualenvwrapper-2.2-py2.5.egg
elif [[ -e /usr/local/stow/pycuda-0.93-libs/lib/python2.5/site-packages/virtualenvwrapper-2.2.1-py2.5.egg ]]
then
export VIRTUALENVWRAPPER=/usr/local/stow/pycuda-0.93-libs/lib/python2.5/site-packages/virtualenvwrapper-2.2.1-py2.5.egg
elif [[ -e /usr/local/lib/python2.5/site-packages/virtualenvwrapper-2.2.2-py2.5.egg ]]
then
export VIRTUALENVWRAPPER=/usr/local/lib/python2.5/site-packages/virtualenvwrapper-2.2.2-py2.5.egg
elif [[ -e /usr/lib/python2.5/site-packages/virtualenvwrapper-2.6.1-py2.5.egg ]]
then
export VIRTUALENVWRAPPER=/usr/lib/python2.5/site-packages/virtualenvwrapper-2.6.1-py2.5.egg
else
export VIRTUALENVWRAPPER=.
fi
export PYTHONPATH=${VIRTUALENVWRAPPER}
if [[ -f /usr/local/bin/virtualenvwrapper.sh ]]
then
source /usr/local/bin/virtualenvwrapper.sh
elif [[ -f /usr/bin/virtualenvwrapper.sh ]]
then
source /usr/bin/virtualenvwrapper.sh
fi
unset PYTHONPATH
export ARCH=`uname -m`
export FIPYBASE=${HOME}/Documents/python/fipy
export FIPYTRUNK=${FIPYBASE}/trunk
export SVN_EDITOR='emacs -nw'
export EDITOR=emacs
export PATH=${HOME}/.cabal/bin:${PATH}
source ~/.git-completion.bash
export PATH="${HOME}/anaconda/envs/_build/bin:${HOME}/anaconda/bin:$PATH"
#export ANACONDA="${HOME}/anaconda"