diff options
Diffstat (limited to 'docs/ru-RU/config/README.md')
-rw-r--r-- | docs/ru-RU/config/README.md | 357 |
1 files changed, 187 insertions, 170 deletions
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md index e0100a59e..2cbb970a5 100644 --- a/docs/ru-RU/config/README.md +++ b/docs/ru-RU/config/README.md @@ -1,83 +1,86 @@ -# Configuration +# Конфигурация ::: tip -🔥 Configuration is currently being worked on. Many new configuration options will be available in coming releases. +🔥 Конфигурация все еще находится в стадии разработки. Много новых опций будут доступны в будущих версиях. ::: -To get started configuring starship, create the following file: `~/.config/starship.toml`. +Чтобы начать конфигурацию Starship, создайте следующий файл: `~/.config/starship.toml`. ```shell $ touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +Вся конфигурация Starship выполняется в этом файле [TOML](https://github.com/toml-lang/toml): ```toml -# Don't print a new line at the start of the prompt +# Не добавлять пустую строку в начале ввода add_newline = false -# Replace the "❯" symbol in the prompt with "➜" -[character] # The name of the module we are configuring is "character" -symbol = "➜" # The "symbol" segment is being set to "➜" +# Поменять символ "❯" на символ "➜" +[character] # Имя настраемого модуля - "character" +symbol = "➜" # Сегменту "symbol" присваеваем значение "➜" -# Disable the package module, hiding it from the prompt completely +# Отключить модуль пакетов, полностью скрывая его из терминала [package] disabled = true ``` -### Terminology +### Терминология -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**Модуль**: Компонент строки, дающий информацию на основе контекстной информации вашей ОС. Например, модуль "nodejs" показывает установленную версию NodeJS на вашем компьютере, если вы находитесь в директории проекта NodeJS. -**Segment**: Smaller sub-components that compose a module. For example, the "symbol" segment in the "nodejs" module contains the character that is shown before the version number (⬢ by default). +**Сегмент**: Меньшие подкомпоненты, составляющие модуль. Например, сегмент "symbol" в модуле "nodejs" хранит символ, показываемый перед версией NodeJS (⬢, по умолчанию). -Here is the representation of the node module. In the following example, "symbol" and "version" are segments within it. Every module also has a prefix and suffix that are the default terminal color. +Вот представление модуля "nodejs". В примере, "symbol" и "version" - его сегменты. Также, каждый модуль имеет префикс и суффикс, являющиеся цветом терминала по умолчанию. ``` [prefix] [symbol] [version] [suffix] "via " "⬢" "v10.4.1" "" ``` -### Style Strings +### Стиль строк -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +В Starship, большинство модулей позволяют настроить стили отображения. Это делается записью (обычно называется `style`), которая представляет собой строку, определяющую конфигурацию. Ниже приведены несколько примеров стилей строк, а также, их действия. Подробнее о полном синтаксисе можно прочитать в [расширенном разделе конфигурации](/advanced-config/). -- `"fg:green bg:blue"` sets green text on a blue background -- `"bg:blue fg:bright-green"` sets bright green text on a blue background -- `"bold fg:27"` sets bold text with [ANSI color](https://i.stack.imgur.com/KTSQa.png) 27 -- `"underline bg:#bf5700"` sets underlined text on a burnt orange background -- `"bold italic fg:purple"` sets bold italic purple text -- `""` explicitly disables all styling +- `"fg:green bg:blue"` устанавливает зеленый текст на синем фоне +- `"bg:blue fg:bright-green"` устанавливает ярко-зеленый текст на синем фоне +- `"bold fg:27"` устанавливает жирный текст с [цветом ANSI](https://i.stack.imgur.com/KTSQa.png) 27 +- `"underline bg:#bf5700"` устанавливает подчёркиваемый текст цвета сожженного апельсина +- `"bold italic fg:purple"` устанавливает жирный фиолетовый текст +- `""` выключает все стили -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +Обратите внимание на то, что, вид стиля зависит от вашего эмулятора терминала. Например, некоторые эмуляторы терминала будут использовать яркие цвета вместо жирного текста, и некоторые цветовые темы используют одинаковые значение для обычных и ярких цветов. Также, чтобы получить курсивный текст, ваш терминал должен поддерживать курсив. -## Prompt +## Командная строка -This is the list of prompt-wide configuration options. +Ниже находится список опций, применяющихся для всей командной строки. -### Options +### Опции -| Variable | Default | Description | -| -------------- | ----------------------------- | ------------------------------------------------------ | -| `add_newline` | `true` | Add a new line before the start of the prompt. | -| `prompt_order` | [link](#default-prompt-order) | Configure the order in which the prompt module occurs. | +| Переменная | По умолчанию | Описание | +| -------------- | ----------------------------- | -------------------------------------------------------- | +| `add_newline` | `true` | Добавление пустой строки перед началом командной строки. | +| `prompt_order` | [link](#default-prompt-order) | Настройка порядка появления модулей командной строки. | +| `scan_timeout` | `30` | Тайм-аут запуска сканирования файлов (в миллисекундах). | -### Example +### Пример ```toml # ~/.config/starship.toml -# Disable the newline at the start of the prompt +# Не добавлять пустую строку перед началом командной строки add_newline = false -# Overwrite a default_prompt_order and use custom prompt_order +# Перезаписать default_prompt_order и использовать пользовательский prompt_order prompt_order=["rust","line_break","package","line_break","character"] +# Ждать 10 миллисекунд перед запуском сканирования файлов. +scan_timeout = 10 ``` -### Default Prompt Order +### Порядок модулей командной строки по умолчанию -The default `prompt_order` is used to define the order in which modules are shown in the prompt, if empty or no `prompt_order` is provided. The default is as shown: +По умолчанию, `prompt_order` определеят порядок появления модулей командной строки, если `prompt_order` пустой или не объявлен. Значение по умолчанию: ```toml prompt_order = [ @@ -112,17 +115,17 @@ prompt_order = [ ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +Модуль `aws` показывает текущий регион и профиль AWS. Основано на `AWS_REGION`, `AWS_DEFAULT_REGION`, и `AWS_PROFILE` переменных окружения и файле`~/.aws/config`. -### Options +### Опции -| Variable | Default | Description | -| ---------- | --------------- | ---------------------------------------------------------- | -| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. | -| `style` | `"bold yellow"` | The style for the module. | -| `disabled` | `false` | Disables the `AWS` module. | +| Переменная | По умолчанию | Описание | +| ---------- | --------------- | ----------------------------------------------- | +| `symbol` | `"☁️ "` | Символ перед отображением текущего профиля AWS. | +| `style` | `"bold yellow"` | Стиль модуля. | +| `disabled` | `false` | Отключает модуль `AWS`. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -132,24 +135,24 @@ style = "bold blue" symbol = "🅰 " ``` -## Battery +## Батарея -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +Модуль `battery` показывает насколько заряжена батарея девайса и статус зарядки на данный момент. Модуль виден только, если заряд батареи устройства меньше 10%. -### Options +### Опции -| Variable | Default | Description | -| -------------------- | ------------------------ | ------------------------------------------------- | -| `full_symbol` | `"•"` | The symbol shown when the battery is full. | -| `charging_symbol` | `"⇡"` | The symbol shown when the battery is charging. | -| `discharging_symbol` | `"⇣"` | The symbol shown when the battery is discharging. | -| `display` | [link](#battery-display) | Display threshold and style for the module. | -| `disabled` | `false` | Disables the `battery` module. | +| Переменная | По умолчанию | Описание | +| -------------------- | ------------------------ | ----------------------------------------------- | +| `full_symbol` | `"•"` | Символ, отображаемый при полной батарее. | +| `charging_symbol` | `"⇡"` | Символ, показываемый при зарядке аккумулятора. | +| `discharging_symbol` | `"⇣"` | Символ, показываемый при разрядке аккумулятора. | +| `display` | [link](#battery-display) | Порог отображения и стиль для модуля. | +| `disabled` | `false` | Отключает модуль `battery`. | <details> -<summary>There are also options for some uncommon battery states.</summary> +<summary>Также, есть опции для некоторых нетипичных состояний батареи.</summary> -| Variable | Description | +| Переменная | Описание | | ---------------- | --------------------------------------------------- | | `unknown_symbol` | The symbol shown when the battery state is unknown. | | `empty_symbol` | The symbol shown when the battery state is empty. | @@ -158,7 +161,7 @@ Note: Battery indicator will be hidden if the status is `unknown` or `empty` unl </details> -### Example +### Пример ```toml # ~/.config/starship.toml @@ -169,9 +172,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Отображение батареи -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +Параметр `display` используется для определения того, когда индикатор батареи должен быть показан (threshhold) и как он выглядит (style). Если `display` не предоставлено. Значение по умолчанию: ```toml [[battery.display]] @@ -179,16 +182,16 @@ threshold = 10 style = "bold red" ``` -#### Options +#### Опции The `display` option is an array of the following table. -| Variable | Description | +| Переменная | Описание | | ----------- | ----------------------------------------------- | | `threshold` | The upper bound for the display option. | | `style` | The style used if the display option is in use. | -#### Example +#### Пример ```toml [[battery.display]] # "bold red" style when capacity is between 0% and 10% @@ -209,9 +212,9 @@ The `character` module shows a character (usually an arrow) beside where the tex The character will tell you whether the last command was successful or not. It can do this in two ways: by changing color (red/green) or by changing its shape (❯/✖). The latter will only be done if `use_symbol_for_status` is set to `true`. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ----------------------- | -------------- | ----------------------------------------------------------------------------------- | | `symbol` | `"❯"` | The symbol used before the text input in the prompt. | | `error_symbol` | `"✖"` | The symbol used before text input if the previous command failed. | @@ -221,7 +224,7 @@ The character will tell you whether the last command was successful or not. It c | `style_failure` | `"bold red"` | The style used if the last command failed. | | `disabled` | `false` | Disables the `character` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -244,16 +247,16 @@ If you are running Starship in `bash`, do not hook the `DEBUG` trap after runnin Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | --------------- | ---------------------------------------------------------- | | `min_time` | `2` | Shortest duration to show time for. | | `prefix` | `took` | Prefix to display immediately before the command duration. | | `style` | `"bold yellow"` | The style for the module. | | `disabled` | `false` | Disables the `cmd_duration` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -267,15 +270,15 @@ prefix = "underwent " The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. Note: This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False` -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | -------------- | -------------------------------------------- | | `symbol` | `"C "` | The symbol used before the environment name. | | `style` | `"bold green"` | The style for the module. | | `disabled` | `false` | Disables the `conda` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -292,9 +295,9 @@ When using the fish style pwd option, instead of hiding the path that is truncat For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ------------------- | ------------- | -------------------------------------------------------------------------------- | | `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. | | `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. | @@ -304,14 +307,14 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an <details> <summary>This module has a few advanced configuration options that control how the directory is displayed.</summary> -| Variable | Default | Description | -| --------------------------- | ------- | ---------------------------------------------------------------------------------------- | -| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. | -| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. | +| Переменная | По умолчанию | Описание | +| --------------------------- | ------------ | ---------------------------------------------------------------------------------------- | +| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. | +| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. | </details> -### Example +### Пример ```toml # ~/.config/starship.toml @@ -328,16 +331,16 @@ This module will only be shown in your prompt when one of the following files ar Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ----------- | ------------- | -------------------------------------------------------- | | `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. | | `style` | `"bold blue"` | The style for the module. | | `heuristic` | `true` | Use faster version detection to keep starship snappy. | | `disabled` | `false` | Disables the `dotnet` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -355,19 +358,19 @@ The `env_var` module displays the current value of a selected environment variab - The `variable` configuration option matches an existing environment variable - The `variable` configuration option is not defined, but the `default` configuration option is -### Options +### Опции -| Variable | Default | Description | -| ---------- | ---------------- | ---------------------------------------------------------------------------- | -| `symbol` | | The symbol used before displaying the variable value. | -| `variable` | | The environment variable to be displayed. | -| `default` | | The default value to be displayed when the selected variable is not defined. | -| `prefix` | `""` | Prefix to display immediately before the variable value. | -| `suffix` | `""` | Suffix to display immediately after the variable value. | -| `style` | `"dimmed black"` | The style for the module. | -| `disabled` | `false` | Disables the `env_var` module. | +| Переменная | По умолчанию | Описание | +| -------------- | ---------------- | ---------------------------------------------------------------------------- | +| `symbol` | | The symbol used before displaying the variable value. | +| `переменная` | | The environment variable to be displayed. | +| `по умолчанию` | | The default value to be displayed when the selected variable is not defined. | +| `prefix` | `""` | Prefix to display immediately before the variable value. | +| `suffix` | `""` | Suffix to display immediately after the variable value. | +| `style` | `"dimmed black"` | The style for the module. | +| `disabled` | `false` | Disables the `env_var` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -381,9 +384,9 @@ default = "unknown shell" The `git_branch` module shows the active branch of the repo in your current directory. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ------------------- | --------------- | ------------------------------------------------------------------------------------- | | `symbol` | `" "` | The symbol used before the branch name of the repo in your current directory. | | `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes | @@ -391,7 +394,7 @@ The `git_branch` module shows the active branch of the repo in your current dire | `style` | `"bold purple"` | The style for the module. | | `disabled` | `false` | Disables the `git_branch` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -406,9 +409,9 @@ truncation_symbol = "" The `git_state` module will show in directories which are part of a git repository, and where there is an operation in progress, such as: _REBASING_, _BISECTING_, etc. If there is progress information (e.g., REBASING 3/10), that information will be shown too. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ------------------ | ------------------ | ---------------------------------------------------------------------------------------------------------------- | | `rebase` | `"REBASING"` | The text displayed when a `rebase` is in progress. | | `merge` | `"MERGING"` | The text displayed when a `merge` is in progress. | @@ -421,7 +424,7 @@ The `git_state` module will show in directories which are part of a git reposito | `style` | `"bold yellow"` | The style for the module. | | `disabled` | `false` | Disables the `git_state` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -435,27 +438,41 @@ cherry_pick = "🍒 PICKING" The `git_status` module shows symbols representing the state of the repo in your current directory. -### Options - -| Variable | Default | Description | -| ----------------- | ------------ | ------------------------------------------------------- | -| `conflicted` | `"="` | This branch has merge conflicts. | -| `ahead` | `"⇡"` | This branch is ahead of the branch being tracked. | -| `behind` | `"⇣"` | This branch is behind of the branch being tracked. | -| `diverged` | `"⇕"` | This branch has diverged from the branch being tracked. | -| `untracked` | `"?"` | There are untracked files in the working directory. | -| `stashed` | `"$"` | A stash exists for the local repository. | -| `modified` | `"!"` | There are file modifications in the working directory. | -| `staged` | `"+"` | A new file has been added to the staging area. | -| `renamed` | `"»"` | A renamed file has been added to the staging area. | -| `deleted` | `"✘"` | A file's deletion has been added to the staging area. | -| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. | -| `prefix` | `[` | Prefix to display immediately before git status. | -| `suffix` | `]` | Suffix to display immediately after git status. | -| `style` | `"bold red"` | The style for the module. | -| `disabled` | `false` | Disables the `git_status` module. | - -### Example +### Опции + +| Переменная | По умолчанию | Описание | +| ------------------ | -------------------------- | ------------------------------------------------------- | +| `conflicted` | `"="` | This branch has merge conflicts. | +| `conflicted_count` | [link](#git-status-counts) | Show and style the number of conflicts. | +| `ahead` | `"⇡"` | This branch is ahead of the branch being tracked. | +| `behind` | `"⇣"` | This branch is behind of the branch being tracked. | +| `diverged` | `"⇕"` | This branch has diverged from the branch being tracked. | +| `untracked` | `"?"` | There are untracked files in the working directory. | +| `untracked_count` | [link](#git-status-counts) | Show and style the number of untracked files. | +| `stashed` | `"$"` | A stash exists for the local repository. | +| `modified` | `"!"` | There are file modifications in the working directory. | +| `modified_count` | [link](#git-status-counts) | Show and style the number of modified files. | +| `staged` | `"+"` | A new file has been added to the staging area. | +| `staged_count` | [link](#git-status-counts) | Show and style the number of files staged files. | +| `renamed` | `"»"` | A renamed file has been added to the staging area. | +| `renamed_count` | [link](#git-status-counts) | Show and style the number of renamed files. | +| `deleted` | `"✘"` | A file's deletion has been added to the staging area. | +| `deleted_count` | [link](#git-status-counts) | Show and style the number of deleted files. | +| `show_sync_count` | `false` | Show ahead/behind count of the branch being tracked. | +| `prefix` | `[` | Prefix to display immediately before git status. | +| `suffix` | `]` | Suffix to display immediately after git status. | +| `style` | `"bold red"` | The style for the module. | +| `disabled` | `false` | Disables the `git_status` module. | + +#### Git Status Counts + +| Переменная | По умолчанию | Описание | +| ---------- | ------------ | ------------------------------------------------------ | +| `enabled` | `false` | Show the number of files | +| `style` | | Optionally style the count differently than the module | + + +### Пример ```toml # ~/.config/starship.toml @@ -468,7 +485,10 @@ diverged = "😵" untracked = "🤷" stashed = "📦" modified = "📝" -staged = "➕" +staged.value = "++" +staged.style = "green" +staged_count.enabled = true +staged_count.style = "green" renamed = "👅" deleted = "🗑" ``` @@ -485,15 +505,15 @@ The `golang` module shows the currently installed version of Golang. The module - The current directory contains a `Godeps` directory - The current directory contains a file with the `.go` extension -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | ------------- | -------------------------------------------------------- | | `symbol` | `"🐹 "` | The symbol used before displaying the version of Golang. | | `style` | `"bold cyan"` | The style for the module. | | `disabled` | `false` | Disables the `golang` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -506,9 +526,9 @@ symbol = "🏎💨 " The `hostname` module shows the system hostname. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | `ssh_only` | `true` | Only show hostname when connected to an SSH session. | | `prefix` | `""` | Prefix to display immediately before the hostname. | @@ -517,7 +537,7 @@ The `hostname` module shows the system hostname. | `style` | `"bold dimmed green"` | The style for the module. | | `disabled` | `false` | Disables the `hostname` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -534,16 +554,16 @@ disabled = false The `jobs` module shows the current number of jobs running. The module will be shown only if there are background jobs running. The module will show the number of jobs running if there is more than 1 job, or more than the `threshold` config value, if it exists. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ----------- | ------------- | ----------------------------------------------------- | | `symbol` | `"✦"` | The symbol used before displaying the number of jobs. | | `threshold` | `1` | Show number of jobs if exceeded. | | `style` | `"bold blue"` | The style for the module. | | `disabled` | `false` | Disables the `jobs` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -553,11 +573,9 @@ symbol = "+ " threshold = 4 ``` - ## Kubernetes -Displays the current Kubernetes context name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace -astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`. +Displays the current Kubernetes context name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`. ::: tip @@ -565,15 +583,15 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y ::: -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | ------------- | --------------------------------------------------- | | `symbol` | `"☸ "` | The symbol used before displaying the Cluster info. | | `style` | `"bold blue"` | The style for the module. | | `disabled` | `true` | Disables the `kubernetes` module | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -584,18 +602,17 @@ style = "dim green" disabled = false ``` - ## Line Break The `line_break` module separates the prompt into two lines. -### Options +### Опции -| Variable | Default | Description | -| ---------- | ------- | ------------------------------------------------------------------ | -| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. | +| Переменная | По умолчанию | Описание | +| ---------- | ------------ | ------------------------------------------------------------------ | +| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -608,9 +625,9 @@ disabled = true The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment. -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ------------ | ------------ | ---------------------------------- | | `use_name` | `false` | Display the name of the nix-shell. | | `impure_msg` | `impure` | Customize the "impure" msg. | @@ -618,7 +635,7 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown | `style` | `"bold red"` | The style for the module. | | `disabled` | `false` | Disables the `nix_shell` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -642,9 +659,9 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y ::: -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ----------------- | --------------------- | ------------------------------------------------------------- | | `show_percentage` | `false` | Display memory usage as a percentage of the available memory. | | `show_swap` | `true` | Display swap usage if total swap is non-zero. | @@ -653,7 +670,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold dimmed white"` | The style for the module. | | `disabled` | `true` | Disables the `memory_usage` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -673,15 +690,15 @@ The `java` module shows the currently installed version of Java. The module will - The current directory contains a `pom.xml`, `build.gradle` or `build.sbt` file - The current directory contains a file with the `.java`, `.class` or `.jar` extension -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | -------------- | ------------------------------------------------------ | | `symbol` | `"☕ "` | The symbol used before displaying the version of Java. | | `style` | `"dimmed red"` | The style for the module. | | `disabled` | `false` | Disables the `java` module. | -### Example +### Пример ```toml # ~/.config/starship.toml @@ -698,15 +715,15 @@ The `nodejs` module shows the currently installed version of NodeJS. The module - The current directory contains a `node_modules` directory - The current directory contains a file with the `.js` extension -### Options +### Опции -| Variable | Default | Description | +| Переменная | По умолчанию | Описание | | ---------- | -------------- | -------------------------------------------------------- | | `symbol` | `"⬢ "` | The symbol used before displaying the version of NodeJS. | | `style` | `"bold green"` | The style for the module. | | `disabled` | `false` | Disables the `nodejs` module. | -### Example |