Files
starship/docs/id-ID/README.md
T

181 lines
4.7 KiB
Markdown
Raw Normal View History

2021-08-26 10:11:13 -04:00
---
2024-03-03 17:55:30 +01:00
layout: home
hero:
image: /logo.svg
2026-06-12 13:47:17 -04:00
text: null
2024-03-03 17:55:30 +01:00
tagline: Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun!
actions:
2026-06-12 13:47:17 -04:00
- theme: brand
2024-03-03 17:55:30 +01:00
text: Mari Mulai →
link: ./guide/
2021-08-26 10:11:13 -04:00
features:
2026-06-12 13:47:17 -04:00
- title: Kompatibilitas Yang Utama
2022-06-26 18:29:51 -04:00
details: Dapat berfungsi di shells standar dengan sistem operasi yang paling biasa. Pakai di mana saja!
2026-06-12 13:47:17 -04:00
- title: Dibuat dengan Rust
2021-09-21 09:36:29 -04:00
details: Menggunakan kecepatan dan keamanan dari Rust, untuk membuat prompt kamu bekerja secepat dan seandal mungkin.
2026-06-12 13:47:17 -04:00
- title: Dapat Dikustomisasi
2022-06-26 18:29:51 -04:00
details: Kamu dapat mengatur semua detail kecil dengan sesukamu, entah itu untuk membuatnya sebagai prompt yang seminimal mungkin atau kaya akan fitur yang kamu mau.
2021-08-26 10:11:13 -04:00
footer: Berlisensi ISC | Hak Cipta © 2019-sekarang Kontributor Starship
2026-06-12 13:47:17 -04:00
# Used for the description meta tag, for SEO
2021-08-26 10:11:13 -04:00
metaTitle: "Starship: Prompt Lintas Shell"
2022-06-26 18:29:51 -04:00
description: 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.
2021-08-26 10:11:13 -04:00
---
2024-05-16 02:07:00 +09:00
<script setup>
import { onMounted } from 'vue'
onMounted(() => {
const urlParams = new URLSearchParams(window.location.search)
if (urlParams.has('uwu') || urlParams.has('kawaii')) {
const img = document.querySelector('.VPHero .VPImage.image-src')
img.classList.add('uwu')
img.src = '/logo-uwu.png'
img.alt = 'Kawaii Starship Logo by @sawaratsuki1004'
}
})
</script>
2024-03-21 20:42:05 +09:00
<video class="demo-video" muted autoplay loop playsinline>
<source src="/demo.webm" type="video/webm">
<source src="/demo.mp4" type="video/mp4">
</video>
2021-08-26 10:11:13 -04:00
### Prasyarat
2022-06-26 18:29:51 -04:00
- [Nerd Font](https://www.nerdfonts.com/) yang sudah terpasang dan berjalan di dalam terminalmu.
2021-08-26 10:11:13 -04:00
### Instalasi Sederhana
1. Instalasi dengan menggunakan binary **starship**:
#### Pasang Versi Terbaru
Dengan Shell:
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2021-08-26 10:11:13 -04:00
```
2022-03-08 21:11:36 -05:00
2022-06-26 18:29:51 -04:00
Untuk memperbarui Starship, jalankan ulang skrip di atas. Hal ini akan memperbarui versi yang terpasang tanpa mengubah konfigurasi Starship.
2021-08-26 10:11:13 -04:00
#### Pasang Melalui Package Manager
Dengan [Homebrew](https://brew.sh/):
```sh
brew install starship
```
2024-03-21 20:42:05 +09:00
2022-10-14 21:53:32 -04:00
With [Winget](https://github.com/microsoft/winget-cli):
2021-08-26 10:11:13 -04:00
```powershell
2022-10-14 21:53:32 -04:00
winget install starship
2021-08-26 10:11:13 -04:00
```
2026-06-12 13:47:17 -04:00
2. Tambahkan skrip init ke dalam file konfigurasi Shell:
2021-08-26 10:11:13 -04:00
#### Bash
Tambahkan skrip berikut pada baris akhir `~/.bashrc:`:
```sh
# ~/.bashrc
eval "$(starship init bash)"
```
#### Fish
Tambahkan skrip berikut pada baris akhir `~/.config/fish/config.fish`:
```sh
# ~/.config/fish/config.fish
starship init fish | source
```
#### Zsh
Tambahkan skrip berikut pada baris akhir `~/.zshrc`:
```sh
# ~/.zshrc
eval "$(starship init zsh)"
```
2026-04-18 20:11:45 +09:00
#### PowerShell
2021-08-26 10:11:13 -04:00
2026-06-12 13:47:17 -04:00
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.
2021-08-26 10:11:13 -04:00
```sh
Invoke-Expression (&starship init powershell)
```
#### Ion
Tambahkan skrip berikut pada baris akhir `~/.config/ion/initrc`:
```sh
# ~/.config/ion/initrc
eval $(starship init ion)
```
#### Elvish
2025-10-25 20:33:44 +09:00
> [!WARNING] Only elvish v0.18 or higher is supported.
2022-05-24 17:19:44 -04:00
2025-10-25 20:33:44 +09:00
Add the following to the end of `~/.config/elvish/rc.elv` (`%AppData%\elvish\rc.elv` on Windows):
2021-08-26 10:11:13 -04:00
```sh
# ~/.elvish/rc.elv
eval (starship init elvish)
```
2026-06-12 13:47:17 -04:00
For elvish versions prior to v0.21.0 the config file might instead be `~/.elvish/rc.elv`
2021-08-26 10:11:13 -04:00
#### Tcsh
Tambahkan skrip berikut pada baris akhir `~/.tcshrc`:
```sh
# ~/.tcshrc
eval `starship init tcsh`
```
#### Nushell
2026-06-12 13:47:17 -04:00
> [!WARNING]> This will change in the future.
> > Only Nushell v0.96+ is supported.
2022-05-24 17:19:44 -04:00
2025-01-12 00:23:14 +09:00
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
2024-03-21 20:42:05 +09:00
2022-03-24 15:47:11 -05:00
```sh
2025-01-12 00:23:14 +09:00
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
2022-03-24 15:47:11 -05:00
```
2021-08-26 10:11:13 -04:00
#### Xonsh
Tambahkan skrip berikut pada baris akhir `~/.xonshrc`:
```sh
# ~/.xonshrc
execx($(starship init xonsh))
```
2022-01-15 17:08:31 -05:00
#### Cmd
2026-06-12 13:47:17 -04:00
You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
2022-01-15 17:08:31 -05:00
```lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
```