diff --git a/home/dot_zshrc b/home/dot_zshrc index d00cf8c..fb43f70 100644 --- a/home/dot_zshrc +++ b/home/dot_zshrc @@ -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