diff options
author | Matan Kushner <hello@matchai.dev> | 2021-07-13 17:58:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 17:58:51 -0400 |
commit | 1a6207d1f2d2c3695be7afaea0821b5aef6e2215 (patch) | |
tree | 02c9f9fbeb8530fc54fd9118ff85ddf85de434b8 /docs/ru-RU/config | |
parent | 88ed0ed45a2f4dfe57085324f93fe0f1f65c7184 (diff) |
docs(i18n): new Crowdin updates (#2879)
Diffstat (limited to 'docs/ru-RU/config')
-rw-r--r-- | docs/ru-RU/config/README.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md index 84b177050..638b84bf2 100644 --- a/docs/ru-RU/config/README.md +++ b/docs/ru-RU/config/README.md @@ -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` не определена, но определена опция `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" ``` +Displaying multiple environmental variables: +```toml +# ~/.config/starship.toml + +[env_var.SHELL] +variable = "SHELL" +default = "unknown shell" +[env_var.USER] +default = "unknown user" +``` + ## 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: |