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

194 lines
4.8 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
2024-03-21 20:42:05 +09:00
text:
2024-03-03 17:55:30 +01:00
tagline: Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun!
actions:
2024-03-21 20:42:05 +09: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:
2024-03-21 20:42:05 +09:00
-
2022-06-26 18:29:51 -04:00
title: Kompatibilitas Yang Utama
details: Dapat berfungsi di shells standar dengan sistem operasi yang paling biasa. Pakai di mana saja!
2024-03-21 20:42:05 +09:00
-
2023-06-06 10:10:23 -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.
2024-03-21 20:42:05 +09:00
-
2021-09-21 09:36:29 -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
#Used for the description meta tag, for SEO
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
```
2021-09-21 09:36:29 -04:00
1. 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)"
```
#### Powershell
Tambahkan skrip berikut pada baris akhir `Microsoft.PowerShell_profile.ps1`. Kamu dapat mengecek lokasi file tersebut dengan mencari tahu keberadaan variabel `$PROFILE` di dalam PowerShell. Biasanya, lokasi file tersebut berada di `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` atau `~/.config/powershell/Microsoft.PowerShell_profile.ps1` pada -Nix.
```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)
```
2025-10-25 20:33:44 +09: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
2025-10-25 20:33:44 +09:00
> [!WARNING] This will change in the future. Hanya Nushell v0.96+ yang menerima dukungan.
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
2023-07-30 09:29:01 -04: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
2022-05-24 17:19:44 -04:00
Kamu perlu menggunakan [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) pada Cmd. Tambahkan baris berikut ke dalam `starship.lua` lalu taruhlah file berikut ke dalam direktori Clink:
2022-01-15 17:08:31 -05:00
```lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
```