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

7
zshrc
View File

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