From 3b385fdf195e567e7fd2f8f8ceb602a29e985409 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Tue, 14 May 2019 14:45:13 +0200 Subject: [PATCH] Make dirfile loading less errorprone --- zshenv | 3 --- zshrc | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/zshenv b/zshenv index d92b5a4..0bd6471 100755 --- a/zshenv +++ b/zshenv @@ -4,6 +4,3 @@ for i in $ZDOTDIR/env/*.zsh; do . $i done -if [[ -e $ZDOTDIR/dirs ]]; then - source $ZDOTDIR/dirs -fi diff --git a/zshrc b/zshrc index ac7f574..071875d 100644 --- a/zshrc +++ b/zshrc @@ -25,6 +25,11 @@ zdotfile() { fi } +local dirfile=$(zdotfile dirs) +if [[ -e $dirfile ]]; then + source $dirfile +fi + . $(zdotfile completion.zsh) source $(zdotfile zplug.zsh)