home, heroImage, heroText, tagline, actionText, actionLink, features, footer, metaTitle, description
| home | heroImage | heroText | tagline | actionText | actionLink | features | footer | metaTitle | description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| true | /logo.svg | Минималистичная, быстрая и бесконечно настраиваемая командная строка для любой оболочки! | Начало работы → | ./guide/ |
|
Под лицензией ISC | Авторское право © 2019-настоящее Starship Contributors | Starship: Cross-Shell Prompt | Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. |
Обязательные требования
- Установленный и включенный шрифт Nerd Font в вашем терминале.
Быстрая установка
-
Установите двоичный файл starship:
Установить последнюю версию
Через Bash:
curl -sS https://starship.rs/install.sh | shДля обновления Starship перезапустите этот скрипт. Он заменит текущую версию без изменения конфигурации.
Установить через менеджер пакетов
С Homebrew:
brew install starshipWith Winget:
winget install starship -
Добавить сценарий инициализации в конфигурационный файл вашей оболочки:
Bash
Добавьте следующее в конец
~/.bashrc:# ~/.bashrc eval "$(starship init bash)"Fish
Добавьте следующее в конец
~/.config/fish/config.fish:# ~/.config/fish/config.fish starship init fish | sourceZsh
Добавьте следующее в конец
~/.zshrc:# ~/.zshrc eval "$(starship init zsh)"PowerShell
Добавьте следующее в конец
Microsoft.PowerShell_profile.ps1. Вы можете узнать расположение этого файла, запросив переменную$PROFILEв PowerShell. Обычно он находится в~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1или~/.config/powershell/Microsoft.PowerShell_profile.ps1на -Nix.Invoke-Expression (&starship init powershell)Ion
Добавьте следующее в конец
~/.config/ion/initrc:# ~/.config/ion/initrc eval $(starship init ion)Elvish
::: warning
Only elvish v0.18 or higher is supported.
:::
Добавьте следующую строку в конец
~/.elvish/rc.elv:# ~/.elvish/rc.elv eval (starship init elvish)Tcsh
Добавьте следующее в конец
~/.tcshrc:# ~/.tcshrc eval `starship init tcsh`Nushell
::: warning
This will change in the future. Only Nushell v0.73+ is supported.
:::
Add the following to the end of your Nushell env file (find it by running
$nu.env-pathin Nushell):mkdir ~/.cache/starship starship init nu | save -f ~/.cache/starship/init.nuAnd add the following to the end of your Nushell configuration (find it by running
$nu.config-path):source ~/.cache/starship/init.nuXonsh
Добавьте следующее в конец
~/.xonshrc:# ~/.xonshrc execx($(starship init xonsh))Cmd
You need to use Clink (v1.2.30+) with Cmd. Add the following to a file
starship.luaand place this file in Clink scripts directory:-- starship.lua load(io.popen('starship init cmd'):read("*a"))()