summaryrefslogtreecommitdiffstats
path: root/docs/ru-RU
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2022-02-07 15:53:55 +0100
committerGitHub <noreply@github.com>2022-02-07 15:53:55 +0100
commit1d965a9d24509d500954669b4e5fb08e54733411 (patch)
treed2d0714bad4ba9ac79a8a8385a690ad0e454c2a3 /docs/ru-RU
parentdb86a93824ae0ce985db463ea34807990b3b879b (diff)
docs(i18n): new Crowdin updates (#3460)
Diffstat (limited to 'docs/ru-RU')
-rw-r--r--docs/ru-RU/README.md18
-rw-r--r--docs/ru-RU/advanced-config/README.md64
-rw-r--r--docs/ru-RU/config/README.md439
-rw-r--r--docs/ru-RU/faq/README.md2
-rw-r--r--docs/ru-RU/guide/README.md248
-rw-r--r--docs/ru-RU/installing/README.md4
-rw-r--r--docs/ru-RU/migrating-to-0.45.0/README.md2
-rw-r--r--docs/ru-RU/presets/README.md5
8 files changed, 457 insertions, 325 deletions
diff --git a/docs/ru-RU/README.md b/docs/ru-RU/README.md
index d9976cce7..c313c14ce 100644
--- a/docs/ru-RU/README.md
+++ b/docs/ru-RU/README.md
@@ -28,9 +28,9 @@ description: Starship - минимальная, быстрая и бесконе
</video>
</div>
-### Требования
+### Обязательные требования
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal.
+- Установленный и включенный шрифт [Nerd Font](https://www.nerdfonts.com/) в вашем терминале.
### Быстрая установка
@@ -99,7 +99,7 @@ description: Starship - минимальная, быстрая и бесконе
#### PowerShell
- Добавьте следующее в конец `Microsoft.PowerShell_profile.ps1`. Вы можете проверить местоположение этого файла, запросив переменную `$PROFILE` в PowerShell. Обычно он находится в `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` или `~/.config/powershell/Microsoft.PowerShell_profile.ps1` на -Nix.
+ Добавьте следующее в конец `Microsoft.PowerShell_profile.ps1`. Вы можете узнать расположение этого файла, запросив переменную `$PROFILE` в PowerShell. Обычно он находится в `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` или `~/.config/powershell/Microsoft.PowerShell_profile.ps1` на -Nix.
```sh
Invoke-Expression (&starship init powershell)
@@ -119,7 +119,7 @@ description: Starship - минимальная, быстрая и бесконе
#### Elvish
- ::: warning Only elvish v0.17 or higher is supported. :::
+ ::: warning Поддерживается только elvish v0.17 или выше. :::
Добавьте следующую строку в конец `~/.elvish/rc.elv`:
@@ -143,13 +143,13 @@ description: Starship - минимальная, быстрая и бесконе
#### Nushell
- ::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ ::: warning Это будет изменено. Поддерживается только nu версии v0.33 или выше. ::: Добавьте следующее в свой конфигурационный файл nu. Вы можете узнать расположение этого файла, выполнив `config path` в nu.
```toml
startup = [
- "mkdir ~/.cache/starship",
- "starship init nu | save ~/.cache/starship/init.nu",
- "source ~/.cache/starship/init.nu"
+ "mkdir ~/.cache/starship",
+ "starship init nu | save ~/.cache/starship/init.nu",
+ "source ~/.cache/starship/init.nu",
]
prompt = "starship_prompt"
```
@@ -157,7 +157,7 @@ description: Starship - минимальная, быстрая и бесконе
#### Xonsh
- Add the following to the end of `~/.xonshrc`:
+ Добавьте следующее в конец `~/.xonshrc`:
```sh
# ~/.xonshrc
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index edcec7f37..365a63672 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -32,11 +32,11 @@ end
load(io.popen('starship init cmd'):read("*a"))()
```
-## Custom pre-prompt and pre-execution Commands in Bash
+## Пользовательские команды перед командной строкой и перед запуском Bash
-Bash does not have a formal preexec/precmd framework like most other shells. Because of this, it is difficult to provide fully customizable hooks in `bash`. Тем не менее, Starship дает вам ограниченную возможность вставить собственные функции в процедуру отображения подсказки:
+Bash не имеет формальной среды preexec/precmd, как и большинство других оболочек. Из-за этого трудно предоставить полностью настраиваемые хуки в `bash`. Тем не менее, Starship дает вам ограниченную возможность вставить собственные функции в процедуру отображения подсказки:
-- To run a custom function right before the prompt is drawn, define a new function and then assign its name to `starship_precmd_user_func`. For example, to draw a rocket before the prompt, you would do
+- Чтобы запустить пользовательскую функцию прямо перед отображением подсказки, определите новую функцию и затем назначьте ей имя `starship_precmd_user_func`. Например, чтобы нарисовать ракету перед появлением подсказки, сделайте
```bash
function blastoff(){
@@ -45,14 +45,16 @@ function blastoff(){
starship_precmd_user_func="blastoff"
```
-- To run a custom function right before a command runs, you can use the [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). However, you **must** trap the DEBUG signal *before* initializing Starship! Starship can preserve the value of the DEBUG trap, but if the trap is overwritten after starship starts up, some functionality will break.
+- To run a custom function right before a command runs, you can use the [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). Тем не менее, вы **должны** поймать сигнал DEBUG _перед_ инициализацией Starship! Starship может сохранить значение ловушки DEBUG, но если ловушка перезаписана после запуска Starship, некоторая функциональность сломается.
```bash
function blastoff(){
echo "🚀"
}
trap blastoff DEBUG # Trap DEBUG *before* running starship
+set -o functrace
eval $(starship init bash)
+set +o functrace
```
## Custom pre-prompt and pre-execution Commands in PowerShell
@@ -67,11 +69,11 @@ function Invoke-Starship-PreCommand {
}
```
-## Change Window Title
+## Изменение заголовка окна
-Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish even does it by default. Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
+Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish даже делает это по умолчанию. Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
-First, define a window title change function (identical in bash and zsh):
+Сначала задайте функцию изменения заголовка окна (идентичную в bash и zsh):
```bash
function set_win_title(){
@@ -79,15 +81,15 @@ function set_win_title(){
}
```
-You can use variables to customize this title (`$USER`, `$HOSTNAME`, and `$PWD` are popular choices).
+Вы можете использовать переменные для настройки этого заголовка (`$USER`, `$HOSTNAME`, и `$PWD` являются популярными вариантами).
-In `bash`, set this function to be the precmd starship function:
+В `bash`, установите эту функцию как функцию precmd в Starship:
```bash
starship_precmd_user_func="set_win_title"
```
-In `zsh`, add this to the `precmd_functions` array:
+В `zsh`, добавьте это в массив `precmd_functions`:
```bash
precmd_functions+=(set_win_title)
@@ -95,7 +97,7 @@ precmd_functions+=(set_win_title)
If you like the result, add these lines to your shell configuration file (`~/.bashrc` or `~/.zshrc`) to make it permanent.
-For example, if you want to display your current directory in your terminal tab title, add the following snippet to your `~/.bashrc` or `~/.zshrc`:
+Например, если вы хотите отобразить ваш текущий каталог в заголовке вкладки терминала, добавьте следующие строки в `~/. bashrc` или `~/.zshrc`:
```bash
function set_win_title(){
@@ -161,9 +163,9 @@ Note: `continuation_prompt` should be set to a literal string without any variab
Note: Continuation prompts are only available in the following shells:
- - `bash`
- - `zsh`
- - `PowerShell`
+- `bash`
+- `zsh`
+- `PowerShell`
### Пример
@@ -176,26 +178,26 @@ continuation_prompt = "▶▶"
## Строки стиля
-Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
+Строки стиля - это список слов, разделенных пробелами. Слова не чувствительны к регистру (то есть `bold` и `BoLd` считаются одной строкой). Каждое слово может быть одним из следующих:
- - `bold`
- - `italic`
- - `underline`
- - `dimmed`
- - `inverted`
- - `bg:<color>`
- - `fg:<color>`
- - `<color>`
- - `none`
+- `bold`
+- `italic`
+- `underline`
+- `dimmed`
+- `inverted`
+- `bg:<color>`
+- `fg:<color>`
+- `<color>`
+- `none`
-where `<color>` is a color specifier (discussed below). `fg:<color>` and `<color>` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
+где `<color>` является цветовым спецификатором (обсуждается ниже). `fg:<color>` and `<color>` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. Порядок слов в строке не имеет значения.
-The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
+Токен `none` переопределяет все остальные токены в строке, если он не является частью спецификатора `bg:` так, например, `fg:red none fg:blue` все равно создаст строку без стиля. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. Использование `none` в сочетании с другими токенами может стать ошибкой в будущем.
-A color specifier can be one of the following:
+Цветовой спецификатор может быть одним из следующих:
- - One of the standard terminal colors: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
- - A `#` followed by a six-digit hexadecimal number. This specifies an [RGB color hex code](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- - A number between 0-255. This specifies an [8-bit ANSI Color Code](https://i.stack.imgur.com/KTSQa.png).
+- One of the standard terminal colors: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
+- `#`, за которой следует шестизначное шестнадцатеричное число. Это определяет [шестнадцатеричный код цвета RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
+- Число от 0 до 255. Это определяет [8-битный код цвета ANSI](https://i.stack.imgur.com/KTSQa.png).
-If multiple colors are specified for foreground/background, the last one in the string will take priority.
+Если для переднего плана/фона задано несколько цветов, то последняя из строк будет иметь приоритет.
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index ecb834880..9ce3bd235 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -13,8 +13,8 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
-[character] # The name of the module we are configuring is "character"
-success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
+[character] # The name of the module we are configuring is "character"
+success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
# Disable the package module, hiding it from the prompt completely
[package]
@@ -41,7 +41,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star
### Логгирование (Запись действий)
-By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to a instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable:
+По умолчанию в starship записываются предупреждения и ошибки в файл с именем `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, где ключ сессии соответствует экземпляру терминала. Это, однако, может быть изменено с помощью переменной окружения `STARSHIP_CACHE`:
```sh
export STARSHIP_CACHE=~/.starship/cache
@@ -61,21 +61,21 @@ os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
### Терминология
-**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
+**Модуль**: Компонент строки, дающий информацию на основе контекстной информации вашей ОС. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
-By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix.
+По традициям, большинство модулей имеют префикс цвета терминала по умолчанию (например, `через` в "узлах") и пустое пространство как суффикс.
### Форматирование строк
-Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string.
+Формат строк - это формат, с которым модуль печатает все переменные. Большинство модулей имеют запись `формата`, который настраивает формат отображения модуля. Вы можете использовать тексты, переменные и группы текста в строке формата.
#### Переменная
-A variable contains a `$` symbol followed by the name of the variable. The name of a variable can only contain letters, numbers and `_`.
+Переменная содержит символ `$`, за которым следует имя переменной. The name of a variable can only contain letters, numbers and `_`.
-For example:
+Например:
- `$version` это строка формата с именем `версии`.
- `$git_branch$git_commit` это строка формата с двумя переменными `git_branch` и `git_commit`.
@@ -83,13 +83,13 @@ For example:
#### Группа текста
-A text group is made up of two different parts.
+Текстовая группа состоит из двух различных частей.
-The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
+Первая часть, которая заключена в `[]`, это [формат строки](#format-strings). Вы можете добавлять в него тексты, переменные, или даже вложенные текстовые группы.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
+Во второй части, которая заключена в `()`, это строка стиля [](#style-strings). This can be used to style the first part.
-For example:
+Например:
- `[on](red bold)` будет печатать строку `on` жирным текстом красного цвета.
- `[⌘ $version](bold green)` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
@@ -97,7 +97,7 @@ For example:
#### Строки стиля
-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"` устанавливает зеленый текст на синем фоне
- `"bg:blue fg:bright-green"` устанавливает ярко-зеленый текст на синем фоне
@@ -106,13 +106,13 @@ Most modules in starship allow you to configure their display styles. This is do
- `"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.
+Обратите внимание на то, что, вид стиля зависит от вашего эмулятора терминала. Например, некоторые эмуляторы терминала будут использовать яркие цвета вместо жирного текста, и некоторые цветовые темы используют одинаковые значение для обычных и ярких цветов. Также, чтобы получить курсивный текст, ваш терминал должен поддерживать курсив.
#### Строки условного формата
-A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty.
+Строка условного формата, завернутая в `(` и `)` не будет отображаться, если все переменные внутри являются пустыми.
-For example:
+Например:
- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
- `(некоторый текст)` всегда не показывает ничего, поскольку в скобках нет переменных.
@@ -124,18 +124,18 @@ The following symbols have special usage in a format string and must be escaped:
Note that TOML has [both basic strings and literal strings](https://toml.io/en/v1.0.0#string). It is recommended to use a literal string (surrounded by single quotes) in your config. If you want to use a basic string (surrounded by double quotes), you must escape the backslash itself (i.e. use `\\`).
-For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent:
+Например, когда вы хотите напечатать символ `$` на новой строке, следующие настройки для `формата` эквивалентны:
```toml
-# with basic string
+# с базовой строкой
format = "\n\\$"
-# with multiline basic string
+# с многолинейной строкой
format = """
\\$"""
-# with literal string
+# со строкой, состоящей из литералов
format = '''
\$'''
@@ -143,7 +143,7 @@ format = '''
## Командная строка
-This is the list of prompt-wide configuration options.
+Ниже находится список опций, применяющихся для всей командной строки.
### Опции
@@ -155,19 +155,18 @@ This is the list of prompt-wide configuration options.
| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
| `add_newline` | `true` | Inserts blank line between shell prompts. |
-
### Пример
```toml
# ~/.config/starship.toml
-# Use custom format
+# Собственное форматирование оболочки
format = """
[┌───────────────────>](bold green)
[│](bold green)$directory$rust$package
[└─>](bold green) """
-# Wait 10 milliseconds for starship to check files under the current directory.
+# Подождите 10 милисекунд пока starship прочитает файлы в этой директории.
scan_timeout = 10
# Disable the blank line at the start of the prompt
@@ -176,7 +175,7 @@ add_newline = false
### Формат оболочки по умолчанию
-The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown:
+Формат по умолчанию `format` используется для определения формата подсказки (prompt), если `format` пустой или отсутствует. Значение по умолчанию:
```toml
format = "$all"
@@ -185,6 +184,7 @@ format = "$all"
format = """
$username\
$hostname\
+$localip\
$shlvl\
$singularity\
$kubernetes\
@@ -200,6 +200,7 @@ $docker_context\
$package\
$cmake\
$cobol\
+$container\
$dart\
$deno\
$dotnet\
@@ -255,12 +256,12 @@ If you just want to extend the default format, you can use `$all`; modules you e
```toml
# Move the directory to the second line
-format="$all$directory$character"
+format = "$all$directory$character"
```
## 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. This module also shows an expiration timer when using temporary credentials.
+Модуль `aws` показывает текущий регион и профиль AWS. Основано на `AWS_REGION`, `AWS_DEFAULT_REGION`, и `AWS_PROFILE` переменных окружения и файле`~/.aws/config`. This module also shows an expiration timer when using temporary credentials.
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
@@ -289,7 +290,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
### Примеры
@@ -359,7 +360,7 @@ style = "blue bold"
## Батарея
-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%.
### Опции
@@ -387,7 +388,7 @@ discharging_symbol = "💀 "
### Отображение батареи
-The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. The default is as shown:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). Если `display` не предоставлено. Значение по умолчанию:
```toml
[[battery.display]]
@@ -399,7 +400,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
#### Опции
-The `display` option is an array of the following table.
+Опция `display` представляет собой массив следующей таблицы.
| Параметр | По умолчанию | Описание |
| -------------------- | ------------ | --------------------------------------------------------------------------------------------------------- |
@@ -411,24 +412,23 @@ The `display` option is an array of the following table.
#### Пример
```toml
-[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
+[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = "bold red"
-[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
+[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
discharging_symbol = "💦"
# when capacity is over 30%, the battery indicator will not be displayed
-
```
## Символ
-The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
+Модуль `character` показывает символ (обычно, стрелка) рядом с вводимым текстом в терминале.
-The character will tell you whether the last command was successful or not. It can do this in two ways:
+Символ показывает, была ли последняя команда успешной или нет. It can do this in two ways:
- changing color (`red`/`green`)
- changing shape (`❯`/`✖`)
@@ -522,7 +522,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
## COBOL / GNUCOBOL
@@ -552,37 +552,32 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
## Длительность команды
-The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+Модуль `cmd_duration` показывает время исполнения последней команды. Модуль будет показан только, если команда заняла более двух секунд, или если задан параметр `min_time`.
-::: warning Do not hook the DEBUG trap in Bash
+::: предупреждение Не подключайте ловушку DEBUG к Bash
-If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+Если вы испоьзуете Starship в `bash`, не подключайте ловушку `DEBUG` после запуска `eval $(starship init $0)`, иначе этот модуль сломается.
:::
-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.
+Пользователи Bash, которым нужна функциональность, подобная preexec, могут использовать [фреймворк bash_preexec от rcaloras](https://github.com/rcaloras/bash-preexec). Просто определите массивы `preexec_functions` и `precmd_functions` перед запуском `eval $(starship init $0)`, а затем продолжайте нормально.
### Опции
-| Параметр | По умолчанию | Описание |
-| -------------------- | ----------------------------- | -------------------------------------------------------------------- |
-| `min_time` | `2_000` | Кратчайшая продолжительность для показа времени (в миллисекундах). |
-| `show_milliseconds` | `false` | Показывать миллисекунды в дополнение к секундам в продолжительности. |
-| `format` | `"took [$duration]($style) "` | Формат модуля. |
-| `style` | `"bold yellow"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `cmd_duration`. |
-| `show_notifications` | `false` | Show desktop notifications when command completes. |
-| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
-
-::: tip
-
-Showing desktop notifications requires starship to be built with `notify-rust` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
-
-:::
+| Параметр | По умолчанию | Описание |
+| ---------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `min_time` | `2_000` | Кратчайшая продолжительность для показа времени (в миллисекундах). |
+| `show_milliseconds` | `false` | Показывать миллисекунды в дополнение к секундам в продолжительности. |
+| `format` | `"took [$duration]($style) "` | Формат модуля. |
+| `style` | `"bold yellow"` | Стиль модуля. |
+| `disabled` | `false` | Отключает модуль `cmd_duration`. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+| `notification_timeout` | | Duration to show notification for (in milliseconds). If unset, notification timeout will be determined by daemon. Not all notification daemons honor this option. |
### Переменные
@@ -591,7 +586,7 @@ Showing desktop notifications requires starship to be built with `notify-rust` s
| duration | `16m40s` | The time it took to execute the command |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
### Пример
@@ -607,9 +602,9 @@ format = "underwent [$duration](bold yellow)"
The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
-::: tip
+::: tip Подсказка
-This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
+Это не подавляет модификатор командной строки самой conda. Возможно, вы захотите запустить `conda config --set changeps1 False`.
:::
@@ -632,7 +627,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
### Пример
@@ -643,6 +638,38 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
format = "[$symbol$environment](dimmed green) "
```
+## Container
+
+The `container` module displays a symbol and container name, if inside a container.
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| ---------- | ------------------------------------ | ----------------------------------------- |
+| `symbol` | `"⬢"` | The symbol shown, when inside a container |
+| `style` | `"bold red dimmed"` | Стиль модуля. |
+| `format` | "[$symbol \\[$name\\]]($style) " | Формат модуля. |
+| `disabled` | `false` | Disables the `container` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ---------- | ------------------- | ------------------------------------ |
+| name | `fedora-toolbox:35` | The name of the container |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
+
+*: Эта переменная может использоваться только в качестве части строки style
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+[container]
+format = "[$symbol \\[$name\\]]($style) "
+```
+
## Crystal
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
@@ -671,7 +698,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
### Пример
@@ -711,7 +738,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+*: Эта переменная может использоваться только в качестве части строки style
### Пример
@@ -725,6 +752,7 @@ format = "via [🔰 $version](bold red) "