Load zlocal before anything else
This commit is contained in:
parent
15e002ff2d
commit
c90315d594
1 changed files with 6 additions and 6 deletions
12
zshrc
12
zshrc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue