summaryrefslogtreecommitdiffstats
path: root/docs/fr-FR
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2021-07-13 17:58:51 -0400
committerGitHub <noreply@github.com>2021-07-13 17:58:51 -0400
commit1a6207d1f2d2c3695be7afaea0821b5aef6e2215 (patch)
tree02c9f9fbeb8530fc54fd9118ff85ddf85de434b8 /docs/fr-FR
parent88ed0ed45a2f4dfe57085324f93fe0f1f65c7184 (diff)
docs(i18n): new Crowdin updates (#2879)
Diffstat (limited to 'docs/fr-FR')
-rw-r--r--docs/fr-FR/config/README.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md
index 507907603..704b74177 100644
--- a/docs/fr-FR/config/README.md
+++ b/docs/fr-FR/config/README.md
@@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
## Variable d'environnement
-Le module `env_var` affiche la valeur actuelle d'une variable d'environnement sélectionnée. Le module est affiché si l'une de ces conditions est remplie :
+The `env_var` module displays the current value of a selected environment variables. Le module est affiché si l'une de ces conditions est remplie :
- L'option `variable` correspond à une variable d'environnement existante
- L'option `variable` n'est pas définie, mais l'option `default` l'est
+
+::: tip Multiple environmental variables can be displayed by using a `.`. (see example) If the `variable` configuration option is not set, the module will display value of variable under the name of text after the `.` character.
+
+Example: following configuration will display value of USER environment variable
+```toml
+# ~/.config/starship.toml
+
+[env_var.USER]
+default = "unknown user"
+```
+
### Options
| Option | Défaut | Description |
@@ -955,6 +966,17 @@ variable = "SHELL"
default = "unknown shell"
```
+Displaying multiple environmental variables:
+```toml
+# ~/.config/starship.toml
+
+[env_var.SHELL]
+variable = "SHELL"
+default = "unknown shell"
+[env_var.USER]
+default = "unknown user"
+```
+
## Erlang
Le module `erlang` montre la version actuellement installée de [Erlang/OTP](https://erlang.org/doc/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie: