check for existence of z.lua

This commit is contained in:
Ray Elliott 2020-10-19 20:21:05 +01:00
commit 738ba86273

View file

@ -29,7 +29,9 @@ export AUTOENV_ENABLE_LEAVE=1
[ -f "$HOME/.src/autoenv/activate.sh" ] && . "$HOME/.src/autoenv/activate.sh"
# z.sh
eval "$(lua $HOME/.z.lua/z.lua --init zsh enhanced once)"
if [ -f "$HOME/.z.lua/z.lua" ] ; then
eval "$(lua $HOME/.z.lua/z.lua --init zsh enhanced once)"
fi
# custom aliases
[ -f "$HOME/.config/profile/aliases.sh" ] && . "$HOME/.config/profile/aliases.sh"