-
Notifications
You must be signed in to change notification settings - Fork 2
/
.path
55 lines (43 loc) · 1.65 KB
/
.path
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
#!/usr/bin/env zsh
export GOROOT="hello"
# go root
if $(command -v asdf >/dev/null)
then
export GOROOT=`asdf which go | sed 's:/bin/go::g'`
export PATH="${GOROOT}/bin:${PATH}"
fi
# go path
if [ -d ${HOME}/Development/go-workspace ]
then
export GOPATH="${HOME}/Development/go-workspace"
export PATH="${GOPATH}/bin:${PATH}"
fi
# update path
export PATH=/usr/local/bin:${PATH}:/sbin:/usr/local/sbin
# add gnubin for mac
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:${PATH}"
# add gnu getopt
export PATH="/usr/local/opt/gnu-getopt/bin:${PATH}"
# update cdpath
export CDPATH=${CDPATH}:${GOPATH}/src/github.com:${GOPATH}/src/golang.org:${GOPATH}/src
# gtar
export GTAR="/usr/local/opt/gnu-tar/libexec/gnubin"
export PATH="${GTAR}:${PATH}"
# java
export JAVA_HOME="$(/usr/libexec/java_home)"
export PATH="${JAVA_HOME}/bin:${PATH}"
# maven
export MVN_HOME="/usr/local/bin/mvn"
export PATH="${MVN_HOME}/bin:${PATH}"
# krew
[ -d ${HOME}/.krew ] && export PATH="${HOME}/.krew/bin:${PATH}"
# update path for gnu coreutils, make & find on darwin
export PATH=/usr/local/opt/coreutils/libexec/gnubin:${PATH}
export MANPATH=/usr/local/opt/coreutils/libexec/gnuman:${MANPATH}
export PATH=/usr/local/opt/make/libexec/gnubin:${PATH}
export MANPATH=/usr/local/opt/make/libexec/gnuman:${MANPATH}
export PATH=/usr/local/opt/findutils/libexec/gnubin:${PATH}
export MANPATH=/usr/local/opt/findutils/libexec/gnuman:${MANPATH}
export CLOUDSDK_PYTHON="$(brew --prefix)/opt/python@3.8/libexec/bin/python"
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"