Skip to content

Commit b3996a8

Browse files
authored
remove mention of build-string from coloring_and_theming.md (#1800)
1 parent b0cfd2c commit b3996a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

book/coloring_and_theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ The Nushell prompt is configurable through these environment variables and confi
425425
Example: For a simple prompt one could do this. Note that `PROMPT_COMMAND` requires a `block` whereas the others require a `string`.
426426

427427
```nu
428-
$env.PROMPT_COMMAND = { build-string (date now | format date '%m/%d/%Y %I:%M:%S%.3f') ': ' (pwd | path basename) }
428+
$env.PROMPT_COMMAND = { $"(date now | format date '%m/%d/%Y %I:%M:%S%.3f'): (pwd | path basename)" }
429429
```
430430

431431
If you don't like the default `PROMPT_INDICATOR` you could change it like this.

de/book/coloring_and_theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Der Nushell Prompt ist konfigurierbar mit diesen Umgebungsvariablen:
375375
Beispiel: Für einen einfachen Prompt wäre folgendes mögllich. Hinweis `PROMPT_COMMAND` benötigt einen `block` wogegen die anderen einen `string` erwarten.
376376

377377
```nu
378-
$env.PROMPT_COMMAND = { build-string (date now | format date '%m/%d/%Y %I:%M:%S%.3f') ': ' (pwd | path basename) }
378+
$env.PROMPT_COMMAND = { $"(date now | format date '%m/%d/%Y %I:%M:%S%.3f'): (pwd | path basename)" }
379379
```
380380

381381
Soll der standard `PROMPT_INDICATOR` geändert werden, sieht das so aus.

zh-CN/book/coloring_and_theming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ Nushell 的提示符可以通过这些环境变量进行配置:
371371
例如:对于一个简单的提示,我们可以这样做。注意`PROMPT_COMMAND`需要一个`block`而其他的需要一个`string`
372372

373373
```nu
374-
$env.PROMPT_COMMAND = { build-string (date now | format date '%m/%d/%Y %I:%M:%S%.3f') ': ' (pwd | path basename) }
374+
$env.PROMPT_COMMAND = { $"(date now | format date '%m/%d/%Y %I:%M:%S%.3f'): (pwd | path basename)" }
375375
```
376376

377377
如果你不喜欢默认的`PROMPT_INDICATOR`,你可以这样改变它:

0 commit comments

Comments
 (0)