source functions first to get add-to-path
This commit is contained in:
parent
af44bcd6d3
commit
3b824c693e
1 changed files with 2 additions and 5 deletions
|
@ -1,9 +1,6 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
|
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
#Get dotfiles directory
|
|
||||||
|
|
||||||
if [ -d "$HOME/.dotfiles" ]; then
|
if [ -d "$HOME/.dotfiles" ]; then
|
||||||
DOTFILES_DIR="$HOME/.dotfiles"
|
DOTFILES_DIR="$HOME/.dotfiles"
|
||||||
else
|
else
|
||||||
|
@ -12,10 +9,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make utilities available
|
# Make utilities available
|
||||||
|
|
||||||
PATH="$DOTFILES_DIR/bin:$PATH"
|
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"
|
[ -f "$DOTFILE" ] && . "$DOTFILE"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue