-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
54 lines (46 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
52
53
54
# Bash {{{
if type vim &>/dev/null; then
export EDITOR=vim
fi
#}}}
# XDG Base Directory Specification {{{
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
#}}}
# Go {{{
if type go &>/dev/null; then
export GOPATH="$XDG_DATA_HOME/go"
export PATH="$GOPATH/bin:$PATH"
fi
#}}}
# Java {{{
if [[ -f /usr/libexec/java_home ]]; then
JAVA_HOME="$(/usr/libexec/java_home)"
export JAVA_HOME
fi
#}}}
# ghq {{{
if type ghq &>/dev/null; then
export GHQ_ROOT="$XDG_DATA_HOME/ghq"
fi
#}}}
# Homebrew {{{
if type brew &>/dev/null; then
# Homebrew Options {{{
# shellcheck source=/dev/null
test -f "$HOME/.homebrew_github_api_token" && . "$_"
export HOMEBREW_NO_ANALYTICS=1
#}}}
# mono {{{
if [[ "$(brew --prefix mono)" ]]; then
export MONO_GAC_PREFIX
MONO_GAC_PREFIX="$(brew --prefix)"
fi
#}}}
fi
#}}}
# shellcheck source=/dev/null
test -f "$HOME/.bash_profile.local" && . "$_"
# shellcheck source=/dev/null
test -f "$HOME/.bashrc" && . "$_"