Kompatibilitas Yang Utama
Dapat berfungsi di shells standar dengan sistem operasi yang paling biasa. Pakai di mana saja!
Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun!
Instalasi dengan menggunakan binary starship:
Dengan Shell:
curl -sS https://starship.rs/install.sh | shUntuk memperbarui Starship, jalankan ulang skrip di atas. Hal ini akan memperbarui versi yang terpasang tanpa mengubah konfigurasi Starship.
Dengan Homebrew:
brew install starshipWith Winget:
winget install starshipTambahkan skrip init ke dalam file konfigurasi Shell:
Tambahkan skrip berikut pada baris akhir ~/.bashrc::
# ~/.bashrc
eval "$(starship init bash)"Tambahkan skrip berikut pada baris akhir ~/.config/fish/config.fish:
# ~/.config/fish/config.fish
starship init fish | sourceTambahkan skrip berikut pada baris akhir ~/.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)Tambahkan skrip berikut pada baris akhir ~/.config/ion/initrc:
# ~/.config/ion/initrc
eval $(starship init ion)Only elvish v0.18 or higher is supported.
Add the following to the end of ~/.config/elvish/rc.elv (%AppData%\elvish\rc.elv on Windows):
# ~/.elvish/rc.elv
eval (starship init elvish)For elvish versions prior to v0.21.0 the config file might instead be ~/.elvish/rc.elv
Tambahkan skrip berikut pada baris akhir ~/.tcshrc:
# ~/.tcshrc
eval `starship init tcsh`> This will change in the future.
Hanya Nushell v0.96+ yang menerima dukungan.
Add the following to the end of your Nushell configuration (find it by running $nu.config-path in Nushell):
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")Tambahkan skrip berikut pada baris akhir ~/.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"))()