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)