-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
60 lines (44 loc) · 1.19 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
## set default editor
export EDITOR=vim
## rbenv
if [ -d "$HOME/.rbenv" ]; then
export PATH="$HOME/.rbenv/bin:$PATH"
fi
if type "rbenv" >/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
## nvm
export NVM_DIR="$HOME/.nvm"
if type brew >/dev/null 2>&1 ; then
nvm_sh="$(brew --prefix nvm)/nvm.sh"
else
nvm_sh="${HOME}/.nvm/nvm.sh"
fi
[[ -f "${nvm_sh}" ]] && source "${nvm_sh}"
## golang
if [ -d "$HOME/local/opt/go" ]; then
export PATH="$HOME/local/opt/go/bin:$PATH"
fi
if type "go" >/dev/null 2>&1; then
export GOPATH="$HOME/local"
fi
## local packages
# installed by hgq, go get, etc.
if [ -d "$GOPATH/bin" ]; then
export PATH="$GOPATH/bin:$PATH"
fi
## aliases
if [ -f "$HOME/.bash_aliases" ]; then
source "$HOME/.bash_aliases"
fi
# Add vim path
if [ "`uname`" == "Darwin" ]; then
export PATH="/Applications/MacVim.app/Contents/MacOS:$PATH"
fi
# OPAM configuration
if [ -f "$HOME/.opam/opam-init/init.sh" ]; then
. $HOME/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
fi
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"