-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshenv
More file actions
22 lines (19 loc) · 771 Bytes
/
Copy path.zshenv
File metadata and controls
22 lines (19 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
export GOPATH=$HOME/Projects
function _build_path() {
local LOCAL_PATHS='/usr/local/sbin:/usr/local/bin'
local SBIN_PATHS='/usr/sbin:/sbin'
local BIN_PATHS='/usr/bin:/bin'
local ALL_BIN_PATHS="$SBIN_PATHS:$BIN_PATHS"
local BREW_PATHS='/opt/brew/bin:/opt/brew/sbin'
local GO_PATHS="$GOPATH/bin"
PATH="$HOME/.bin:$BREW_PATHS:$LOCAL_PATHS:$GPG_PATH:$ALL_BIN_PATHS:$GO_PATHS"
export PATH
}
_build_path
# From prezto: https://github.com/sorin-ionescu/prezto/blob/master/runcoms/zshenv
# Ensure that a non-login, non-interactive shell has a defined environment.
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi