-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
33 lines (26 loc) · 900 Bytes
/
.zshenv
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
# .zshenv is always sourced. It often contains exported variables that should be available to other programs.
# For example, $PATH, $EDITOR, and $PAGER are often set in .zshenv.
# Also, you can set $ZDOTDIR in .zshenv to specify an alternative location for the rest of your zsh configuration.
# Sourced first
# Before .zprofile .zshrc .zlogin
# Other path sources:
# /etc/paths
# /etc/paths.d
#echo Sourcing .zshenv
# define addpath() here since this is the first sourced file
addpath() {
DIR=$1
if [[ ":$PATH:" != *":$DIR:"* ]]; then
export PATH="$DIR:$PATH"
fi
}
if [[ $(uname -m) == 'arm64' ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
addpath "/opt/bin"
if [ -d /opt/homebrew/opt/mysql-client/bin ]; then
addpath "/opt/homebrew/opt/mysql-client/bin"
fi
fi
SHELL_SESSIONS_DISABLE=1
# Load UHG specific settings (if file exists)
. ~/.zshenv-uhg 2> /dev/null