-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
52 lines (36 loc) · 1.01 KB
/
.bash_profile
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
# .bash_profile
if [[ "$HPC_SYSTEM" =~ ^(marconi|galileo|m100)$ || "$HOSTNAME" =~ ^(menrva1)$ ]]; then
module load git
else
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
galledanza_dir=`dirname "${BASH_SOURCE[0]}"`
export galledanza_dir
# set PATH so it includes galledanza's private bin
if [ -d $galledanza_dir/bin ] ; then
PATH=$galledanza_dir/bin:"${PATH}"
fi
export PATH
if [ -f $galledanza_dir/.config ]; then
. $galledanza_dir/.config
fi
if [ -z ${HPC_SYSTEM+x} ] ; then
PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\W\[\033[m\]\$ "
else
PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]$HPC_SYSTEM:\[\033[33;1m\]\W\[\033[m\]\$ "
fi
export PS1
LSCOLORS="di=1;36;40:ln=1;31;40:so=32:pi=33:ex=35;40:bd=37;40:cd=37;42:su=35;47:sg=35;47:tw=1;36;44:ow=1;36;44"
export LSCOLORS
VISUAL=vim
export VISUAL
EDITOR="$VISUAL"
export EDITOR
## enable programmable completion features
#
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi