-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
97 lines (81 loc) · 2.2 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
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
# common
source ~/.bashrc
export HISTSIZE=""
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
export MAVEN_OPTS="-Xmx1G -XX:PermSize=512M"
export PYTHON3_VENV=~/python3_venv
# set up python venv if it exists - do this BEFORE setting PATH
HOST=`hostname`
if [[ $HOST == gpu* ]]
then
if [ -d ~/gpu_venv ]
then
source ~/gpu_venv/bin/activate
fi
else
if [ -d ~/python3_venv ]
then
source ~/python3_venv/bin/activate
elif [ -d ~/python_venv ]
then
source ~/python_venv/bin/activate
fi
fi
export PATH=.:/usr/local/bin:~/mikebin:~/bin:~/.cargo/bin:~/bin:$PATH
# work only
HOST=`hostname`
if [[ "$HOST" == "msmoot02-mbp.local" || "$HOST" == *synthgeno.global ]]
then
if [ -d /tools/R-3.2.3 ]
then
export R_HOME=/tools/R-3.2.3
export PATH=$R_HOME/bin:$PATH
fi
if [ -d /tools/dockerized_tools ]
then
export PATH=/tools/dockerized_tools/bin:$PATH
elif [ -d ~/code/dockerized_tools ]
then
export PATH=~/code/dockerized_tools/bin:$PATH
fi
#export PYTHONPATH=~/code
export RUST_BACKTRACE=1
if [ -d ~/go_work ]
then
export GOPATH=~/go_work
export PATH=$GOPATH/bin:$PATH
fi
fi
#
#if [ -x `which ssh-agent` ]
#then
# SSH_AGENT_STATE="/tmp/.ssh-agent-state.$USER"
# export SSH_AGENT_STATE
#
# if [ -f $SSH_AGENT_STATE ]
# then
# . "$SSH_AGENT_STATE"
# fi
#
# if [ -z $SSH_AUTH_SOCK ]
# then
# ssh-agent -s | grep -v '^echo ' > "$SSH_AGENT_STATE"
# . "$SSH_AGENT_STATE"
# else
# if [ ! -S "$SSH_AUTH_SOCK" ]
# then
# ( kill -9 $SSH_AGENT_PID )
# unset SSH_AUTH_SOCK
# unset SSH_AGENT_PID
# ( kill -0 $SSH_AGENT_PID )
# /bin/rm -f "$SSH_AGENT_STATE"
# unset SSH_AGENT_PID
# unset SSH_AUTH_SOCK
# fi
# fi
#fi
#
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/mes/software/google-cloud-sdk/path.bash.inc' ]; then source '/Users/mes/software/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/mes/software/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/mes/software/google-cloud-sdk/completion.bash.inc'; fi