-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
62 lines (51 loc) · 1.36 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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Stolen from /etc/profile
# Need to redefine pathmunge, it gets undefined at the end of /etc/bashrc
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
export EDITOR=vim
export COLORTERM=truecolor
# Golang
export GOROOT=/usr/lib/go
export GOPATH=$HOME/.go
# Python virtualenv
export WORKON_HOME=$HOME/.conda/envs
# JAVA_HOME
export JAVA_HOME=${JAVA_HOME:=/usr/lib64/jvm/default}
# Additional PATH
pathmunge $HOME/.go/bin after
pathmunge $HOME/.conda/envs/daily/bin after
pathmunge $HOME/.cargo/bin after
pathmunge /usr/share/bcc/tools after
pathmunge /usr/share/bcc/introspection after
export PATH=$PATH
# riggrep
export RIPGREP_CONFIG_PATH=~/.config/ripgrep/ripgreprc
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/miniconda3/etc/profile.d/conda.sh" ]; then
. "/opt/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/opt/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<