summaryrefslogtreecommitdiffstats
path: root/docs/ru-RU
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ru-RU')
-rw-r--r--docs/ru-RU/advanced-config/README.md24
-rw-r--r--docs/ru-RU/config/README.md3
-rw-r--r--docs/ru-RU/faq/README.md36
-rw-r--r--docs/ru-RU/guide/README.md66
-rw-r--r--docs/ru-RU/installing/README.md2
5 files changed, 77 insertions, 54 deletions
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index 005fff03a..33c25f813 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=<value>`:
+
+The \<value\> here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Пример
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 5aeb02e1d..196a4989d 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ru-RU/faq/README.md b/docs/ru-RU/faq/README.md
index 6fe2f96c7..d030c244f 100644
--- a/docs/ru-RU/faq/README.md
+++ b/docs/ru-RU/faq/README.md
@@ -10,9 +10,9 @@
- **Конфигурация**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- **Подсказка**: [Starship](https://starship.rs/)
-## How do I get command completion as shown in the demo GIF?
+## Как мне получить автодополнение команд, как показано на демонстрационной GIF?
-Completion support, or autocomplete, is provided by your shell of choice. In the case of the demo, the demo was done with [Fish Shell](https://fishshell.com/), which provides completions by default. If you use Z Shell (zsh), I'd suggest taking a look at [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
+Автодополнение команд обеспечивается выбранной вами оболочкой. В данном случае, демо было выполнено с [Fish Shell](https://fishshell.com/), которая обеспечивает дополнения по умолчанию. Если вы используете Z Shell (zsh), я бы посоветовал взглянуть на [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
## Do top level `format` and `<module>.disabled` do the same thing?
@@ -21,7 +21,7 @@ Completion support, or autocomplete, is provided by your shell of choice. In the
- Disabling modules is more explicit than omitting them from the top level `format`
- Новосозданные модули будут добавлены в подсказку по мере обновления Starship
-## The docs say Starship is cross-shell. Why isn't my preferred shell supported?
+## Доки говорят, что Starship поддерживается на всех оболочках *(cross-shell)*. Почему моя любимая оболочка не поддерживается?
Starship устроен так, что есть возможность добавить поддержку практически любой оболочки. Бинарный файл Starship не зависит от оболочки и не имеет состояния, так что если ваша оболочка поддерживает расширение подстрок и настройку подсказки, то Starship может быть использован.
@@ -56,15 +56,15 @@ starship prompt --help
curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
```
-## Why do I see `Executing command "..." timed out.` warnings?
+## Почему я вижу предупреждение `Executing command "..." timed out.`?
-Starship executes different commands to get information to display in the prompt, for example the version of a program or the current git status. To make sure starship doesn't hang while trying to execute these commands we set a time limit, if a command takes longer than this limit starship will stop the execution of the command and output the above warning, this is expected behaviour. This time limit is configurable using the [`command_timeout`key](/config/#prompt) so if you want you can increase the time limit. You can also follow the debugging steps below to see which command is being slow and see if you can optimise it. Finally you can set the `STARSHIP_LOG` env var to `error` to hide these warnings.
+Starship выполняет различные команды, чтобы получить информацию, отображаемую в промпте, например версию программы или текущий git status. Чтобы быть уверенными, что starship не зависнет во время выполнения этих команд, мы поставили лимит времени, и если команда выполняется дольше лимита, starship прекратит её выполнение и выведет это предупреждение, это нормальное поведение. Временной лимит можно изменить с помощью опции [`command_timeout`key](/config/#prompt), поэтому при желании вы можете увеличить это время. Вы так же можете следовать шагам для отладки ниже, чтобы понять, какая команда влияет на время и ускорить промпт. Наконец, вы можете изменить переменную окружения `STARSHIP_LOG` `error`, чтобы спрятать это предупреждение.
-## I see symbols I don't understand or expect, what do they mean?
+## Я вижу символы, которые я не понимаю или не ожидаю, что они означают?
-If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+Если вы видите символы, которые вы не узнаете, вы можете использовать команду `starship explain`, чтобы разъяснить показываемые модули.
-## Starship is doing something unexpected, how can I debug it?
+## Starship делает что-то неожиданное, как я могу отладить его?
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
@@ -86,24 +86,24 @@ Finally if you find a bug you can use the `bug-report` command to create a GitHu
starship bug-report
```
-## Why don't I see a glyph symbol in my prompt?
+## Почему я не вижу символ в промпте?
-The most common cause of this is system misconfiguration. Some Linux distros in particular do not come with font support out-of-the-box. You need to ensure that:
+Наиболее распространенной причиной этого является неправильная конфигурация системы. В частности, некоторые Linux дистрибутивы не предоставляют поддержку шрифта из коробки. Необходимо убедиться, что:
- Your locale is set to a UTF-8 value, like `de_DE.UTF-8` or `ja_JP.UTF-8`. If `LC_ALL` is not a UTF-8 value, [you will need to change it](https://www.tecmint.com/set-system-locales-in-linux/).
- You have an emoji font installed. Most systems come with an emoji font by default, but some (notably Arch Linux) do not. You can usually install one through your system's package manager--[noto emoji](https://www.google.com/get/noto/help/emoji/) is a popular choice.
-- You are using a [Nerd Font](https://www.nerdfonts.com/).
+- Вы используете [Nerd Font](https://www.nerdfonts.com/).
-To test your system, run the following commands in a terminal:
+Для тестирования системы запустите следующие команды в терминале:
```sh
echo -e "\xf0\x9f\x90\x8d"
echo -e "\xee\x82\xa0"
```
-The first line should produce a [snake emoji](https://emojipedia.org/snake/), while the second should produce a [powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs).
+Первая строка должна создать [эмоджи змеи](https://emojipedia.org/snake/), а вторая - символ ветки [(e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs).
-If either symbol fails to display correctly, your system is still misconfigured. Unfortunately, getting font configuration correct is sometimes difficult. Users on the Discord may be able to help. If both symbols display correctly, but you still don't see them in starship, [file a bug report!](https://github.com/starship/starship/issues/new/choose)
+Если любой из символов не отображается корректно, ваша система все еще неправильно настроена. К сожалению, иногда сложно получить правильную конфигурацию шрифта. Пользователи в Discord могут помочь. Если оба символа отображаются верно, но вы всё ещё не видите их в starship, [отправьте bug report!](https://github.com/starship/starship/issues/new/choose)
## Как удалить Starship?
@@ -121,10 +121,10 @@ If Starship was installed using the install script, the following command will d
sh -c 'rm "$(command -v 'starship')"'
```
-## How do I install Starship without `sudo`?
+## Как Starship без `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+Скрипт установки (`https://starship.rs/install. h`) использует `sudo` только если директория установки недоступна для записи текущим пользователем. Директория установки по умолчанию это значение переменной окружения `$BIN_DIR` или `/usr/local/bin`, если `$BIN_DIR` не установлен. Если вместо этого выбрать директорию установки, которая доступна для записи пользователем, вы можете установить starship без `sudo`. Например, в `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` флаг `-b` установочного скрипта используется, чтобы задать директорию установки на `~/.local/bin`.
-For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+Для неинтерактивной установки Starship не забудьте добавить опцию `-y` чтобы пропустить подтверждение. Проверьте исходник установочного скрипта, чтобы получить список всех поддерживаемых параметров установки.
-When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
+При через пакетный менеджер, смотрите документацию для вашего пакетного менеджера об установке с `sudo` и без.
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index 5795e781d..66a2794e5 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -180,18 +180,18 @@
### Обязательные требования
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (for example, try the [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)).
+- Установленный и включенный в вашем терминале [Nerd Font](https://www.nerdfonts.com/) (например, попробуйте [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)).
### Шаг 1. Установите Starship
-Select your operating system from the list below to view installation instructions:
+Выберите вашу операционную систему из списка ниже для просмотра инструкций по установке:
<details>
<summary>Android</summary>
-Install Starship using any of the following package managers:
+Установите Starship с помощью любого из следующих менеджеров пакетов:
-| Repository | Instructions |
+| Репозиторий | Команда |
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` |
@@ -200,32 +200,32 @@ Install Starship using any of the following package managers:
<details>
<summary>BSD</summary>
-Install Starship using any of the following package managers:
+Установите Starship с помощью любого из следующих менеджеров пакетов:
-| Distribution | Repository | Instructions |
-| ------------ | -------------------------------------------------------- | --------------------------------- |
-| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
-| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
-| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
+| Дистрибутив | Репозиторий | Команда |
+| ----------- | -------------------------------------------------------- | --------------------------------- |
+| **_Любой_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
+| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
+| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
</details>
<details>
<summary>Linux</summary>
-Install the latest version for your system:
+Установите последнюю версию для вашей системы:
```sh
curl -sS https://starship.rs/install.sh | sh
```
-Alternatively, install Starship using any of the following package managers:
+Или же установите Starship с помощью любого из следующих пакетных менеджеров:
-| Distribution | Repository | Instructions |
+| Дистрибутив | Репозиторий | Команда |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
-| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
-| _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
-| _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
+| **_Любой_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
+| _Любой_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
+| _Любой_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` |
@@ -240,15 +240,15 @@ Alternatively, install Starship using any of the following package managers:
<details>
<summary>macOS</summary>
-Install the latest version for your system:
+Установите последнюю версию для вашей системы:
```sh
curl -sS https://starship.rs/install.sh | sh
```
-Alternatively, install Starship using any of the following package managers:
+Или же установите Starship с помощью любого из следующих пакетных менеджеров:
-| Repository | Instructions |
+| Репозиторий | Команда |
| -------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
@@ -262,9 +262,9 @@ Alternatively, install Starship using any of the following package managers:
Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
-Install Starship using any of the following package managers:
+Установите Starship с помощью любого из следующих менеджеров пакетов:
-| Repository | Instructions |
+| Репозиторий | Команда |
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` |
@@ -274,9 +274,9 @@ Install Starship using any of the following package managers:
</details>
-### Шаг 2. Set up your shell to use Starship
+### Шаг 2. Настройте оболочку для использования Starship
-Configure your shell to initialize starship. Select yours from the list below:
+Настройте оболочку для инициализации starship. Выберете вашу оболочку из списка:
<details>
<summary>Bash</summary>
@@ -292,7 +292,7 @@ eval "$(starship init bash)"
<details>
<summary>Cmd</summary>
-You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
+Вам нужно использовать [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) с Cmd. Создайте файл по этому пути `%LocalAppData%\clink\starship.lua` со следующим содержанием:
```lua
load(io.popen('starship init cmd'):read("*a"))()
@@ -309,7 +309,7 @@ load(io.popen('starship init cmd'):read("*a"))()
eval (starship init elvish)
```
-Note: Only Elvish v0.18+ is supported
+Примечание: поддерживается только Elvish v0.18+
</details>
@@ -399,15 +399,15 @@ eval "$(starship init zsh)"
</details>
-### Шаг 3. Configure Starship
+### Шаг 3. Настройте Starship
-Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy!
+Запустите новую сессию оболочки, и вы увидите ваш новый прекрасный промпт. Если вы довольны с настройками по умолчанию, наслаждайтесь!
-If you're looking to further customize Starship:
+Если вы хотите детальнее настроить Starship:
-- **[Configuration](https://starship.rs/config/)** – learn how to configure Starship to tweak your prompt to your liking
+- **[Конфигурация](https://starship.rs/config/)** – узнайте, как настраивать Starship, чтобы подкорректировать промпт на ваш вкус
-- **[Presets](https://starship.rs/presets/)** – get inspired by the pre-built configuration of others
+- **[Пресеты](https://starship.rs/presets/)** – вдохновиться готовой конфигурацией других
## 🤝 Помощь
@@ -421,15 +421,15 @@ If you're looking to further customize Starship:
Пожалуйста, ознакомьтесь с этими предыдущими работами, которые помогли вдохновить создание Starship. 🙏
-- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – A ZSH prompt for astronauts.
+- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – ZSH промпт для космонавтов.
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript.
- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
-## ❤️ Sponsors
+## ❤️ Спонсоры
-Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт.
**Supporter Tier**
diff --git a/docs/ru-RU/installing/README.md b/docs/ru-RU/installing/README.md
index 25615b144..3c5aeaa54 100644
--- a/docs/ru-RU/installing/README.md
+++ b/docs/ru-RU/installing/README.md
@@ -1,4 +1,4 @@
-# Advanced Installation
+# Продвинутая установка
To install starship, you need to do two things: