summaryrefslogtreecommitdiffstats
path: root/docs/ru-RU
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ru-RU')
-rw-r--r--docs/ru-RU/README.md13
-rw-r--r--docs/ru-RU/config/README.md67
-rw-r--r--docs/ru-RU/guide/README.md14
3 files changed, 81 insertions, 13 deletions
diff --git a/docs/ru-RU/README.md b/docs/ru-RU/README.md
index a5766810c..41092d399 100644
--- a/docs/ru-RU/README.md
+++ b/docs/ru-RU/README.md
@@ -138,3 +138,16 @@ description: Starship - минимальная, быстрая и бесконе
eval `starship init tcsh`
```
+
+ #### 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.
+
+ ```toml
+ startup = [
+ "mkdir ~/.cache/starship",
+ "starship init nu | save ~/.cache/starship/init.nu",
+ "source ~/.cache/starship/init.nu"
+ ]
+ prompt = "starship_prompt"
+ ```
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 1dd392990..84b177050 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -102,7 +102,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
Например:
-- `(@$region)` ничего не будет показывать, если переменная `регион` в значении `None`, иначе `@` будет использовать значение этой переменной.
+- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
- `(некоторый текст)` всегда не показывает ничего, поскольку в скобках нет переменных.
- Когда `$all` является ярлыком для `\[$a$b\]`, `($all)` будет показываться только если `$a` и `$b` не являются `None`. Это работает так же, как `(\[$a$b\] )`.
@@ -185,6 +185,7 @@ $vcsh\
$git_branch\
$git_commit\
$git_state\
+$git_metrics\
$git_status\
$hg_branch\
$docker_context\
@@ -391,7 +392,7 @@ By default it only changes color. If you also want to change its shape take a lo
::: warning
-`error_symbol` is not supported on elvish shell.
+`error_symbol` is not supported on elvish and nu shell.
:::
@@ -745,7 +746,7 @@ truncation_symbol = "…/"
## Контекст Docker
-Модуль `docker_context` показывает текущий активный [контекст Docker](https://docs.docker.com/engine/context/working-with-contexts/), если он не установлен как `default`.
+The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
### Опции
@@ -804,7 +805,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
| Параметр | По умолчанию | Описание |
| ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | Формат модуля. |
+| `format` | `"via [$symbol($version )(🎯 $tfm )]($style)"` | Формат модуля. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `".NET "` | Символ перед отображением текущей версии dotnet. |
| `heuristic` | `true` | Использовать быстрое определение версии, для сохранения скорости. |
@@ -1169,6 +1170,46 @@ format = '[\($state( $progress_current of $progress_total)\)]($style) '
cherry_pick = "[🍒 PICKING](bold red)"
```
+## Git Metrics
+
+The `git_metrics` module will show the number of added and deleted lines in the current git repository.
+
+::: tip
+
+По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+
+:::
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| --------------- | -------------------------------------------------------- | ---------------------------------- |
+| `added_style` | `"bold green"` | The style for the added count. |
+| `deleted_style` | `"bold red"` | The style for the deleted count. |
+| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | Формат модуля. |
+| `disabled` | `true` | Disables the `git_metrics` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ----------------- | ------ | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+\*: Эта переменная может использоваться только в качестве части строки style
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+[git_metrics]
+added_style = "bold blue"
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Статус Git
Модуль `git_status` отображает символы, представляющие состояние репозитория в вашей текущей директории.
@@ -1342,13 +1383,13 @@ format = "via [⎈ $version](bold white) "
### Опции
-| Параметр | По умолчанию | Описание |
-| ---------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Показывать имя хоста только при подключении к SSH-сессии. |
-| `trim_at` | `"."` | Символы, по которую имя хоста будет сокращено после первого совпадения. `"."` остановится после первой точки. `""` отключит любое усечение |
-| `format` | `"[$hostname]($style) in "` | Формат модуля. |
-| `style` | `"bold dimmed green"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `hostname`. |
+| Параметр | По умолчанию | Описание |
+| ---------- | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Показывать имя хоста только при подключении к SSH-сессии. |
+| `trim_at` | `"."` | Строка, по которую имя хоста будет сокращено после первого совпадения. `"."` остановится после первой точки. `"` отключит любое усечение |
+| `format` | `"[$hostname]($style) in "` | Формат модуля. |
+| `style` | `"bold dimmed green"` | Стиль модуля. |
+| `disabled` | `false` | Отключает модуль `hostname`. |
### Переменные
@@ -1416,7 +1457,7 @@ symbol = "🌟 "
::: warning
-This module is not supported on tcsh.
+This module is not supported on tcsh and nu.
:::
@@ -2505,7 +2546,7 @@ The `status` module displays the exit code of the previous command. The module w
:::
-::: warning This module is not supported on elvish shell. :::
+::: warning This module is not supported on elvish and nu shell. :::
### Опции
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index e51a22595..2e4e4a11d 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -263,6 +263,20 @@
eval `starship init tcsh`
```
+
+ #### 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.
+
+ ```toml
+ startup = [
+ "mkdir ~/.cache/starship",
+ "starship init nu | save ~/.cache/starship/init.nu",
+ "source ~/.cache/starship/init.nu"
+ ]
+ prompt = "starship_prompt"
+ ```
+
## 🤝 Помощь
Мы всегда ищем помощь людей **всех уровней навыков**! Если вы хотите облегчить свой путь к проекту, посмотрите хорошие первые ошибки ([first good issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)).