-
Notifications
You must be signed in to change notification settings - Fork 3
/
.profile
121 lines (89 loc) · 2.74 KB
/
.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# set PATH so it includes user's private bin if it exists
# reset path each time this gets sourced
if [[ -r /etc/environment ]]; then
source /etc/environment
fi
if [[ -r ${HOME}/.bash.p4 ]]; then
source ${HOME}/.bash.p4
fi
if [[ -r ${HOME}/.profile.local ]]; then
source ${HOME}/.profile.local
fi
if [[ $(uname -s) -eq "Darwin" ]]; then
PATH="/usr/local/bin:$PATH"
fi
if [[ -d ${HOME}/bin || -L ${HOME}/bin ]] ; then
PATH="${HOME}/bin:${PATH}"
fi
if [[ -d ${HOME}/bin.local || -L ${HOME}/bin.local ]] ; then
PATH="${HOME}/bin.local:${PATH}"
fi
if [[ -d ${HOME}/.local/bin|| -L ${HOME}/.local/bin ]] ; then
PATH="${HOME}/.local/bin:${PATH}"
fi
if [[ -d $HOME/go/bin || -L $HOME/go/bin ]] ; then
PATH="${PATH}:${HOME}/go/bin"
fi
if [[ -d $HOME/projects/go ]]; then
GOPATH="$HOME/projects/go"
export GOPATH
fi
if [[ -d $HOME/projects/go/bin || -L $HOME/projects/go/bin ]] ; then
PATH="${PATH}:${HOME}/projects/go/bin"
fi
if [[ -d $HOME/.local/lib/aws/bin || -L $HOME/.local/lib/aws/bin ]] ; then
PATH="${PATH}:${HOME}/.local/lib/aws/bin"
fi
if [[ -d $HOME/perl5/bin || -L $HOME/perl5/bin ]] ; then
PATH="${PATH}:${HOME}/perl5/bin"
fi
if [[ -d $HOME/node/bin || -L $HOME/node/bin ]] ; then
PATH="${PATH}:${HOME}/node/bin"
fi
if [[ -d $HOME/.yarn/bin || -L $HOME/.yarn/bin ]] ; then
PATH="${PATH}:${HOME}/.yarn/bin"
fi
if [[ -d $HOME/.gem/ruby/2.5.0/bin ]]; then
PATH=${PATH}:$HOME/.gem/ruby/2.5.0/bin
fi
if [[ -d $HOME/neo4j/bin || -L $HOME/neo4j/bin ]] ; then
PATH="${PATH}:${HOME}/neo4j/bin"
fi
ANDROID_HOME="$HOME/android-sdks"
if [[ -e "${ANDROID_HOME}/tools" ]]; then
PATH="$PATH:${ANDROID_HOME}/tools"
fi
if [[ -e "${ANDROID_HOME}/platform-tools" ]]; then
PATH="$PATH:${ANDROID_HOME}/platform-tools"
fi
if [[ -e "$HOME/apache-maven/bin" ]]; then
PATH="$HOME/apache-maven/bin:$PATH"
fi
if [[ -e "$HOME/.chefdk/gem/ruby/2.1.0/bin" ]]; then
PATH="$PATH:$HOME/.chefdk/gem/ruby/2.1.0/bin"
fi
if [[ -e "$HOME/usr/lib/pkg-config" ]]; then
PKG_CONFIG_PATH="$HOME/usr/lib/pkg-config"
fi
if [[ -e "$HOME/usr/lib" ]]; then
LD_LIBRARY_PATH=$HOME/usr/lib
fi
if [[ -e "$HOME/.tfenv/bin" ]]; then
PATH="$PATH:$HOME/.tfenv/bin"
fi
if command -v nvim &> /dev/null; then
export EDITOR=nvim
else
export EDITOR=vim
fi
export ANDROID_HOME PATH PKG_CONFIG_PATH LD_LIBRARY_PATH
eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
if [[ -e "$HOME/.krew/bin" ]]; then
export PATH="$PATH:$HOME/.krew/bin"
fi
# make ls colors a little less garish
export LS_COLORS="ow=41,37"
# added by travis gem
[ -f /home/goraxe/.travis/travis.sh ] && source /home/goraxe/.travis/travis.sh
[ -f "$HOME/.asdf/asdf.sh" ] && source "$HOME/.asdf/asdf.sh"
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"