]> granicus.if.org Git - esp-idf/blob - add_path.sh
Merge branch 'bugfix/btdm_gatt' into 'master'
[esp-idf] / add_path.sh
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 #
9 if [ -z ${IDF_PATH} ]; then
10         echo "IDF_PATH must be set before including this script."
11 else
12         IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/esptool:${IDF_PATH}/components/espcoredump:${IDF_PATH}/components/partition_table/"
13         export PATH="${PATH}:${IDF_ADD_PATHS_EXTRAS}"
14         echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}"
15 fi
16
17