-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.path
25 lines (19 loc) · 865 Bytes
/
.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
#!/bin/sh
# Go path
export GOPATH="${HOME}/devel/golang"
# I don't like to install Node modules globally so add local modules to PATH
export PATH=/usr/local/opt/openssl/bin:./node_modules/.bin:~/bin:$GOPATH/bin:~/Library/Python/3.8/bin/:~/Library/Python/3.7/bin/:/usr/local/opt/[email protected]/bin:$PATH
# on Apple Silicon Macs, Homebrew installs everything in /opt/homebre/bin
if [ -d /opt/homebrew/bin ]; then
export PATH=/opt/homebrew/bin:$PATH
fi
# JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home -v 17`
# Update PATH if Google Cloud SDK is installed
if [ -f /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc ]; then
source /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc
fi
# Add krew to path if installed
if [ -d ${HOME}/.krew/bin ]; then
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
fi