[ci skip]
layout, hero, features, footer, metaTitle, description
| layout | hero | features | footer | metaTitle | description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| home |
|
|
Berlisensi ISC | Hak Cipta © 2019-sekarang Kontributor Starship | Starship: Prompt Lintas Shell | Starship merupakan sebuah prompt yang minimal, super cepat, dan sangat bisa untuk dikustomisasi untuk shell apapun! Bisa menampilkan informasi yang kamu butuhkan, namun tetap bisa tampil dengan ramping dan minimal. Instalasi sederhana tersedia untuk Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, dan PowerShell. |
Prasyarat
- Nerd Font yang sudah terpasang dan berjalan di dalam terminalmu.
Instalasi Sederhana
-
Instalasi dengan menggunakan binary starship:
Pasang Versi Terbaru
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.
Pasang Melalui Package Manager
Dengan Homebrew:
brew install starshipWith Winget:
winget install starship -
Tambahkan skrip init ke dalam file konfigurasi Shell:
Bash
Tambahkan skrip berikut pada baris akhir
~/.bashrc::# ~/.bashrc eval "$(starship init bash)"Fish
Tambahkan skrip berikut pada baris akhir
~/.config/fish/config.fish:# ~/.config/fish/config.fish starship init fish | sourceZsh
Tambahkan skrip berikut pada baris akhir
~/.zshrc:# ~/.zshrc eval "$(starship init zsh)"PowerShell
Add the following to the end of
Microsoft.PowerShell_profile.ps1. You can check the location of this file by querying the$PROFILEvariable in PowerShell. Typically the path is~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1or~/.config/powershell/Microsoft.PowerShell_profile.ps1on -Nix.Invoke-Expression (&starship init powershell)Ion
Tambahkan skrip berikut pada baris akhir
~/.config/ion/initrc:# ~/.config/ion/initrc eval $(starship init ion)Elvish
[!WARNING] Only elvish v0.18 or higher is supported.
Add the following to the end of
~/.config/elvish/rc.elv(%AppData%\elvish\rc.elvon Windows):# ~/.elvish/rc.elv eval (starship init elvish)For elvish versions prior to v0.21.0 the config file might instead be
~/.elvish/rc.elvTcsh
Tambahkan skrip berikut pada baris akhir
~/.tcshrc:# ~/.tcshrc eval `starship init tcsh`Nushell
[!WARNING]> This will change in the future.
Only Nushell v0.96+ is supported.
Add the following to the end of your Nushell configuration (find it by running
$nu.config-pathin Nushell):mkdir ($nu.data-dir | path join "vendor/autoload") starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")Xonsh
Tambahkan skrip berikut pada baris akhir
~/.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"))()