-
Notifications
You must be signed in to change notification settings - Fork 4
/
dot_zprofile
19 lines (17 loc) · 797 Bytes
/
dot_zprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# check if $HOME/homebrew exists, if it does then export environment
if [ -d "$HOME/homebrew" ]; then
eval "$($HOME/homebrew/bin/brew shellenv)"
else
if [[ $OSTYPE == 'darwin'* ]]; then
test -d /opt/homebrew && eval "$(/opt/homebrew/bin/brew shellenv)"
test -f /usr/local/bin/brew && eval "$(/usr/local/bin/brew shellenv)"
else
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi
fi
# add python symlinks
export PATH=$HOME/sw/bin:$HOME/go/bin:$HOME/.cargo/bin:$(brew --prefix)/opt/python/libexec/bin:$HOME/.local/bin:$PATH:$HOME/.docker/bin:$HOME/.orbstack/bin
export JDK_HOME=$HOMEBREW_PREFIX/opt/openjdk@17
export JAVA_HOME=$HOMEBREW_PREFIX/opt/openjdk@17
# export a variable marking zprofile as sourced
export ZPROFILE_SOURCED=1