Files
starship/docs/ru-RU/guide/README.md
T

428 lines
17 KiB
Markdown
Raw Normal View History

<p align="center">
2020-04-03 12:35:39 -04:00
<img
width="400"
src="https://raw.githubusercontent.com/starship/starship/master/media/logo.png"
2022-03-24 15:47:11 -05:00
alt="Starship - подсказка для всех оболочек"
2021-03-15 13:18:42 -04:00
/>
</p>
2020-04-03 12:35:39 -04:00
<p align="center">
2019-10-11 17:31:19 +09:00
<a href="https://github.com/starship/starship/actions"
><img
2020-04-03 12:35:39 -04:00
src="https://img.shields.io/github/workflow/status/starship/starship/Main workflow/master?label=workflow&style=flat-square"
2022-03-24 15:47:11 -05:00
alt="GitHub Actions workflow status"
2021-03-15 13:18:42 -04:00
/></a>
2019-10-11 17:31:19 +09:00
<a href="https://crates.io/crates/starship"
2020-04-03 12:35:39 -04:00
><img
src="https://img.shields.io/crates/v/starship?style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Версия Crates.io"
/></a>
2019-10-11 17:31:19 +09:00
<a href="https://repology.org/project/starship/versions"
><img
2020-04-03 12:35:39 -04:00
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories&style=flat-square"
2022-03-24 15:47:11 -05:00
alt="Packaging status" /></a
><br />
2021-02-21 14:13:18 -05:00
<a href="https://discord.gg/starship"
2019-10-11 17:31:19 +09:00
><img
2020-04-03 12:35:39 -04:00
src="https://img.shields.io/discord/567163873606500352?label=discord&logoColor=white&style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Чат в Discord"
/></a>
2020-04-03 12:35:39 -04:00
<a href="https://twitter.com/StarshipPrompt"
><img
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
2021-03-15 13:18:42 -04:00
alt="Подпишитесь на @StarshipPrompt в Twitter"
/></a>
</p>
2019-10-11 17:31:19 +09:00
2020-04-03 12:35:39 -04:00
<p align="center">
2019-12-14 18:46:45 -05:00
<a href="https://starship.rs">Сайт</a>
·
<a href="#🚀-installation">Установка</a>
·
2019-12-14 18:46:45 -05:00
<a href="https://starship.rs/config/">Конфигурация</a>
2020-04-03 12:35:39 -04:00
</p>
2019-10-11 17:31:19 +09:00
<p align="center">
<a href="https://github.com/starship/starship/blob/master/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
2021-03-15 13:18:42 -04:00
alt="English"
/></a>
2019-12-06 17:07:57 -05:00
&nbsp;
2020-04-03 12:35:39 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/de-DE/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-de.png"
alt="Deutsch"
2021-03-15 13:18:42 -04:00
/></a>
2019-12-06 17:07:57 -05:00
&nbsp;
2020-04-03 12:35:39 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/es-ES/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-es.png"
alt="Español"
2021-03-15 13:18:42 -04:00
/></a>
2019-12-06 17:07:57 -05:00
&nbsp;
2020-04-03 12:35:39 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/fr-FR/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
2022-01-15 17:08:31 -05:00
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/id-ID/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-id.png"
alt="Bahasa Indonesia"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/it-IT/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-it.png"
alt="Italiano"
2021-03-15 13:18:42 -04:00
/></a>
2020-01-21 11:15:25 -05:00
&nbsp;
2020-04-03 12:35:39 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/ja-JP/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-jp.png"
alt="日本語"
2021-03-15 13:18:42 -04:00
/></a>
2020-01-23 11:27:26 -05:00
&nbsp;
2020-04-03 12:35:39 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/pt-BR/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-br.png"
alt="Português do Brasil"
2021-03-15 13:18:42 -04:00
/></a>
2019-12-06 17:07:57 -05:00
&nbsp;
2021-04-05 10:55:57 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/ru-RU/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-ru.png"
alt="Русский"
2021-03-15 13:18:42 -04:00
/></a>
2020-01-15 12:23:25 -05:00
&nbsp;
2021-04-05 10:55:57 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/vi-VN/guide/README.md"
2020-04-03 12:35:39 -04:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-vn.png"
alt="Tiếng Việt"
2021-03-15 13:18:42 -04:00
/></a>
2021-02-06 12:46:15 -05:00
&nbsp;
2021-04-05 10:55:57 -04:00
<a
2021-09-21 09:36:29 -04:00
href="https://github.com/starship/starship/blob/master/docs/zh-CN/guide/README.md"
2021-02-06 12:46:15 -05:00
><img
height="20"
2021-09-21 09:36:29 -04:00
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-cn.png"
alt="简体中文"
/></a>
&nbsp;
<a
href="https://github.com/starship/starship/blob/master/docs/zh-TW/guide/README.md"
><img
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-tw.png"
alt="繁體中文"
2021-03-15 13:18:42 -04:00
/></a>
2019-10-11 17:31:19 +09:00
</p>
2022-03-24 15:47:11 -05:00
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
<h1></h1>
2020-04-03 12:35:39 -04:00
<img
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
2022-04-18 09:48:28 -05:00
alt="Starship в iTerm2 с темой Snazzy"
2020-04-03 12:35:39 -04:00
width="50%"
2021-03-15 13:18:42 -04:00
align="right"
/>
2020-04-03 12:35:39 -04:00
2020-11-28 23:45:59 -05:00
**Минималистичная, быстрая и бесконечно настраиваемая командная строка для любой оболочки!**
2020-04-03 12:35:39 -04:00
- **Быстрая:** она быстрая – _очень-очень_ быстрая! 🚀
- **Настраиваемая:** настройте каждый элемент вашей командной строки.
- **Универсальная:** работает с любой оболочкой, на любой операционной системе.
- **Умная:** сразу показывает соответствующую информацию.
2022-01-15 17:08:31 -05:00
- **Много функций:** поддержка всех ваших любимых инструментов.
- **Легкая:** быстрая установка - начните использовать ее в считанные минуты.
<p align="center">
2022-04-18 09:48:28 -05:00
<a href="https://starship.rs/config/"><strong>Изучите документацию Starship&nbsp;&nbsp;▶</strong></a>
</p>
<a name="🚀-installation"></a>
2019-12-24 16:54:29 -05:00
## 🚀 Установка
2022-01-15 17:08:31 -05:00
### Обязательные требования
2020-11-28 23:45:59 -05:00
- Установленный и включённый [шрифт Powerline](https://www.nerdfonts.com/) (например, [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
2022-03-08 21:11:36 -05:00
### Шаг 1. Установите Starship
2022-02-07 15:53:55 +01:00
Select your operating system from the list below to view installation instructions:
2021-01-07 18:08:18 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Android</summary>
2022-02-07 15:53:55 +01:00
Install Starship using any of the following package managers:
2022-02-07 15:53:55 +01:00
| Repository | Instructions |
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>BSD</summary>
2022-02-07 15:53:55 +01:00
Install Starship using any of the following package managers:
2021-06-20 14:10:36 -04:00
2022-02-07 15:53:55 +01:00
| 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` |
2021-06-20 14:10:36 -04:00
2022-02-07 15:53:55 +01:00
</details>
2021-06-20 14:10:36 -04:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Linux</summary>
2022-02-07 15:53:55 +01:00
Install the latest version for your system:
2022-02-07 15:53:55 +01:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2022-02-07 15:53:55 +01:00
```
2022-02-07 15:53:55 +01:00
Alternatively, install Starship using any of the following package managers:
2022-02-07 15:53:55 +01:00
| 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` |
| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/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` |
| Fedora 31+ | [Fedora Packages](https://src.fedoraproject.org/rpms/rust-starship) | `dnf install starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixos.starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>macOS</summary>
2022-02-07 15:53:55 +01:00
Install the latest version for your system:
2022-02-07 15:53:55 +01:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2022-02-07 15:53:55 +01:00
```
2022-02-07 15:53:55 +01:00
Alternatively, install Starship using any of the following package managers:
2022-02-07 15:53:55 +01:00
| 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` |
| [Homebrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| [MacPorts](https://ports.macports.org/port/starship) | `port install starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Windows</summary>
2022-06-16 08:48:50 -04:00
Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
2022-02-07 15:53:55 +01:00
Install Starship using any of the following package managers:
2022-02-07 15:53:55 +01:00
| Repository | Instructions |
| -------------------------------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| [Scoop](https://github.com/ScoopInstaller/Main/blob/master/bucket/starship.json) | `scoop install starship` |
2022-02-07 15:53:55 +01:00
</details>
2022-03-08 21:11:36 -05:00
### Шаг 2. Setup your shell to use Starship
2022-02-07 15:53:55 +01:00
Configure your shell to initialize starship. Select yours from the list below:
2022-02-07 15:53:55 +01:00
<details>
<summary>Bash</summary>
2022-02-07 15:53:55 +01:00
Добавьте следующее в конец `~/.bashrc`:
2022-02-07 15:53:55 +01:00
```sh
eval "$(starship init bash)"
```
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Cmd</summary>
2022-02-07 15:53:55 +01:00
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:
2022-02-07 15:53:55 +01:00
```lua
load(io.popen('starship init cmd'):read("*a"))()
```
2022-02-07 15:53:55 +01:00
</details>
2022-02-07 15:53:55 +01:00
<details>
<summary>Elvish</summary>
2022-02-07 15:53:55 +01:00
Добавьте следующую строку в конец `~/.elvish/rc.elv`:
2022-02-07 15:53:55 +01:00
```sh
eval (starship init elvish)
```
2022-04-18 09:48:28 -05:00
Note: Only Elvish v0.18+ is supported
2019-12-14 18:46:45 -05:00
2022-02-07 15:53:55 +01:00
</details>
2019-12-14 18:46:45 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Fish</summary>
2019-12-14 18:46:45 -05:00
2022-02-07 15:53:55 +01:00
Добавьте следующее в конец `~/.config/fish/config.fish`:
2019-12-14 18:46:45 -05:00
2022-02-07 15:53:55 +01:00
```fish
starship init fish | source
```
2019-12-14 18:46:45 -05:00
2022-02-07 15:53:55 +01:00
</details>
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Ion</summary>
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
Добавьте следующее в конец `~/.config/ion/initrc`:
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
```sh
eval $(starship init ion)
```
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
</details>
2021-02-06 12:46:15 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Nushell</summary>
2021-03-15 13:18:42 -04:00
2022-05-24 17:19:44 -04:00
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
2021-03-15 13:18:42 -04:00
2022-03-24 15:47:11 -05:00
```sh
mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu
2022-02-07 15:53:55 +01:00
```
2021-03-15 13:18:42 -04:00
2022-03-24 15:47:11 -05:00
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
```sh
source ~/.cache/starship/init.nu
```
2022-05-24 17:19:44 -04:00
Note: Only Nushell v0.61+ is supported
2022-03-24 15:47:11 -05:00
2022-02-07 15:53:55 +01:00
</details>
2021-03-15 13:18:42 -04:00
2022-02-07 15:53:55 +01:00
<details>
<summary>PowerShell</summary>
2021-03-15 13:18:42 -04:00
2022-02-07 15:53:55 +01:00
Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`):
2021-07-10 17:15:23 -04:00
2022-02-07 15:53:55 +01:00
```powershell
Invoke-Expression (&starship init powershell)
```
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
</details>
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Tcsh</summary>
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
Добавьте следующее в конец `~/.tcshrc`:
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
```sh
eval `starship init tcsh`
```
2021-08-14 09:24:51 -04:00
2022-02-07 15:53:55 +01:00
</details>
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Xonsh</summary>
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
Добавьте следующее в конец `~/.xonshrc`:
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
```python
execx($(starship init xonsh))
```
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
</details>
2022-01-15 17:08:31 -05:00
2022-02-07 15:53:55 +01:00
<details>
<summary>Zsh</summary>
2021-07-10 17:15:23 -04:00
2022-02-07 15:53:55 +01:00
Добавьте следующее в конец `~/.zshrc`:
2021-07-10 17:15:23 -04:00
2022-02-07 15:53:55 +01:00
```sh
eval "$(starship init zsh)"
```
</details>
2022-03-08 21:11:36 -05:00
### Шаг 3. Configure Starship
2022-02-07 15:53:55 +01:00
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:
- **[Configuration](https://starship.rs/config/)** learn how to configure Starship to tweak your prompt to your liking
- **[Presets](https://starship.rs/presets/)** get inspired by the pre-built configuration of others
2021-07-10 17:15:23 -04:00
2019-12-24 16:54:29 -05:00
## 🤝 Помощь
2022-04-18 09:48:28 -05:00
Мы всегда ищем помощников **всех уровней навыков**! Если вы хотите облегчить свой путь к проекту, попробуйте [хорошие первые задачи](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).
2022-04-18 09:48:28 -05:00
Если Вы свободно владеете иностранным языком отличным от английского, мы высоко оценим любую помощь в переводе нашей документации на другие языки и поддержании ее в актуальном состоянии. Если вы хотите помочь, переводы могут быть сделаны на платформе [Starship Crowdin](https://translate.starship.rs/).
2021-01-03 03:56:07 -05:00
2022-04-18 09:48:28 -05:00
Если вы хотите помочь в создании Starship, пожалуйста, ознакомьтесь с нашим [Руководством по содействию](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Кроме того, заходите на наш [Discord сервер](https://discord.gg/8Jzqu3T) и поздоровайтесь. 👋
2022-03-24 15:47:11 -05:00
## 💭 Вдохновение
2022-04-18 09:48:28 -05:00
Пожалуйста, ознакомьтесь с этими предыдущими работами, которые помогли вдохновить создание Starship. 🙏
2022-02-07 15:53:55 +01:00
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** A ZSH prompt for astronauts.
2022-02-07 15:53:55 +01:00
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** Cross-shell robbyrussell theme written in JavaScript.
2022-02-07 15:53:55 +01:00
- **[reujab/silver](https://github.com/reujab/silver)** A cross-shell customizable powerline-like prompt with icons.
<p align="center">
<br>
2022-04-18 09:48:28 -05:00
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Иконка ракеты Starship">
</p>
2019-12-24 16:54:29 -05:00
## 📝 Лицензия
2022-04-18 09:48:28 -05:00
Авторское право © 2019-настоящее, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).<br /> Этот проект [ISC](https://github.com/starship/starship/blob/master/LICENSE) лицензирован.