Load zlocal before anything else

This commit is contained in:
Sami Samhuri 2022-09-24 11:35:49 -07:00
parent 15e002ff2d
commit c90315d594
No known key found for this signature in database
GPG key ID: 4B4195422742FC16

12
zshrc
View file

@ -11,6 +11,12 @@ function command_exists() { which "$1" >/dev/null 2>/dev/null }
# (tests if stdout is a tty)
function is_interactive() { [ -t 1 ] }
[[ -d "$HOME/config/zsh" ]] && ZDOTDIR="$HOME/config/zsh"
if [[ -r "$ZDOTDIR/zlocal" ]]; then
source "$ZDOTDIR/zlocal"
fi
### Various environments
# =======================
# Do this before setting up PATH so ~/bin and similar still have the highest precedence.
@ -52,8 +58,6 @@ typeset -U path
# remove / from word chars
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
[[ -d "$HOME/config/zsh" ]] && ZDOTDIR="$HOME/config/zsh"
fpath=($fpath $ZDOTDIR/functions $ZDOTDIR/completions)
typeset -U fpath
@ -97,10 +101,6 @@ if mac; then
}
fi
if [[ -r "$ZDOTDIR/zlocal" ]]; then
source "$ZDOTDIR/zlocal"
fi
if [[ -d ~/Library/Mobile\ Documents/com\~apple\~CloudDocs ]]; then
export icloud=~/Library/Mobile\ Documents/com\~apple\~CloudDocs
fi