You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/configuration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,13 +134,13 @@ For more about escape and `^` see the [chapter about escapes](escaping.md).
134
134
135
135
## PATH configuration
136
136
137
-
In Nushell, [the PATH environment variable](<https://en.wikipedia.org/wiki/PATH_(variable)>) (Path on Windows) is a list of paths. To append a new path to it, you can use `$env.<var> = <val>` and [`append`](/commands/docs/append.html) in `env.nu`:
137
+
In Nushell, [the PATH environment variable](<https://en.wikipedia.org/wiki/PATH_(variable)>) (Path on Windows) is a list of paths. To append a new path to it, you can use `$env.<var> = <val>` and [`append`](/commands/docs/append.md) in `env.nu`:
This will append `/some/path` to the end of PATH; you can also use [`prepend`](/commands/docs/prepend.html) to add entries to the start of PATH.
143
+
This will append `/some/path` to the end of PATH; you can also use [`prepend`](/commands/docs/prepend.md) to add entries to the start of PATH.
144
144
145
145
Note the `split row (char esep)` step. We need to add it because in `env.nu`, the environment variables inherited from the host process are still strings. The conversion step of environment variables to Nushell values happens after reading the config files (see also the [Environment](environment.html#environment-variable-conversions) section). After that, for example in the Nushell REPL when `PATH`/`Path` is a list , you can use [`append`](/commands/docs/append.md)/[`prepend`](/commands/docs/prepend.md) directly.
Here we've prepended our folder to the existing folders in the Path, so it will have the highest priority.
51
51
If you want to give it the lowest priority instead, you can use the [`append`](/commands/docs/append.md) command.
52
52
53
-
### [`load-env`](/commands/docs/load-env.html)
53
+
### [`load-env`](/commands/docs/load-env.md)
54
54
55
55
If you have more than one environment variable you'd like to set, you can use [`load-env`](/commands/docs/load-env.md) to create a table of name/value pairs and load multiple variables at the same time:
56
56
@@ -99,7 +99,7 @@ true
99
99
100
100
## Changing directory
101
101
102
-
Common task in a shell is to change directory with the [`cd`](/commands/docs/cd.html) command.
102
+
Common task in a shell is to change directory with the [`cd`](/commands/docs/cd.md) command.
103
103
In Nushell, calling [`cd`](/commands/docs/cd.md) is equivalent to setting the `PWD` environment variable.
104
104
Therefore, it follows the same rules as other environment variables (for example, scoping).
105
105
@@ -112,14 +112,14 @@ A common shorthand to set an environment variable once is available, inspired by
112
112
BAR
113
113
```
114
114
115
-
You can also use [`with-env`](/commands/docs/with-env.html) to do the same thing more explicitly:
115
+
You can also use [`with-env`](/commands/docs/with-env.md) to do the same thing more explicitly:
116
116
117
117
```nu
118
118
> with-env { FOO: BAR } { $env.FOO }
119
119
BAR
120
120
```
121
121
122
-
The [`with-env`](/commands/docs/with-env.html) command will temporarily set the environment variable to the value given (here: the variable "FOO" is given the value "BAR"). Once this is done, the [block](types_of_data.html#blocks) will run with this new environment variable set.
122
+
The [`with-env`](/commands/docs/with-env.md) command will temporarily set the environment variable to the value given (here: the variable "FOO" is given the value "BAR"). Once this is done, the [block](types_of_data.md#blocks) will run with this new environment variable set.
123
123
124
124
## Permanent environment variables
125
125
@@ -135,7 +135,7 @@ $env.FOO = 'BAR'
135
135
## Defining environment from custom commands
136
136
137
137
Due to the scoping rules, any environment variables defined inside a custom command will only exist inside the command's scope.
138
-
However, a command defined as [`def-env`](/commands/docs/def-env.html) instead of [`def`](/commands/docs/def.html) (it applies also to [`export def`](/commands/docs/export_def.md), see [Modules](modules.md)) will preserve the environment on the caller's side:
138
+
However, a command defined as [`def-env`](/commands/docs/def-env.md) instead of [`def`](/commands/docs/def.md) (it applies also to [`export def`](/commands/docs/export_def.md), see [Modules](modules.md)) will preserve the environment on the caller's side:
139
139
140
140
```nu
141
141
> def-env foo [] {
@@ -202,7 +202,7 @@ _(Important! The environment conversion string -> value happens **after** the en
202
202
203
203
## Removing environment variables
204
204
205
-
You can remove an environment variable only if it was set in the current scope via [`hide-env`](/commands/docs/hide_env.html):
205
+
You can remove an environment variable only if it was set in the current scope via [`hide-env`](/commands/docs/hide_env.md):
Copy file name to clipboardExpand all lines: book/plugins.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,4 +52,4 @@ Nu's plugin documentation is a work in progress. If you're unsure about somethin
52
52
53
53
## More details
54
54
55
-
The [plugin chapter in the contributor book](/contributor-book/plugins.html) offers more details on the intricacies of how plugins work from a software developer point of view.
55
+
The [plugin chapter in the contributor book](/contributor-book/plugins.md) offers more details on the intricacies of how plugins work from a software developer point of view.
Copy file name to clipboardExpand all lines: de/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ features:
18
18
19
19
### Nu funktioniert mit existierenden Daten
20
20
21
-
Nu versteht [JSON, YAML, XML, Excel und noch mehr](/book/loading_data.html). Es ist einfach Daten in eine Nu Pipeline zu laden ganz egal ob diese in einer Datei, einer Datenbank oder einer Web-API liegen:
21
+
Nu versteht [JSON, YAML, XML, Excel und noch mehr](/book/loading_data.md). Es ist einfach Daten in eine Nu Pipeline zu laden ganz egal ob diese in einer Datei, einer Datenbank oder einer Web-API liegen:
22
22
23
23
<imgsrc="https://www.nushell.sh/frontpage/fetch-example.png"alt="Screenshot zeigt das Laden von Daten von einer Web-API"class="hero"/>
24
24
@@ -30,7 +30,7 @@ Nu arbeitet mit typisierten Daten, wodurch Fehler abgefangen werden, die andere
30
30
31
31
## Nu installieren
32
32
33
-
Nushell ist verfügbar [als kompiliertes Programm](https://github.com/nushell/nushell/releases), [von einem Packetmanager](https://repology.org/project/nushell/versions), und als [Source Code](https://github.com/nushell/nushell). Die detaillierten Installationsanweisungen sind [hier](/de/book/installation.html) zu finden. Oder direkt loslegen:
33
+
Nushell ist verfügbar [als kompiliertes Programm](https://github.com/nushell/nushell/releases), [von einem Packetmanager](https://repology.org/project/nushell/versions), und als [Source Code](https://github.com/nushell/nushell). Die detaillierten Installationsanweisungen sind [hier](/de/book/installation.md) zu finden. Oder direkt loslegen:
Mit `prepend` wird der Ordner an den Anfang von PATH gestellt und hat damit die höchste Priorität.
43
43
Soll der Pfad ans Ende angehängt werden, so wird `append` verwendet.
44
44
45
-
### [`load-env`](/commands/docs/load-env.html)
45
+
### [`load-env`](/commands/docs/load-env.md)
46
46
47
47
Wenn mehrere Umgebungsvariablen gesetzt werden sollen, so kann `load-env` eine ganze Tabelle mitgegeben werden.
48
48
Diese besteht aus name/value Paaren, welche alle auf einmal geladen werden:
@@ -83,7 +83,7 @@ true
83
83
84
84
## Verzeichnis Wechsel
85
85
86
-
Etwas was in einer Shell häufig vorkommt ist das wechseln des Verzeichnisses mit dem [`cd`](/commands/docs/cd.html) Befehl.
86
+
Etwas was in einer Shell häufig vorkommt ist das wechseln des Verzeichnisses mit dem [`cd`](/commands/docs/cd.md) Befehl.
87
87
In der Nushell ist dies identisch mit dem setzen der `PWD` Umgebungsvariablen.
88
88
Dies wiederum folgt den gleichen Regeln wie das setzen anderer Umgebungsvariablen (wie z.B. Gültigkeitsbereich)
89
89
@@ -96,14 +96,14 @@ Eine praktische Möglichkeit eine Umgebungsvariable einmalig zu setzen, ist insp
96
96
BAR
97
97
```
98
98
99
-
Es kann auch [`with-env`](/commands/docs/with-env.html) verwendet werden um expliziter zu sein:
99
+
Es kann auch [`with-env`](/commands/docs/with-env.md) verwendet werden um expliziter zu sein:
100
100
101
101
```
102
102
> with-env { FOO: BAR } { echo $env.FOO }
103
103
BAR
104
104
```
105
105
106
-
Der [`with-env`](/commands/docs/with-env.html) Befehl setzt die Umgebungsvariable temporär (hier wird die Variable "FOO" auf den Wert "BAR" gesetzt)
106
+
Der [`with-env`](/commands/docs/with-env.md) Befehl setzt die Umgebungsvariable temporär (hier wird die Variable "FOO" auf den Wert "BAR" gesetzt)
107
107
108
108
## Permanente Umgebungsvariablen
109
109
@@ -119,7 +119,7 @@ $env.FOO = 'BAR'
119
119
## Definition einer Umgebungsvariablen für selbst definierten Befehl
120
120
121
121
Aufgrund der Gültigkeitsregeln ist eine Umgebungsvariable, welche innerhalb eines selbstdefinierten Befehls gesetzt ist, auch nur in dessen Block gültig.
122
-
Wird sie jedoch mit [`dev-env`](/commands/docs/def-env.html) anstatt [`def`](/commands/docs/def.html) gesetzt, so wird sie beim verlassen des Blocks erhalten bleiben.
122
+
Wird sie jedoch mit [`dev-env`](/commands/docs/def-env.md) anstatt [`def`](/commands/docs/def.md) gesetzt, so wird sie beim verlassen des Blocks erhalten bleiben.
123
123
(Gilt auch für `export def`, siehe [Modules](modules.md))
124
124
125
125
```
@@ -188,7 +188,7 @@ So können wir überprüfen, ob die Konvertierung erfolgreich war.
188
188
189
189
Dieser Schritt kann auch manuell ausgelöst werden mit `do $env.ENV_CONVERSIONS.FOO.to_string [a b c]`
190
190
191
-
Zurückschauend auf den [`env`](/commands/docs/env.html) Befehl, die `raw` Spalte zeigt die Werte, die mit `ENV_CONVERSIONS.<name>.to_string` übersetzt wurden.
191
+
Zurückschauend auf den [`env`](/commands/docs/env.md) Befehl, die `raw` Spalte zeigt die Werte, die mit `ENV_CONVERSIONS.<name>.to_string` übersetzt wurden.
192
192
Die `value` Spalte zeigt die Werte, die Nushell benutzt (Das Resultat von `ENV_CONVERSIONS.<name>.from_string` wie bei `FOO`)
193
193
Wenn der Wert kein String ist und keine `to_string` Konvertierung angewendet wird, wird er nicht an einen externen Befehl weitergeleitet (siehe die `raw` Spalte von `PROMPT_COMMAND`)
194
194
Eine Ausnahme ist die `PATH` Variable (`Path` in Windows): Standardmässig wird diese von einem String in eine Liste konvertiert beim Start
@@ -199,7 +199,7 @@ Alle Umgebungsvariablen in env.nu und config.nu sind immer noch Strings solange
199
199
200
200
## Entfernen von Umgebungsvariablen
201
201
202
-
Umgebungsvariablen können im aktuellen Gültigkeitsbereich entfernt werden via [`hide`](/commands/docs/hide.html):
202
+
Umgebungsvariablen können im aktuellen Gültigkeitsbereich entfernt werden via [`hide`](/commands/docs/hide.md):
0 commit comments