Сумісність на першому місці
Працює з більшістю оболонок у всіх популярних операційних системах. Можна використовувати будь-де!
Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки!
Встановіть starship:
З оболонки:
curl -sS https://starship.rs/install.sh | shДля оновлення Starship перезапустіть команду вказану вище. Це допоможе замінити поточну версію не чіпаючи налаштувань Starship.
brew install starshipwinget install starshipДодайте init скрипт до конфігураційного файлу оболонки:
Додайте наступний рядок наприкінці ~/.bashrc:
# ~/.bashrc
eval "$(starship init bash)"Додайте наступний рядок наприкінці ~/.config/fish/config.fish:
# ~/.config/fish/config.fish
starship init fish | sourceДодайте наступний рядок наприкінці ~/.zshrc:
# ~/.zshrc
eval "$(starship init zsh)"Add the following to the end of Microsoft.PowerShell_profile.ps1. You can check the location of this file by querying the $PROFILE variable in PowerShell. Typically the path is ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 or ~/.config/powershell/Microsoft.PowerShell_profile.ps1 on -Nix.
Invoke-Expression (&starship init powershell)Додайте наступний рядок наприкінці ~/.config/ion/initrc:
# ~/.config/ion/initrc
eval $(starship init ion)Підтримується лише elvish v0.18 або новішої версії.
Додайте наступне до кінця ~/.config/elvish/rc.elv (%AppData%\elvish\rc.elv у Windows):
# ~/.elvish/rc.elv
eval (starship init elvish)Для версії elvish до v0.21.0 файл конфігурації може бути ~/.elvish/rc.elv натомість
Додайте наступний рядок наприкінці ~/.tcshrc:
# ~/.tcshrc
eval `starship init tcsh`> This will change in the future.
Only Nushell v0.96+ is supported.
Додайте наступний рядок наприкінці налаштувань 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")Додайте наступний рядок наприкінці ~/.xonshrc:
# ~/.xonshrc
execx($(starship init xonsh))You need to use Clink (v1.2.30+) with Cmd. Add the following to a file starship.lua and place this file in Clink scripts directory:
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()