docs(i18n): new Crowdin updates (#2879)
This commit is contained in:
parent
88ed0ed45a
commit
1a6207d1f2
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Umgebungsvariablen
|
## Umgebungsvariablen
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### Optionen
|
### Optionen
|
||||||
|
|
||||||
| Option | Standardwert | Beschreibung |
|
| Option | Standardwert | Beschreibung |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -919,11 +919,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Variable de entorno
|
## Variable de entorno
|
||||||
|
|
||||||
El módulo `env_var` muestra el valor actual de una variable de entorno seleccionada. El módulo se mostrará sólo si se cumplen cualquiera de las siguientes condiciones:
|
The `env_var` module displays the current value of a selected environment variables. El módulo se mostrará sólo si se cumplen cualquiera de las siguientes condiciones:
|
||||||
|
|
||||||
- La opción de configuración de `variable` coincide con una variable de entorno existente
|
- La opción de configuración de `variable` coincide con una variable de entorno existente
|
||||||
- La opción de configuración de `variable` no está definida, pero la opción de configuración se encuentra `por defecto`
|
- La opción de configuración de `variable` no está definida, pero la opción de configuración se encuentra `por defecto`
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### Opciones
|
### Opciones
|
||||||
|
|
||||||
| Opción | Por defecto | Descripción |
|
| Opción | Por defecto | Descripción |
|
||||||
|
@ -954,6 +965,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Variable d'environnement
|
## 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` correspond à une variable d'environnement existante
|
||||||
- L'option `variable` n'est pas définie, mais l'option `default` l'est
|
- 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
|
### Options
|
||||||
|
|
||||||
| Option | Défaut | Description |
|
| Option | Défaut | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## 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:
|
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:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Variabili di ambiente
|
## Variabili di ambiente
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -921,11 +921,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## 環境変数
|
## 環境変数
|
||||||
|
|
||||||
`env_var`モジュールは、選択された環境変数の現在の値を表示します。 次の条件のいずれかが満たされると、モジュールが表示されます。
|
The `env_var` module displays the current value of a selected environment variables. 次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||||
|
|
||||||
- `variable`オプションが、既存の環境変数と一致する
|
- `variable`オプションが、既存の環境変数と一致する
|
||||||
- `variable`オプションが定義されておらず、`default`オプションが定義されている
|
- `variable`オプションが定義されておらず、`default`オプションが定義されている
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### オプション
|
### オプション
|
||||||
|
|
||||||
| オプション | デフォルト | 説明 |
|
| オプション | デフォルト | 説明 |
|
||||||
|
@ -956,6 +967,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Variáveis de Ambiente
|
## Variáveis de Ambiente
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### Opções
|
### Opções
|
||||||
|
|
||||||
| Opções | Padrão | Descrição |
|
| Opções | Padrão | Descrição |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Переменная Окружения
|
## Переменная Окружения
|
||||||
|
|
||||||
Модуль `env_var` отображает текущее значение выбранной переменной окружения. Модуль будет показан только в том случае, если любое из следующих условий соблюдено:
|
The `env_var` module displays the current value of a selected environment variables. Модуль будет показан только в том случае, если любое из следующих условий соблюдено:
|
||||||
|
|
||||||
- Опция `variable` соответствует существующей переменной среды
|
- Опция `variable` соответствует существующей переменной среды
|
||||||
- Опция `variable` не определена, но определена опция `default`
|
- Опция `variable` не определена, но определена опция `default`
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### Опции
|
### Опции
|
||||||
|
|
||||||
| Параметр | По умолчанию | Описание |
|
| Параметр | По умолчанию | Описание |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
|
The `env_var` module displays the current value of a selected environment variables. The module will be shown only if any of the following conditions are met:
|
||||||
|
|
||||||
- The `variable` configuration option matches an existing environment variable
|
- The `variable` configuration option matches an existing environment variable
|
||||||
- The `variable` configuration option is not defined, but the `default` configuration option is
|
- The `variable` configuration option is not defined, but the `default` configuration option is
|
||||||
|
|
||||||
|
|
||||||
|
::: 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
|
### Options
|
||||||
|
|
||||||
| Option | Default | Description |
|
| Option | Default | Description |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Biến môi trường
|
## Biến môi trường
|
||||||
|
|
||||||
Mô đun `env_var` hiển thị giá trị hiện tại của biến môi trường được chọn. Mô đun sẽ được hiển thị chỉ khi bất kì điều kiện nào sau đây thỏa mãn:
|
The `env_var` module displays the current value of a selected environment variables. Mô đun sẽ được hiển thị chỉ khi bất kì điều kiện nào sau đây thỏa mãn:
|
||||||
|
|
||||||
- Tùy chọn `variable` khớp với mootjj biến môi trường tồn tại
|
- Tùy chọn `variable` khớp với mootjj biến môi trường tồn tại
|
||||||
- Tùy chọn `variable` không được định nghĩa, nhưng tùy chọn `default` là
|
- Tùy chọn `variable` không được định nghĩa, nhưng tùy chọn `default` là
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### Các tuỳ chọn
|
### Các tuỳ chọn
|
||||||
|
|
||||||
| Tuỳ chọn | Mặc định | Mô tả |
|
| Tuỳ chọn | Mặc định | Mô tả |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## Environment Variable
|
## Environment Variable
|
||||||
|
|
||||||
`env_var` 组件显示选定的环境变量的当前值。 此组件只有满足以下条件之一时才会被显示:
|
The `env_var` module displays the current value of a selected environment variables. 此组件只有满足以下条件之一时才会被显示:
|
||||||
|
|
||||||
- 设置的 `variable` 是一个已存在的环境变量
|
- 设置的 `variable` 是一个已存在的环境变量
|
||||||
- 未定义 `variable`,但定义了 `default`
|
- 未定义 `variable`,但定义了 `default`
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### 配置项
|
### 配置项
|
||||||
|
|
||||||
| Option | 默认值 | 描述 |
|
| Option | 默认值 | 描述 |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
|
@ -920,11 +920,22 @@ format = "via [ $version](cyan bold) "
|
||||||
|
|
||||||
## 環境變數
|
## 環境變數
|
||||||
|
|
||||||
`env_var`模組顯示一個選擇的環境變數的現在數值。 這個模組只在下列條件其中之一達到時顯示:
|
The `env_var` module displays the current value of a selected environment variables. 這個模組只在下列條件其中之一達到時顯示:
|
||||||
|
|
||||||
- `variable` 設定選項符合一個存在的環境變數。
|
- `variable` 設定選項符合一個存在的環境變數。
|
||||||
- 沒有設定 `variable` 選項,但是有設定 `default` 選項。
|
- 沒有設定 `variable` 選項,但是有設定 `default` 選項。
|
||||||
|
|
||||||
|
|
||||||
|
::: 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"
|
||||||
|
```
|
||||||
|
|
||||||
### 選項
|
### 選項
|
||||||
|
|
||||||
| Option | 預設 | 說明 |
|
| Option | 預設 | 說明 |
|
||||||
|
@ -955,6 +966,17 @@ variable = "SHELL"
|
||||||
default = "unknown 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
|
## Erlang
|
||||||
|
|
||||||
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). By default the module will be shown if any of the following conditions are met:
|
||||||
|
|
Loading…
Reference in New Issue