Skip to content

Commit 575f3d9

Browse files
authored
Fix broken links in configuration.md, environment.md and explore.md (#1852)
* Fix broken links in zh-CN configuration.md * Fix broken link in environment.md and explore.md
1 parent 7d8397b commit 575f3d9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

book/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ $env.FOO = 'BAR'
174174
## Environment Variable Conversions
175175

176176
You can set the `ENV_CONVERSIONS` environment variable to convert other environment variables between a string and a value.
177-
For example, the [default environment config](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/sample_config/default_env.nu) includes conversion of PATH (and Path used on Windows) environment variables from a string to a list.
177+
For example, the [default environment config](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/default_files/default_env.nu) includes conversion of PATH (and Path used on Windows) environment variables from a string to a list.
178178
After both `env.nu` and `config.nu` are loaded, any existing environment variable specified inside `ENV_CONVERSIONS` will be translated according to its `from_string` field into a value of any type.
179179
External tools require environment variables to be strings, therefore, any non-string environment variable needs to be converted first.
180180
The conversion of value -> string is set by the `to_string` field of `ENV_CONVERSIONS` and is done every time an external command is run.

book/explore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To find out the comprehensive list of commands you can type `:help`.
4040
## Config
4141

4242
You can configure many things (including styles and colors), via config.
43-
You can find an example configuration in [`default-config.nu`](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/sample_config/default_config.nu).
43+
You can find an example configuration in [`default-config.nu`](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/default_files/default_config.nu).
4444

4545
## Examples
4646

de/book/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ $env.FOO
142142
## Umgebungsvariablen konvertieren
143143

144144
Mit `ENV_CONVERSIONS` kann eine Umgebungsvariable von einem string zu einem Wert konvertiert werden.
145-
Zum Beispiel beinhaltet die [default environment config](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/sample_config/default_env.nu)
145+
Zum Beispiel beinhaltet die [default environment config](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/default_files/default_env.nu)
146146
bereits eine Konvertierung der PATH Umgebungsvariablen (sowie der Path Variablen in Windows) von einem String in eine List.
147147

148148
Nachdem beide `env.nu` und `config.nu` geladen wurden, wird jede existierende Umgebungsvariable, die mit `ENV_CONVERSIONS` definiert ist,

zh-CN/book/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Nushell 使用一个配置系统,在启动时加载并运行两个 Nushell 脚
1010

1111
_(你可以把 Nushell 的配置加载顺序想象成在启动时执行两行 [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop)`source /path/to/env.nu``source /path/to/config.nu`。因此,用`env.nu`表示环境,用`config.nu`表示其他配置只是一个约定。)_
1212

13-
当你在没有设置这些文件的情况下启动 Nushell,Nushell 会提示你下载[`default env.nu`](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/sample_config/default_env.nu)[`default config.nu`](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/sample_config/default_config.nu)
13+
当你在没有设置这些文件的情况下启动 Nushell,Nushell 会提示你下载[`default env.nu`](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/default_files/default_env.nu)[`default config.nu`](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/default_files/default_config.nu)
1414
你可以通过浏览这些默认文件,了解环境变量的默认值和所有可配置项的列表。
1515

1616
### 配置 `$env.config`

zh-CN/book/environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ $env.FOO
143143
## 环境变量转换
144144

145145
你可以通过设置`ENV_CONVERSIONS`环境变量,来在字符串和值之间转换其他环境变量。
146-
例如,[默认环境配置](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/sample_config/default_env.nu)包括将`PATH`(和 Windows 上使用的`Path`)环境变量从一个字符串转换为一个列表。
146+
例如,[默认环境配置](https://github.com/nushell/nushell/blob/main/crates/nu-utils/src/default_files/default_env.nu)包括将`PATH`(和 Windows 上使用的`Path`)环境变量从一个字符串转换为一个列表。
147147
`env.nu``config.nu` 配置文件加载后,任何在`ENV_CONVERSIONS`内指定的现有环境变量将根据其`from_string`字段被转换为任何类型的值。
148148
外部工具要求环境变量是字符串,因此,任何非字符串的环境变量需要先进行转换:
149149
值->字符串的转换由`ENV_CONVERSIONS``to_string`字段设置,每次运行外部命令时都会进行转换。

0 commit comments

Comments
 (0)