From 1332d3ba9c13c4089dc86f273fce7e8829620597 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Thu, 24 Jan 2019 20:03:03 +0800 Subject: [PATCH] docs: Correct priorities in the PATH string Fixes https://github.com/espressif/esp-idf/pull/2944 --- docs/en/get-started-cmake/linux-setup.rst | 4 ++-- docs/en/get-started/linux-setup.rst | 4 ++-- docs/zh_CN/get-started-cmake/add-idf_path-to-profile.rst | 4 ++-- docs/zh_CN/get-started-cmake/linux-setup.rst | 4 ++-- docs/zh_CN/get-started/linux-setup.rst | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/en/get-started-cmake/linux-setup.rst b/docs/en/get-started-cmake/linux-setup.rst index bc98abea10..c3f51c0a44 100644 --- a/docs/en/get-started-cmake/linux-setup.rst +++ b/docs/en/get-started-cmake/linux-setup.rst @@ -73,10 +73,10 @@ ESP32 toolchain for Linux is available for download from Espressif website: printenv PATH - You are looking for similar result containing toolchain's path at the end of displayed string:: + You are looking for similar result containing toolchain's path at the beginning of displayed string:: $ printenv PATH - /home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin + /home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin Instead of ``/home/user-name`` there should be a home path specific to your installation. diff --git a/docs/en/get-started/linux-setup.rst b/docs/en/get-started/linux-setup.rst index e418bd224e..564fa63fad 100644 --- a/docs/en/get-started/linux-setup.rst +++ b/docs/en/get-started/linux-setup.rst @@ -71,10 +71,10 @@ ESP32 toolchain for Linux is available for download from Espressif website: printenv PATH - You are looking for similar result containing toolchain's path at the end of displayed string:: + You are looking for similar result containing toolchain's path at the beginning of displayed string:: $ printenv PATH - /home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin + /home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin Instead of ``/home/user-name`` there should be a home path specific to your installation. diff --git a/docs/zh_CN/get-started-cmake/add-idf_path-to-profile.rst b/docs/zh_CN/get-started-cmake/add-idf_path-to-profile.rst index d05399794e..06d563916a 100644 --- a/docs/zh_CN/get-started-cmake/add-idf_path-to-profile.rst +++ b/docs/zh_CN/get-started-cmake/add-idf_path-to-profile.rst @@ -43,7 +43,7 @@ Linux 和 MacOS 操作系统 要设置 ``IDF_PATH``,并在 PATH 中添加 ``idf.py``,请将以下两行代码增加至你的 ``~/.profile`` 文件中:: export IDF_PATH=~/esp/esp-idf - export PATH="$PATH:$IDF_PATH/tools" + export PATH="$IDF_PATH/tools:$PATH" .. note:: @@ -70,6 +70,6 @@ Linux 和 MacOS 操作系统 如果你不想进行有关 ``IDF_PATH`` 或 ``PATH`` 的修改设置,你可以在每次重启或退出后在终端中手动输入:: export IDF_PATH=~/esp/esp-idf - export PATH="$PATH:$IDF_PATH/tools" + export PATH="$IDF_PATH/tools:$PATH" 如果你在安装 ESP32 开发的软件时,从 :ref:`get-started-setup-path-cmake` 小节跳到了这里,请返回 :ref:`get-started-start-project-cmake` 小节开始阅读。 diff --git a/docs/zh_CN/get-started-cmake/linux-setup.rst b/docs/zh_CN/get-started-cmake/linux-setup.rst index fa657c5ba1..0180fb954c 100644 --- a/docs/zh_CN/get-started-cmake/linux-setup.rst +++ b/docs/zh_CN/get-started-cmake/linux-setup.rst @@ -73,10 +73,10 @@ Linux 版的 ESP32 工具链可以从 Espressif 的网站下载: printenv PATH - 检查一下字符串的末尾是否包含类似的工具链的路径:: + 检查字符串的开头是否包含类似的工具链路径:: $ printenv PATH - /home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin + /home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 除了 ``/home/user-name``,应该有具体的安装的主路径。 diff --git a/docs/zh_CN/get-started/linux-setup.rst b/docs/zh_CN/get-started/linux-setup.rst index 06caaa3403..0bd18e0a91 100644 --- a/docs/zh_CN/get-started/linux-setup.rst +++ b/docs/zh_CN/get-started/linux-setup.rst @@ -74,10 +74,10 @@ Linux 版的 ESP32 工具链可以从 Espressif 的网站下载: printenv PATH - 检查一下字符串的末尾是否包含类似的工具链的路径: :: + 检查字符串的开头是否包含类似的工具链路径:: $ printenv PATH - /home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin + /home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 除了 ``/home/user-name``,应该有具体的安装的主路径。 -- 2.40.0