1# This shell snippet appends useful esp-idf tools to your PATH environment 2# variable. This means you can run esp-idf tools without needing to give the 3# full path. 4# 5# Use this script like this: 6# 7# . ${IDF_PATH}/add_path.sh 8# 9if [ -z ${IDF_PATH} ]; then 10 echo "IDF_PATH must be set before including this script." 11else 12 IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/esptool" 13 IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/espcoredump" 14 IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/components/partition_table/" 15 IDF_ADD_PATHS_EXTRAS="${IDF_ADD_PATHS_EXTRAS}:${IDF_PATH}/tools/" 16 export PATH="${IDF_ADD_PATHS_EXTRAS}:${PATH}" 17 echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}" 18fi 19