Make dirfile loading less errorprone
This commit is contained in:
parent
b96ee9511f
commit
3b385fdf19
2 changed files with 5 additions and 3 deletions
3
zshenv
3
zshenv
|
@ -4,6 +4,3 @@ for i in $ZDOTDIR/env/*.zsh; do
|
|||
. $i
|
||||
done
|
||||
|
||||
if [[ -e $ZDOTDIR/dirs ]]; then
|
||||
source $ZDOTDIR/dirs
|
||||
fi
|
||||
|
|
5
zshrc
5
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue