From bd9db4e08c3f3309e6fdb442ac49b014d0816ad1 Mon Sep 17 00:00:00 2001 From: renpeiying Date: Wed, 13 Nov 2024 17:39:34 +0800 Subject: [PATCH] docs: Update CN translation for idf-tools.rst --- docs/en/api-guides/tools/idf-tools.rst | 4 ++-- docs/zh_CN/api-guides/tools/idf-tools.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/api-guides/tools/idf-tools.rst b/docs/en/api-guides/tools/idf-tools.rst index 17bc6b39c0..354476dea8 100644 --- a/docs/en/api-guides/tools/idf-tools.rst +++ b/docs/en/api-guides/tools/idf-tools.rst @@ -182,9 +182,9 @@ Since the installed tools are not permanently added to the user or system ``PATH .. note:: - To modify the shell environment in Bash, ``export.sh`` must be "sourced" by using the ``. ./export.sh`` command. Please ensure to include the leading dot and space. + To modify the shell environment in Bash, ``export.sh`` must be "sourced" by using the command ``. ./export.sh``. Please ensure to include the leading dot and space. - ``export.sh`` may be used with various shells like Bash, Zsh, sh, dash, etc. When using Bash or Zsh, you can run it from any path (e.g., ``. ./<>/export.sh``) as it automatically detects IDF_PATH. For other shells, it must be run from the ESP-IDF directory (``. ./export.sh``) to locate IDF_PATH correctly. + ``export.sh`` may be used with various shells like Bash, Zsh, sh, dash, etc. When using Bash or Zsh, you can run it from any path (e.g., ``. ./<>/export.sh``) as it automatically detects ``IDF_PATH``. For other shells, it must be run from the ESP-IDF directory (``. ./export.sh``) to locate ``IDF_PATH`` correctly. activate.py ~~~~~~~~~~~ diff --git a/docs/zh_CN/api-guides/tools/idf-tools.rst b/docs/zh_CN/api-guides/tools/idf-tools.rst index f614ccae00..613180a278 100644 --- a/docs/zh_CN/api-guides/tools/idf-tools.rst +++ b/docs/zh_CN/api-guides/tools/idf-tools.rst @@ -184,7 +184,7 @@ ESP-IDF 的根目录中提供了针对不同 shell 的用户安装脚本,包 在 Bash 中修改 shell 环境时,必须使用 ``. ./export.sh`` 命令加载 ``export.sh``,注意添加前面的点和空格。 - ``export.sh`` 可以在除了 Bash 外的其他 shell(如 zsh)中使用。但在这种情况下,必须在运行脚本前设置 ``IDF_PATH`` 环境变量。在 Bash 中使用时,脚本会从当前目录猜测 ``IDF_PATH`` 的值。 + ``export.sh`` 可以在多种 shell 中使用,例如 bash、sh、zsh、dash 等。在使用 bash 或 zsh 时,可以在任何路径中直接运行(例如 ``. ./<>/export.sh``),这是因为它能够自动检测到 ``IDF_PATH``。若使用其它 shell, 则必须在 ESP-IDF 路径中运行 (``. ./export.sh``),才能正确找到 ``IDF_PATH``。 activate.py ~~~~~~~~~~~