source functions first to get add-to-path

This commit is contained in:
Daylin Morgan 2022-12-06 12:04:06 -06:00
parent af44bcd6d3
commit 3b824c693e
1 changed files with 2 additions and 5 deletions

View File

@ -1,9 +1,6 @@
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
#Get dotfiles directory
if [ -d "$HOME/.dotfiles" ]; then
DOTFILES_DIR="$HOME/.dotfiles"
else
@ -12,10 +9,10 @@ else
fi
# Make utilities available
PATH="$DOTFILES_DIR/bin:$PATH"
. $DOTFILES_DIR/lib/function.zsh
for DOTFILE in "$DOTFILES_DIR"/lib/{path,env,prompt,alias,function,conda,custom}.zsh; do
for DOTFILE in "$DOTFILES_DIR"/lib/{path,env,prompt,alias,conda,custom}.zsh; do
[ -f "$DOTFILE" ] && . "$DOTFILE"
done