Skip to content

Latest commit

 

History

History
466 lines (357 loc) · 18.2 KB

File metadata and controls

466 lines (357 loc) · 18.2 KB

Starship – Cross-shell prompt

Статус дій GitHub Версія Crates.io Стан пакування
Чат в Discord Слідкуйте за @StarshipPrompt на Twitter Підтримуйте Україну

Вебсайт · Встановлення · Налаштування

English   Deutsch   Español   Français   Bahasa Indonesia   Italiano   日本語   Português do Brasil   Русский   Українська   Tiếng Việt   简体中文   繁體中文

Warning

The default branch has been renamed from master to main. If you have a local clone, update it by running:

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a

Starship with iTerm2 and the Snazzy theme

The minimal, blazing-fast, and infinitely customizable prompt for any shell!

  • Fast: it's fast – really really fast! 🚀
  • Customizable: configure every aspect of your prompt.
  • Universal: works on any shell, on any operating system.
  • Intelligent: shows relevant information at a glance.
  • Feature rich: support for all your favorite tools.
  • Easy: quick to install – start using it in minutes.

Explore the Starship docs  ▶

Передумови

Передумови

Крок 1. Встановіть Starship

Оберіть вашу операційну систему зі списку нижче для ознайомлення з інструкцією зі встановлення:

Android

Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:

Репозиторій Команда для встановлення
Termux pkg install starship
BSD

Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:

Дистрибутив Репозиторій Команда для встановлення
Any crates.io cargo install starship --locked
FreeBSD FreshPorts pkg install starship
NetBSD pkgsrc pkgin install starship
Linux

Встановіть останню версію для вашої системи:

curl -sS https://starship.rs/install.sh | sh

Як варіант, можете встановити Starship скориставшись будь-яким з наступних менеджерів пакунків:

Дистрибутив Репозиторій Команда для встановлення
Any crates.io cargo install starship --locked
Any conda-forge conda install -c conda-forge starship
Any Linuxbrew brew install starship
Alpine Linux 3.13+ Alpine Linux Packages apk add starship
Arch Linux Arch Linux Extra pacman -S starship
CentOS 7+ Copr dnf copr enable atim/starship
dnf install starship
Debian 13+ Debian Main apt install starship
Fedora 40+ Copr dnf copr enable atim/starship
dnf install starship
Gentoo Gentoo Packages emerge app-shells/starship
Manjaro pacman -S starship
NixOS nixpkgs nix-env -iA nixpkgs.starship
openSUSE OSS zypper in starship
Ubuntu 25.04+ Ubuntu Universe apt install starship
Void Linux Void Linux Packages xbps-install -S starship
macOS

Встановіть останню версію для вашої системи:

curl -sS https://starship.rs/install.sh | sh

Як варіант, можете встановити Starship скориставшись будь-яким з наступних менеджерів пакунків:

Репозиторій Команда для встановлення
crates.io cargo install starship --locked
conda-forge conda install -c conda-forge starship
Homebrew brew install starship
MacPorts port install starship
Windows

Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:

Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:

Репозиторій Команда для встановлення
crates.io cargo install starship --locked
Chocolatey choco install starship
conda-forge conda install -c conda-forge starship
Scoop scoop install starship
winget winget install --id Starship.Starship

Крок 2. Налаштуйте оболонку для використання Starship

Налаштуйте свою оболонку, щоб ініціалізувати starship. Виберіть ваш варіант зі списку:

Bash

Додайте наступний рядок наприкінці ~/.bashrc:

eval "$(starship init bash)"
Cmd

You need to use Clink (v1.2.30+) with Cmd. Create a file at this path %LocalAppData%\clink\starship.lua with the following contents:

load(io.popen('starship init cmd'):read("*a"))()
Elvish

Додайте наступне до кінця ~/.config/elvish/rc.elv (%AppData%\elvish\rc.elv у Windows):

eval (starship init elvish)

Примітка: Підтримується лише Elvish v0.18+. Для версії elvish до v0.21.0 файл конфігурації може бути ~/.elvish/rc.elv натомість

Fish

Додайте наступний рядок наприкінці ~/.config/fish/config.fish:

starship init fish | source
Ion

Додайте наступний рядок наприкінці ~/.config/ion/initrc:

eval $(starship init ion)
Nushell

Додайте наступний рядок наприкінці налаштувань Nushell (знайдіть її за допомоги $nu.config-path в Nushell):

mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")

Примітка: Підтримується лише Nushell v0.96+

PowerShell

Add the following to the end of your PowerShell configuration (find it by running $PROFILE):

Invoke-Expression (&starship init powershell)
Tcsh

Додайте наступний рядок наприкінці ~/.tcshrc:

eval `starship init tcsh`
Xonsh

Додайте наступний рядок наприкінці ~/.xonshrc:

execx($(starship init xonsh))
Zsh

Додайте наступний рядок наприкінці ~/.zshrc:

eval "$(starship init zsh)"

Крок 3. Налаштуйте starship

Запустіть новий екземпляр вашої оболонки і ви побачите новий яскравий командний рядок. Якщо ви задоволені налаштуваннями, насолоджуйтесь!

Якщо ви бажаєте додатково налаштувати Starship:

  • Configuration – learn how to configure Starship to tweak your prompt to your liking

  • Presets – get inspired by the pre-built configuration of others

🤝 Участь

We are always looking for contributors of all skill levels! If you're looking to ease your way into the project, try out a good first issue.

Якщо ви вільно володієте мовою відмінною від англійської, ми будемо дуже вдячні, якщо ви допоможете в перекладі документації та її підтримці в актуальному стані. If you would like to help, translations can be contributed on the Starship Crowdin.

If you are interested in helping contribute to starship, please take a look at our Contributing Guide. Also, feel free to drop into our Discord server and say hi. 👋

💭 Подяки

Будь ласка, перегляньте роботи, які надихнули на створення starship. 🙏

❤️ Спонсори

Support this project by becoming a sponsor. Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.

🔒 Політика Підпису коду

Ролі:

Ролі:

Ця програма не передаватиме жодної інформації до інших мережевих систем, якщо користувач або особа, яка її встановлює чи експлуатує, не зробить на це спеціального запиту.


Starship rocket icon

📝 Ліцензія

Copyright © 2019-present, Starship Contributors.
This project is ISC licensed.