diff options
Diffstat (limited to 'docs/fr-FR/config/README.md')
-rw-r--r-- | docs/fr-FR/config/README.md | 24 |
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: |