starship/docs/ru-RU/README.md

117 lines
3.0 KiB
Markdown
Raw Normal View History

---
home: true
heroImage: /logo.svg
heroText: null
tagline: The cross-shell prompt for astronauts
2019-12-24 21:54:29 +00:00
actionText: Начало работы →
actionLink: ./guide/
2019-12-24 21:54:29 +00:00
footer: Под лицензией ISC | Авторское право © 2019-настоящее Starship Contributors
---
<div class="features">
<div class="feature">
2019-12-24 21:54:29 +00:00
<h2>Совместивость в первую очередь</h2>
<p>Работает на большинстве распространенных оболочек и наиболее распространенных операционных системах. Используйте везде!</p>
</div>
<div class="feature">
2019-12-24 21:54:29 +00:00
<h2>Основана на Rust</h2>
<p>Приносит наилучшую в своем классе скорость и безопасность Rust, чтобы сделать вашу подсказку как можно быстрее и надежнее.</p>
</div>
<div class="feature">
2019-12-24 21:54:29 +00:00
<h2>Настраиваемая</h2>
<p>Каждая маленькая деталь настраивается по вашему вкусу, чтобы сделать эту подсказку минимальной или функциональной, как вы захотите.</p>
</div>
</div>
<div class="center">
<video class="demo-video" muted autoplay loop playsinline>
<source src="/demo.webm" type="video/webm">
<source src="/demo.mp4" type="video/mp4">
</video>
</div>
2019-12-24 21:54:29 +00:00
### Быстрая установка
2019-12-24 21:54:29 +00:00
1. Установите двоичный файл **starship**:
2019-12-24 21:54:29 +00:00
#### Установить последнюю версию
2019-12-24 21:54:29 +00:00
Через Bash:
```sh
2019-12-24 21:54:29 +00:00
curl -fsSL https://starship.rs/install.sh | bash
```
2019-12-24 21:54:29 +00:00
#### Установить через менеджер пакетов
2019-12-24 21:54:29 +00:00
С [Homebrew](https://brew.sh/):
```sh
2019-12-24 21:54:29 +00:00
brew install starship
```
2019-12-24 21:54:29 +00:00
С [Scoop](https://scoop.sh):
2019-12-24 21:54:29 +00:00
```powershell
scoop install starship
```
2019-12-24 21:54:29 +00:00
1. Добавить сценарий инициализации в конфигурационный файл вашей оболочки:
#### Bash
2019-12-24 21:54:29 +00:00
Добавьте следующее в конец `~/.bashrc`:
```sh
# ~/.bashrc
eval "$(starship init bash)"
```
#### Fish
2019-12-24 21:54:29 +00:00
Добавьте следующее в конец `~/.config/fish/config.fish`:
```sh
# ~/.config/fish/config.fish
starship init fish | source
```
#### Zsh
2019-12-24 21:54:29 +00:00
Добавьте следующее в конец `~/.zshrc`:
```sh
# ~/.zshrc
eval "$(starship init zsh)"
```
2019-12-24 21:54:29 +00:00
#### PowerShell
2019-12-24 21:54:29 +00:00
Добавьте следующее в конец `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (или `~/.config/powershell/Microsoft.PowerShell_profile.ps1` на -Nix):
```sh
# ~\Documents\PowerShell\Profile.ps1
2019-12-24 21:54:29 +00:00
Invoke-Expression (&starship init powershell)
```
2019-12-24 21:54:29 +00:00
#### Ion
Добавьте следующее в конец `~/.config/ion/initrc`:
```sh
# ~/.config/ion/initrc
eval $(starship init ion)
```