diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 901faa7..0799dca 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -62,3 +62,12 @@ fi # Load any local settings if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi + +function start_esp { + if [ ! -d ${HOME}/tools/esp ] ; then + echo "ESP not installed!" >/dev/stderr + return 1 + fi + export PATH="${PATH}:${HOME}/tools/esp/xtensa-esp32-elf/bin" + export IDF_PATH="${HOME}/tools/esp/esp-idf" +}