diff --git a/zshrc b/zshrc index 04defc8..875d607 100644 --- a/zshrc +++ b/zshrc @@ -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