mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Add quotes to PATH declarations
This is necessary in case someone has a space in their PATH variable (which is within the realm of possibility) Merges https://github.com/espressif/esp-idf/pull/800
This commit is contained in:
parent
eb8bd937c6
commit
f77020ee5f
@ -46,11 +46,11 @@ ESP32 toolchain for Linux is available for download from Espressif website:
|
|||||||
|
|
||||||
To use it, you will need to update your ``PATH`` environment variable in ``~/.profile`` file. To make ``xtensa-esp32-elf`` available for all terminal sessions, add the following line to your ``~/.profile`` file::
|
To use it, you will need to update your ``PATH`` environment variable in ``~/.profile`` file. To make ``xtensa-esp32-elf`` available for all terminal sessions, add the following line to your ``~/.profile`` file::
|
||||||
|
|
||||||
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
|
export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"
|
||||||
|
|
||||||
Alternatively, you may create an alias for the above command. This way you can get the toolchain only when you need it. To do this, add different line to your ``~/.profile`` file::
|
Alternatively, you may create an alias for the above command. This way you can get the toolchain only when you need it. To do this, add different line to your ``~/.profile`` file::
|
||||||
|
|
||||||
alias get_esp32="export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin"
|
alias get_esp32='export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"'
|
||||||
|
|
||||||
Then when you need the toolchain you can type ``get_esp32`` on the command line and the toolchain will be added to your ``PATH``.
|
Then when you need the toolchain you can type ``get_esp32`` on the command line and the toolchain will be added to your ``PATH``.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user