zshrc: improve error handling

This commit is contained in:
Rob Watson 2021-04-08 20:17:57 +02:00
parent 2ebe2274e9
commit ba8db67539
1 changed files with 9 additions and 2 deletions

11
zshrc
View File

@ -122,7 +122,14 @@ export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/script:$PATH
. $ZDOTDIR/.zshrc.local
# source local zshrc, if it exists (not: not in git)
if [ -f $ZDOTDIR/.zshrc.local ]; then
. $ZDOTDIR/.zshrc.local
fi
# set up asdf
. $HOME/.asdf/asdf.sh
if [ -f $HOME/.asdf/asdf.sh ]; then
. $HOME/.asdf/asdf.sh
else
echo "Warning: asdf not found, skipping"
fi