Skip to content

Commit b5f12a4

Browse files
committed
fix errors in en book
1 parent 767baa8 commit b5f12a4

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

book/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Nushell uses a configuration system that loads and runs two Nushell script files at launch time:
66

77
- `env.nu` is used to define environment variables or write files before `config.nu` starts. For example [`$env.NU_LIB_DIRS`](/book/modules.md#dumping-files-into-directory) controls where Nu finds imports. Third party scripts, like prompts or [mise](https://mise.jdx.dev/getting-started.html#nushell), must already be saved to disk before `config.nu` can read them.
8-
- `config.nu` is used to add definitions, aliases, and more to the global namespace. It can also use the environment variables and constants defined in `env.nu`. If you can't decide which file to add stuff, prefer `config.nu`.
8+
- `config.nu` is used to add definitions, aliases, and more to the global namespace. It can also use the environment variables and constants defined in `env.nu`. If you can't decide which file to add stuff to, prefer `config.nu`.
99

1010
Check where Nushell is reading these config files from by calling `$nu.env-path` and `$nu.config-path`.
1111

book/nu_as_a_shell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ An interesting feature of Nushell is the [Directory Stack](directory_stack.md) w
1919
Nushell also has its own line editor [Reedline](line_editor.md).
2020
With Nushell's config, it is possible to configure some of the Reedline's features, such as the prompt, keybindings, history, or menus.
2121

22-
It is also possible to define [custom signatures for external commands](externs.md) which lets you define [custom completions](custom_completions.md) for them (the custom completions work also for Nushell custom commands).
22+
It is also possible to define [custom signatures for external commands](externs.md) which lets you define [custom completions](custom_completions.md) for them (the custom completions also work for Nushell custom commands).
2323

2424
[Coloring and Theming in Nu](coloring_and_theming.md) goes into more detail about how to configure Nushell's appearance.
2525

26-
If you want to schedule some commands to run in the background, [Background task in Nu](background_task.md) provide a simple guideline for you to follow.
26+
If you want to schedule some commands to run in the background, [Background task in Nu](background_task.md) provides simple guidelines for you to follow.
2727

28-
And finally, [hooks](hooks.md) allow you to insert fragments of Nushell code to run at certain events.
28+
Finally, [hooks](hooks.md) allow you to insert fragments of Nushell code to run at certain events.

book/pipelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ drwxr-xr-x@ 4 pengs admin 128 14 Nov 13:42 en
453453
(Actually, for this simple usage you can just use [`find`](/commands/docs/find.md))
454454

455455
```nu
456-
> ls /usr/share/nvim/runtime/ | get name | find tutor | ^ls -al $in
456+
> ls /usr/share/nvim/runtime/ | get name | find tutor | ansi strip | ^ls -al ...$in
457457
```
458458

459459
## Command Output in Nushell

book/working_with_strings.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,6 @@ You can color strings with the [`ansi`](/commands/docs/ansi.md) command. For exa
437437
```
438438

439439
`ansi purple_bold` makes the text a bold purple
440-
`ansi reset` resets the coloring to the default. (Tip: You should always end colored strings with `ansi reset`)
440+
`ansi reset` resets the coloring to the default.
441+
442+
_Tip: You should always end colored strings with `ansi reset`_

lang-guide/chapters/types/basic_types/range.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
╰───┴───╯
116116
```
117117

118-
1. Conversion - A ranges may be converted to a `list` using:
118+
1. Conversion - A range may be converted to a `list` using:
119119

120120
```nu
121121
1..5 | each {||}

0 commit comments

Comments
 (0)