@@ -30,7 +30,7 @@ description: Starship merupakan prompt yang minimal, super cepat, dan sangat bis
### Prasyarat
-- [Nerd Font](https://www.nerdfonts.com/) yang telah terinstalasi dan telah diaktifkan di terminal.
+- [Nerd Font](https://www.nerdfonts.com/) yang telah terinstalasi dan telah diaktifkan di dalam terminal.
### Instalasi Sederhana
@@ -44,7 +44,7 @@ description: Starship merupakan prompt yang minimal, super cepat, dan sangat bis
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Untuk memperbarui Starship, jalankan kembali skrip di atas. Hal ini dapat memperbarui versi yang terpasang tanpa menyentuh konfigurasi Starship.
+ Untuk memperbarui Starship, jalankan kembali skrip di atas. Hal ini dapat memperbarui versi yang terpasang tanpa mengubah konfigurasi Starship.
#### Pasang Melalui Package Manager
@@ -61,7 +61,7 @@ description: Starship merupakan prompt yang minimal, super cepat, dan sangat bis
scoop install starship
```
-1. Tambahkan skrip init ke file konfigurasi Shell:
+1. Tambahkan skrip init ke dalam file konfigurasi Shell:
#### Bash
@@ -119,7 +119,7 @@ description: Starship merupakan prompt yang minimal, super cepat, dan sangat bis
#### Elvish
- ::: warning Cuma elvish v0.15 atau yang lebih baru yang tengah didukung. :::
+ ::: warning Hanya elvish v0.15 atau versi yang lebih baru yang mendapat dukungan pengembangan. :::
Tambahkan skrip berikut pada baris akhir `~/.elvish/rc.elv`:
@@ -143,7 +143,7 @@ description: Starship merupakan prompt yang minimal, super cepat, dan sangat bis
#### Nushell
- ::: peringatan Hal ini dapat berubah di kemudian hari. Hanya nu versi v0.33 atau lebih baru yang tengah didukung. ::: Tambahkan skrip berikut ke dalam file konfigurasi nu. Lokasi dari file ini dapat dicek dengan menjalankan `config path` pada nu.
+ ::: peringatan Hal ini dapat berubah di kemudian hari. Hanya nu versi v0.33 atau versi terbaru yang mendapat dukungan pengembangan. ::: Tambahkan skrip berikut ke dalam file konfigurasi nu. Lokasi dari file ini dapat dicek dengan menjalankan `config path` pada nu.
```toml
startup = [
diff --git a/docs/id-ID/advanced-config/README.md b/docs/id-ID/advanced-config/README.md
index 6abf856e..08ffd880 100644
--- a/docs/id-ID/advanced-config/README.md
+++ b/docs/id-ID/advanced-config/README.md
@@ -8,7 +8,7 @@ Konfigurasi pada bagian ini dapat berubah saat pembaruan Starship rilis di kemud
:::
-## Kostumisasi Perintah pre-prompt dan pre-execution Pada Bash
+## Kustomisasi Perintah pre-prompt dan pre-execution Pada Bash
Bash tidak memiliki framework preexec/precmd yang tetap seperti kebanyakan shell pada umumnya. Oleh karena itu, sulit halnya untuk membuat hook yang dapat dikustomisasi sepenuhnya di dalam `bash`. Namun, Starship memberikan beberapa cara supaya kamu bisa memasukkan fungsimu sendiri ke dalam prosedur prompt-rendering:
@@ -21,7 +21,7 @@ function blastoff(){
starship_precmd_user_func="blastoff"
```
-- Untuk menjalankan fungsi buatan tepat sebelum commands berjalan, kamu bisa menggunakan [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). Akan tetapi, kamu **harus** melakukan proses trap pada DEBUG signal *sebelum* menjalankan Starship! Starship bisa menyimpan nilai dari DEBUG trap, tapi jika trap diganti setelah starship berjalan, beberapa fungsi akan rusak.
+- Untuk menjalankan fungsi yang dikustomisasi tepat sebelum commands berjalan, kamu bisa menggunakan [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). Akan tetapi, kamu **harus** melakukan proses trap pada DEBUG signal *sebelum* menjalankan Starship! Starship bisa menyimpan nilai dari DEBUG trap, tapi jika trap diganti setelah starship berjalan, beberapa fungsi akan rusak.
```bash
function blastoff(){
@@ -33,7 +33,7 @@ eval $(starship init bash)
## Mengubah Judul Window
-Beberapa prompts shell dengan otomatis akan mengubah judul window-nya untukmu (mis. untuk merefleksikan direktori kerjamu). Fish bahkan mengaturnya sebagai bawaan. Starship tidak, tapi mudah saja untuk menambahkan fungsi tersebut ke dalam `bash` ataupun `zsh`.
+Beberapa prompt shell dengan otomatis akan mengubah judul window-nya untukmu (mis. untuk merefleksikan direktori kerjamu). Fish bahkan mengaturnya sebagai bawaan. Starship tidak, tapi mudah saja untuk menambahkan fungsi tersebut ke dalam `bash` ataupun `zsh`.
Pertama, buatlah fungsi untuk mengubah judul window (bekerja pada bash dan zsh):
@@ -57,9 +57,9 @@ Dalam `zsh`, pada array `precmd_functions`, tambahkan:
precmd_functions+=(set_win_title)
```
-Kalau kamu suka hasilnya, tambahkan baris (`~/.bashrc` or `~/.zshrc`) ke dalam file konfigurasi shell-mu untuk membuatnya permanen.
+Kalau kamu suka hasilnya, tambahkan baris (`~/.bashrc` or `~/.zshrc`) ke dalam file konfigurasi shell milikmu untuk membuatnya permanen.
-Sebagai contoh, kalau kamu mau menampilkan lokasi direktori pada judul label terminalmu, tambahkan snippet berikut ke dalam `~/.bashrc` atau `~/.zshrc`:
+Sebagai contoh, kalau kamu mau menampilkan lokasi direktori pada judul label terminalmu, tambahkan bagian berikut ke dalam `~/.bashrc` atau `~/.zshrc`:
```bash
function set_win_title(){
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` saat ini hanya tersedia pada shell: elvish, fish, zsh.
+
+### Contoh
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Menghasilkan prompt seperti berikut:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Menata String
-Tataan pada strings merupakan sebuah kumpulan kata yang dipisahkan dengan spasi kosong. Kata-katanya tidak bersifat case sensitive (mis. `tebal` dan `TeBaL` dianggap sebagai string yang sama). Tiap-tiap kata berikut adalah opsinya:
+Style strings are a list of words, separated by whitespace. Kumpulan katanya tidak bersifat case sensitive (mis. `tebal` dan `TeBaL` dianggap sebagai string yang sama). Tiap-tiap kata berikut adalah opsinya:
- `bold`
- `italic`
diff --git a/docs/id-ID/config/README.md b/docs/id-ID/config/README.md
index 3930bb64..1ece2bf5 100644
--- a/docs/id-ID/config/README.md
+++ b/docs/id-ID/config/README.md
@@ -16,7 +16,7 @@ add_newline = true
[character] # Nama modul yang dikonfigurasi adalah "character"
success_symbol = "[➜](bold green)" # Segmen "success_symbol" diganti menjadi "➜" dengan warna "bold green"
-# Mengnonaktifkan paket modul, menyembunyikannya dari prompt secara utuh
+# Menonaktifkan paket modul, menyembunyikannya dari prompt seutuhnya
[package]
disabled = true
```
@@ -51,7 +51,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
**Modul**: Sebuah komponen pada prompt yang memberikan informasi berdasarkan info kontekstual sistem operasimu. Sebagai contoh, modul "nodejs" menampilkan versi Node.js yang tengah terpasang pada komputermu, jika direktorimu sedang berada pada proyek Node.js.
-**Variabel**: Sub-komponen yang terdiri dari informasi yang disediakan oleh modul. Sebagai contoh, variabel "version" dalam modul "nodejs" memuat versi Node.js saat ini.
+**Variabel**: Sub-komponen yang terdiri dari informasi yang disediakan oleh modul. Sebagai contoh, variabel "version" dalam modul "nodejs" memuat versi terikini dari Node.js.
Secara konvensi, sebagian modul memiliki prefiks bawaan pada warna terminal (mis. `via` pada "nodejs") dan juga sebuah ruang kosong sebagai sufiks.
@@ -75,7 +75,7 @@ Grup teks dibuat dengan dua bagian yang berbeda.
Bagian pertama, yang mana diapit dalam sebuah `[]`, merupakan sebuah [format string](#format-strings). Kamu bisa menambahkan teks, variabel, atau bahkan grup teks bercabang di dalamnya.
-Pada bagian kedua, yang mana diapit dalam sebuah `()`, merupakan sebuah [penataan string](#style-strings). Bagian ini dapat digunakan untuk menata bagian pertama.
+Pada bagian kedua, yang mana diapit dalam sebuah `()`, merupakan sebuah [penataan string](#style-strings). This can be used to style the first part.
Sebagai contoh:
@@ -98,7 +98,7 @@ Perhatikan bagaimana nantinya penataanmu akan terlihat pada emulator terminalmu.
#### Format String Bersyarat (Conditional)
-String dengan format bersyarat dibungkus dengan `(` dan `)` tidak akan dijalankan jika variabel di dalamnya kosong.
+Sebuah string dengan format bersyarat dibungkus dengan `(` dan `)` tidak akan dijalankan jika variabel di dalamnya kosong.
Sebagai contoh:
@@ -106,9 +106,9 @@ Sebagai contoh:
- `(sembarang)` akan selalu tidak menampilkan apapun karena tidak ada variabel yang dibungkus dalam kurung kurawal.
- Tatkala `$all` digunakan sebagai shortcut untuk `\[$a$b\]`, `($all)` tidak akan menampilkan apapun jika nilai `$a` dan `$b` adalah `None`. Berlaku juga dengan `(\[$a$b\] )`.
-#### Karakter Yang Bisa Dihindari (Escapable)
+#### Pembebasan Karakter
-Simbol-simbol berikut mempunyai kegunaan yang spesial dalam format srting. Jika kamu ingin menampilkan simbol-simbol berikut, kamu harus mengikatnya (escape) dengan garis miring terbalik (`\`).
+Simbol-simbol berikut mempunyai kegunaan yang spesial dalam format srting. Jika kamu ingin menampilkan simbol-simbol berikut, kamu harus membebaskannya (escape) dengan garis miring terbalik (`\`).
- \$
- \\
@@ -117,9 +117,9 @@ Simbol-simbol berikut mempunyai kegunaan yang spesial dalam format srting. Jika
- (
- )
-Perhatikan bahwa `toml` memiliki [sintaksi bebasnya sendiri](https://github.com/toml-lang/toml#user-content-string). Disarankan halnya untukmu menggunakan string literal (`''`) dalam konfigurasimu. Jika kamu mau memakai string standar (`""`), ingatlah untuk mengikat garis miring terbalik `\`.
+Perhatikan bahwa `toml` memiliki [sintaksi bebasnya sendiri](https://github.com/toml-lang/toml#user-content-string). Disarankan halnya untukmu menggunakan string literal (`''`) dalam konfigurasimu. Jika kamu mau memakai string standar (`""`), ingatlah untuk membebaskan garis miring terbalik `\`.
-Sebagai contoh, ketika kamu ingin menampilkan simbol `$` pada baris baru, konfigurasi berikut untuk `format` bersifat ekuivalen:
+Sebagai contoh, ketika kamu ingin menampilkan simbol `$` pada sebuah baris baru, konfigurasi berikut sama halnya pada `format`:
```toml
# dengan string standar
@@ -142,12 +142,14 @@ Berikut adalah opsi konfigurasi dari list yang bersifat prompt-wide.
### Opsi
-| Opsi | Bawaan | Deskripsi |
-| ----------------- | ------------------------------ | ---------------------------------------------------------------------------- |
-| `fromat` | [link](#default-prompt-format) | Mengkonfigurasi format pada prompt. |
-| `scan_timeout` | `30` | Batas waktu starpship untuk memindai file (dalam milidetik). |
-| `command_timeout` | `500` | Batas waktu untuk perintah yang dieksekusi oleh starship (dalam militdetik). |
-| `add_newline` | `true` | Memasukkan baris kosong antara prompt shell. |
+| Opsi | Bawaan | Deskripsi |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `fromat` | [link](#default-prompt-format) | Mengkonfigurasi format pada prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Contoh
@@ -174,11 +176,12 @@ Aturan `format` bawaan digunakan untuk mendefinisikan format pada prompt, apabil
```toml
format = "$all"
-# yang mana ekuivalen dengan
+# Which is equivalent to
format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,15 +243,22 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-Module `aws` menampilkan region dan profil AWS terkini. Diperoleh dari variabel environment `AWS_REGION`, `AWS_DEFAULT_REGION`, dan `AWS_PROFILE` pada file `~/.aws/config`. Modul ini juga menampilkan penghitung waktu mundur kedaluwarsa ketika menggunakan temporer kredensial.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
-Ketika menggunakan [aws-vault](https://github.com/99designs/aws-vault), profil dibaca dari variabel environment `AWS_VAULT` dan tanggal kedaluwarsanya dibaca dari variabel environment `AWS_SESSION_EXPIRATION`.
+When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
-Ketika menggunakan [awsu](https://github.com/kreuzwerker/awsu) profil dibaca dari variabel environment `AWSU_PROFILE`.
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
-Ketika menggunakan [AWSume](https://awsu.me) profil dibaca dari variabel environment `AWSUME_PROFILE` dan tanggal kedaluwarsanya dibaca dari variabel environment `AWSUME_EXPIRATION`.
+When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFILE` env var and the credentials expiration date is read from the `AWSUME_EXPIRATION` env var.
### Opsi
@@ -269,7 +281,7 @@ Ketika menggunakan [AWSume](https://awsu.me) profil dibaca dari variabel environ
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -314,7 +326,7 @@ symbol = "🅰 "
## Baterai
-Modul `battery` menampilkan seberapa penuh baterai piranti terisi dan status pengisiannya. Modulnya hanya dapat terlihat ketika baterai dari pirantinya di bawah 10%.
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### Opsi
@@ -342,7 +354,7 @@ discharging_symbol = "💀 "
### Tampilan Baterai
-Opsi konfigurasi `display` digunakan untuk menentukan kapan indikator baterai harus ditampilkan (threshold), simbol mana yang akan digunakan (symbol), dan bagaimana seharusnya itu terlihat (style). Jika tidak ada `display` yang diberikan. Aturannya seperti yang ditunjukkan:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. Aturannya seperti yang ditunjukkan:
```toml
[[battery.display]]
@@ -350,11 +362,11 @@ threshold = 10
style = "bold red"
```
-Nilai bawaan untuk opsi `charging_symbol` dan `discharging_symbol` adalah nilai dari masing-masing opsi `charging_symbol` dan `discharging_symbol` dari nilai `battery`.
+The default value for the `charging_symbol` and `discharging_symbol` option is respectively the value of `battery`'s `charging_symbol` and `discharging_symbol` option.
#### Opsi
-Opsi dari `display` merupakan sebuah array dari tabel berikut.
+The `display` option is an array of the following table.
| Opsi | Bawaan | Deskripsi |
| -------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------- |
@@ -366,39 +378,39 @@ Opsi dari `display` merupakan sebuah array dari tabel berikut.
#### Contoh
```toml
-[[battery.display]] # "bold red" untuk corak gaya dan discharging_symbol ketika kapasitasnya berada di antara 0% dan 10%
+[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = "bold red"
-[[battery.display]] # "bold yellow" untuk corak gaya dan simbol 💦 ketika kapasitasnya berada di antara 10% dan 30%
+[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
discharging_symbol = 💦
-# ketika kapasitasnya di atas 30%, indikator baterai tidak akan ditampilkan
+# when capacity is over 30%, the battery indicator will not be displayed
```
## Karakter
-Modul `character` menampilkan sebuah karakter (biasanya anak panah) di samping teks pada terminalmu.
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-Karakter dapat memberitahu kamu apakah perintah terakhir berhasil atau tidak. Karakter dapat memberitahumu dengan dua cara ini:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- mengganti warna (`red`/`green`)
- mengganti bentuk (`❯`/`✖`)
-Secara bawaan karakter hanya dapat mengganti warna. Jika kamu juga ingin mengganti bentuknya, perhatikan [contoh](#with-custom-error-shape) berikut.
+By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
::: peringatan
-`error_symbol` tidak didukung pada elvish dan nu shell.
+`error_symbol` is not supported on elvish and nu shell.
:::
::: peringatan
-`vicmd_symbol` hanya didukung pada fish dan zsh.
+`vicmd_symbol` is only supported in fish and zsh.
:::
@@ -451,10 +463,10 @@ vicmd_symbol = "[V](bold green) "
## CMake
-Modul `cmake` menampilkan versi terkini dari [CMake](https://cmake.org/) yang terpasang. Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
+The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). By default the module will be activated if any of the following conditions are met:
-- Direktori terkini berisikan sebuah file `CMakeLists.txt`
-- Direktori terkini berisikan sebuah file `CMakeCache.txt`
+- Direktori terkini yang berisikan sebuah file `CMakeLists.txt`
+- Direktori terkini yang berisikan sebuah file `CMakeCache.txt`
### Opsi
@@ -477,46 +489,76 @@ Modul `cmake` menampilkan versi terkini dari [CMake](https://cmake.org/) yang te
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
-## Command Duration
+## COBOL / GNUCOBOL
-Modul `cmd_duration` menampilkan seberapa lama perintah sebelumnya membutuhkan waktu untuk dilaksanakan. Modulnya hanya akan ditampilkan jika perintahnya membutuhkan waktu lebih dari dua detik, atau ada nilai dari konfigurasi `min_time`.
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: jangan lakukan hook DEBUG trap dalam Bash
-
-Jia kamu menjalankan Starship di `bash`, jangan lakukan hook DEBUG trap setelah menjalankan `eval $(starship init $0)`, atau modulnya **akan** rusak.
-
-:::
-
-Pengguna Bash yang membutuhkan fungsi seperti preexec dapat menggunakan [kerangka kerja bash_preexec dari rcaloras](https://github.com/rcaloras/bash-preexec). Cukup dengan membuat array `preexec_functions` dan `precmd_functions` sebelum menjalankan `eval $(starship init $0)`, lalu lanjutkan seperti biasa.
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### Opsi
-| Opsi | Bawaan | Deskripsi |
-| -------------------- | ----------------------------- | ---------------------------------------------------------------- |
-| `min_tim` | `2_000` | Durasi terpendek untuk menampilkan waktu (dalam milidetik). |
-| `show_milliseconds` | `false` | Tampilkan milidetik sebagai ganti detik untuk durasinya. |
-| `format` | `"took [$duration]($style) "` | Format dari modul. |
-| `style` | `"bold yellow"` | Gaya penataan untuk modul. |
-| `disabled` | `false` | Menonaktifkan modul `cmd_duration`. |
-| `show_notifications` | `false` | Menampilkan notifikasi layar ketika perintah selesai. |
-| `min_time_to_notify` | `45_000` | Durasi terpendek untuk menampilkan notifikasi (dalam milidetik). |
+| Opsi | Bawaan | Deskripsi |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | Format dari modul. |
+| `version_format` | `"v${raw}"` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | Gaya penataan untuk modul. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
+| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+| `disabled` | `false` | Disables the `cobol` module. |
-::: saran
+### Variabel
-Menampilkan notifikasi layar memerlukan starship dikembangkan dengan dukungan dari `rust-notify`. Periksa apakah starship kamu mendukung notifikasi dengan menjalankan `STARSHIP_LOG=debug starship module cmd_duration -d 60000` ketika `show_notifications` diatur menjadi `true`.
+| Variabel | Contoh | Deskripsi |
+| --------- | ---------- | --------------------------------- |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Menyalin nilai dari opsi `symbol` |
+| style\* | | Menyalin nilai dari opsi `style` |
+
+\*: This variable can only be used as a part of a style string
+
+## Durasi Perintah
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | Format dari modul. |
+| `style` | `"bold yellow"` | Gaya penataan untuk modul. |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+
+::: tip
+
+Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
:::
### Variabel
-| Variabel | Contoh | Deskripsi |
-| --------- | -------- | -------------------------------------------------- |
-| duration | `16m40s` | Waktu yang dibutuhkan untuk menyelesaikan perintah |
-| style\* | | Menyalin nilai dari opsi `style` |
+| Variabel | Contoh | Deskripsi |
+| --------- | -------- | --------------------------------------- |
+| duration | `16m40s` | The time it took to execute the command |
+| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -530,11 +572,11 @@ format = "underwent [$duration](bold yellow)"
## Conda
-Modul `conda` menampilkan environment conda terkini, jika `$CONDA_DEFAULT_ENV` telah diatur.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
-::: saran
+::: tip
-Hal ini tidak menahan pengubah (modifier) prompt dari conda sendiri, kamu mungkin bisa menjalankan `conda config --set changeps1 False`.
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
@@ -557,7 +599,7 @@ Hal ini tidak menahan pengubah (modifier) prompt dari conda sendiri, kamu mungki
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -570,7 +612,7 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
+The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `shard.yml` file
- The current directory contains a `.cr` file
@@ -596,7 +638,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -609,7 +651,7 @@ format = "via [✨ $version](bold blue) "
## Dart
-The `dart` module shows the currently installed version of [Dart](https://dart.dev/). By default the module will be shown if any of the following conditions are met:
+The `dart` module shows the currently installed version of [Dart](https://dart.dev/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a file with `.dart` extension
- The current directory contains a `.dart_tool` directory
@@ -636,7 +678,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -649,7 +691,7 @@ format = "via [🔰 $version](bold red) "
## Deno
-The `deno` module shows you your currently installed version of [Deno](https://deno.land/). By default the module will be shown if any of the following conditions are met:
+The `deno` module shows you your currently installed version of [Deno](https://deno.land/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
### Opsi
@@ -682,7 +724,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d
format = "via [🦕 $version](green bold) "
```
-## Directory
+## Direktori
The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
@@ -732,7 +774,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
| path | `"D:/Projects"` | The current directory path |
| style\* | `"black bold dimmed"` | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -769,7 +811,7 @@ The `docker_context` module shows the currently active [Docker context](https://
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -811,7 +853,7 @@ The module will also show the Target Framework Moniker (
⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2075,7 +2147,7 @@ The `package` module is shown when the current directory is the repository for a
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2088,7 +2160,7 @@ format = "via [🎁 $version](208 bold) "
## Perl
-The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). By default the module will be shown if any of the following conditions are met:
+The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `Makefile.PL` or `Build.PL` file
- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
@@ -2128,7 +2200,7 @@ format = "via [🦪 $version]($style) "
## PHP
-The `php` module shows the currently installed version of [PHP](https://www.php.net/). By default the module will be shown if any of the following conditions are met:
+The `php` module shows the currently installed version of [PHP](https://www.php.net/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
@@ -2155,7 +2227,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2168,7 +2240,7 @@ format = "via [🔹 $version](147 bold) "
## PureScript
-The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. By default the module will be shown if any of the following conditions are met:
+The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
@@ -2194,7 +2266,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2211,7 +2283,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
-By default the module will be shown if any of the following conditions are met:
+Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file
@@ -2239,7 +2311,7 @@ By default the module will be shown if any of the following conditions are met:
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini |
| `disabled` | `false` | Disables the `python` module. |
-::: saran
+::: tip
The `python_binary` variable accepts either a string or a list of strings. Starship will try executing each binary until it gets a result. Note you can only change the binary that Starship executes to get the version of Python not the arguments that are used.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2363,7 +2435,7 @@ By default the `red` module shows the currently installed version of [Red](https
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2403,7 +2475,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2442,7 +2514,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2455,7 +2527,7 @@ format = "via [⚙️ $version](red bold)"
## Scala
-The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). By default the module will be shown if any of the following conditions are met:
+The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
- The current directory contains a file with the `.scala` or `.sbt` extension
@@ -2469,7 +2541,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| `version_format` | `"v${raw}"` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `detect_extensions` | `["sbt", "scala"]` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | filenames mana yang sebaiknya memicu modul ini. |
-| `detect_folders` | `[".metals"]` | Which folders should trigger this modules. |
+| `detect_folders` | `[".metals"]` | Folder mana yang sebaiknya memicul modul ini. |
| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
| `style` | `"red dimmed"` | Gaya penataan untuk modul. |
| `disabled` | `false` | Disables the `scala` module. |
@@ -2482,7 +2554,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2497,7 +2569,7 @@ symbol = "🌟 "
The `shell` module shows an indicator for currently used shell.
-::: saran
+::: tip
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Opsi
@@ -2560,7 +2632,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2594,7 +2666,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2609,7 +2681,7 @@ format = '[📦 \[$env\]]($style) '
The `status` module displays the exit code of the previous command. The module will be shown only if the exit code is not `0`.
-::: saran
+::: tip
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
@@ -2650,7 +2722,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2695,7 +2767,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2710,13 +2782,13 @@ format = "via [🏎 $version](red bold)"
The `terraform` module shows the currently selected [Terraform workspace](https://www.terraform.io/docs/language/state/workspaces.html) and version.
-::: saran
+::: tip
By default the Terraform version is not shown, since this is slow for current versions of Terraform when a lot of plugins are in use. If you still want to enable it, [follow the example shown below](#with-terraform-version).
:::
-By default the module will be shown if any of the following conditions are met:
+Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` or `.hcl` extensions
@@ -2739,11 +2811,11 @@ By default the module will be shown if any of the following conditions are met:
| Variabel | Contoh | Deskripsi |
| --------- | ---------- | --------------------------------- |
| version | `v0.12.24` | The version of `terraform` |
-| workspace | `bawaan` | The current Terraform workspace |
+| workspace | `default` | The current Terraform workspace |
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2765,11 +2837,11 @@ format = "[🏎💨 $version$workspace]($style) "
format = "[🏎💨 $workspace]($style) "
```
-## Time
+## Waktu
The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
-::: saran
+::: tip
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
@@ -2796,7 +2868,7 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
| time | `13:08:10` | The current time. |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2820,7 +2892,7 @@ The `username` module shows active user's username. The module will be shown if
- The user is currently connected as an SSH session
- The variable `show_always` is set to true
-::: saran
+::: tip
SSH connection is detected by checking environment variables `SSH_CONNECTION`, `SSH_CLIENT`, and `SSH_TTY`. If your SSH host does not set up these variables, one workaround is to set one of them with a dummy value.
@@ -2858,7 +2930,7 @@ show_always = true
## Vagrant
-The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:
+The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a `Vagrantfile` file
@@ -2883,7 +2955,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2950,7 +3022,7 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | `black bold dimmed` | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -2988,7 +3060,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| symbol | | Menyalin nilai dari opsi `symbol` |
| style\* | | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
### Contoh
@@ -3011,19 +3083,19 @@ These modules will be shown if any of the following conditions are met:
- The `when` command returns 0
- The current Operating System (std::env::consts::OS) matchs with `os` field if defined.
-::: saran
+::: tip
Multiple custom modules can be defined by using a `.`.
:::
-::: saran
+::: tip
The order in which custom modules are shown can be individually set by including `${custom.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `custom` module will simply show all custom modules in the order they were defined.
:::
-::: saran
+::: tip
[Issue #1252](https://github.com/starship/starship/discussions/1252) contains examples of custom modules. If you have an interesting example not covered there, feel free to share it there!
@@ -3036,7 +3108,7 @@ The order in which custom modules are shown can be individually set by including
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
| `shell` | | [See below](#custom-command-shell) |
-| `deskripsi` | `""` | The description of the module that is shown when running `starship explain`. |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
| `files` | `[]` | The files that will be searched in the working directory for a match. |
| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
@@ -3054,7 +3126,7 @@ The order in which custom modules are shown can be individually set by including
| symbol | Menyalin nilai dari opsi `symbol` |
| style\* | Menyalin nilai dari opsi `style` |
-\*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+\*: This variable can only be used as a part of a style string
#### Custom command shell
diff --git a/docs/id-ID/guide/README.md b/docs/id-ID/guide/README.md
index ba84fedb..a4101378 100644
--- a/docs/id-ID/guide/README.md
+++ b/docs/id-ID/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Untuk memperbarui Starship, jalankan kembali skrip di atas. Hal ini dapat memperbarui versi yang terpasang tanpa menyentuh konfigurasi Starship.
+ Untuk memperbarui Starship, jalankan kembali skrip di atas. Hal ini dapat memperbarui versi yang terpasang tanpa menyentuh konfigurasi Starship.
**Note** - The defaults of the install script can be overridden see the built-in help.
@@ -277,7 +285,7 @@
#### Nushell
- **Warning** This will change in the future. Hanya nu versi v0.33 atau lebih baru yang tengah didukung. Add the following to your nu config file. Lokasi dari file ini dapat dicek dengan menjalankan `config path` pada nu.
+ **Warning** This will change in the future. Hanya nu versi v0.33 atau versi terbaru yang mendapat dukungan pengembangan. Add the following to your nu config file. Lokasi dari file ini dapat dicek dengan menjalankan `config path` pada nu.
```toml
startup = [
diff --git a/docs/id-ID/migrating-to-0.45.0/README.md b/docs/id-ID/migrating-to-0.45.0/README.md
index 9ae7a6ea..89589729 100644
--- a/docs/id-ID/migrating-to-0.45.0/README.md
+++ b/docs/id-ID/migrating-to-0.45.0/README.md
@@ -1,16 +1,16 @@
-# Migrating to v0.45.0
+# Migrasi ke v0.45.0
-Starship v0.45.0 is a release containing breaking changes, in preparation for the big v1.0.0. We have made some major changes around how configuration is done on the prompt, to allow for a greater degree of customization.
+Starship v0.45.0 merupakan rilisan dengan perubahan yang signifikan, untuk persiapan v1.0.0 yang besar. Kami membuat beberapa perubahan besar tentang bagaimana konfigurasi dilakukan pada prompt, hingga bagaimana kami mengizinkan tingkat kustomisasi yang lebih luas.
-This guide is intended to walk you through the breaking changes.
+Petunjuk berikut memandu kamu ke perubahan besar kami.
-## `prompt_order` has been replaced by a root-level `format`
+## `prompt_order` kini digantikan dengan sebuah `format` root-level
-Previously to v0.45.0, `prompt_order` would accept an array of module names in the order which they should be rendered by Starship.
+Sebelum v0.45.0, `prompt_order` dapat menerima sebuah nama modul dengan urutan yang harusya di-render oleh Starship.
-Starship v0.45.0 instead accepts a `format` value, allowing for customization of the prompt outside of the modules themselves.
+Starship v0.45.0 kini menerima nilai dari `format`, memungkinkan kustomisasi prompt di luar modul itu sendiri.
-**Example pre-v0.45.0 configuration**
+**Contoh konfigurasi pra-v0.45.0**
```toml
prompt_order = [
@@ -31,7 +31,7 @@ prompt_order = [
]
```
-**Example v0.45.0 configuration**
+**Contoh konfigurasi v0.45.0**
```toml
format = """\
@@ -52,20 +52,20 @@ format = """\
"""
```
-## Module `prefix` and `suffix` have been replaced by `format`
+## Modul `prefix` dan `suffix` kini digantikan dengan `format`
-Previously to v0.45.0, some modules would accept `prefix` and/or `suffix` in order to stylize the way that modules are rendered.
+Sebelum v0.45.0, beberapa modul bisa menerima `prefix` dan/atau `suffix` untuk menata gayanya sesuai yang di-render modul.
-Starship v0.45.0 instead accepts a `format` value, allowing for further customization of how modules are rendered. Instead of defining a prefix and suffix for the context-based variables, the variables can now be substituted from within a format string, which represents the module's output.
+Starship v0.45.0 menerima nilai `format` sebagai gantinya, memungkinkan bagaimana modul di-render untuk kustomisasi yang lebih jauh. Ketimbang membuat prefix dan suffix untuk varibel berbasis konteks, kini variabel dapat disubtitusikan dari sebuah format string, yang mana merepresantikan keluaran dari sebuah modul.
-**Example pre-v0.45.0 configuration**
+**Contoh konfigurasi pra-v0.45.0**
```toml
[cmd_duration]
prefix = "took "
```
-**Example v0.45.0 configuration**
+**Contoh konfigurasi v0.45.0**
```toml
[cmd_duration]
@@ -78,14 +78,14 @@ format = "took [$duration]($style) "
#### Karakter
-| Removed Property | Replacement |
-| ----------------------- | ---------------- |
-| `symbol` | `success_symbol` |
-| `use_symbol_for_status` | `error_symbol` |
-| `style_success` | `success_symbol` |
-| `style_failure` | `error_symbol` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ---------------- |
+| `symbol` | `success_symbol` |
+| `use_symbol_for_status` | `error_symbol` |
+| `style_success` | `success_symbol` |
+| `style_failure` | `error_symbol` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[character]
@@ -98,26 +98,26 @@ format = "took [$duration]($style) "
++ vicmd_symbol = "[❮](bold green)"
```
-Previously, the `use_symbol_for_status` property was used to configure the prompt to show the `error_symbol` when the last command resulted in a non-zero status code.
+Sebelumnya, properti `use_symbol_for_status` digunakan untuk mengkonfigurasi prompt untuk menampilkan `error_symbol` saat perintah terakhir berakhir dengan nilai code status yang bukan nol.
-With the release of v0.45.0, we now always use `error_symbol` after non-zero status codes, unifying `use_symbol_for_status` and `error_symbol` properties.
+Dengan rilisnya v0.45.0, kini kita selalu menggunakan `error_symbol` setelah nilai code status yang bukan nol, menggabungkan properti `use_symbol_for_status` dan `error_symbol`.
-To configure the prompt to use the older `use_symbol_for_status = true` configuration, add the following to your config file:
+Untuk mengkonfigurasi prompt agar menggunakan konfigurasi `use_symbol_for_status = true`, tambahkan baris berikut ke dalam file config:
```toml
[character]
error_symbol = "[✖](bold red)"
```
-*Note:* The `character` element automatically adds a space after, so unlike the other `format` strings, we specifically do not add one in the above examples.
+*Catatan:* Element `character` secara otomatis menambahkan sebuah spasi setelahnya, jadi tidak seperti `format` string yang lain, kami secara spesifik tidak menambahkannya pada contoh di atas.
-#### Command Duration
+#### Durasi Perintah
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[cmd_duration]
@@ -125,13 +125,13 @@ error_symbol = "[✖](bold red)"
++ format = "took [$duration]($style) "
```
-#### Directory
+#### Direktori
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[directory]
@@ -139,14 +139,14 @@ error_symbol = "[✖](bold red)"
++ format = "[$path]($style)[$read_only]($read_only_style) "
```
-#### Environment Variable
+#### Variabel Environment
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[env_var]
@@ -157,12 +157,12 @@ error_symbol = "[✖](bold red)"
#### Git Commit
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[git_commit]
@@ -173,13 +173,13 @@ error_symbol = "[✖](bold red)"
#### Git Status
-| Removed Property | Replacement |
-| ----------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
-| `show_sync_count` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
+| `suffix` | `format` |
+| `show_sync_count` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[git_status]
@@ -189,11 +189,11 @@ error_symbol = "[✖](bold red)"
++ format = '([\[$all_status$ahead_behind\]]($style) )'
```
-Previously, the `show_sync_count` property was used to configure the prompt to show the number of commits the branch was ahead or behind the remote branch.
+Sebelumnya, properti `show_sync_count` digunakan untuk mengkonfigurasi prompt untuk menampilkan jumlah commits dari branch yang terdepan atau terbelakang dari remote branch.
-With the release of v0.45.0, this has been replaced with three separate properties, `ahead`, `behind`, and `diverged`.
+Dengan rilisnya v0.45.0, hal ini kini digantikan dengan tiga properti terpisah, `ahead`, `behind`, dan `diverged`.
-To configure the prompt to use the older `show_sync_count = true` configuration, set the following to your config file:
+Untuk mengkonfigurasi prompt agar menggunakan konfigurasi `show_sync_count = true`, tambahkan baris berikut ke dalam file config:
```toml
[git_status]
@@ -204,12 +204,12 @@ behind = "⇣${count}"
#### Hostname
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[hostname]
@@ -220,13 +220,13 @@ behind = "⇣${count}"
#### Singularity
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `label` | `format` |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `label` | `format` |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[singularity]
@@ -235,13 +235,13 @@ behind = "⇣${count}"
++ format = '[$symbol\[$env\]]($style) '
```
-#### Time
+#### Waktu
-| Removed Property | Replacement |
-| ---------------- | ------------- |
-| `format` | `time_format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------- |
+| `format` | `time_format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[time]
@@ -252,12 +252,12 @@ behind = "⇣${count}"
#### Custom Commands
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| Properti Yang Digantikan | Penggantinya |
+| ------------------------ | ------------ |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**Perubahan pada konfigurasi bawaan**
```diff
[custom.example]
diff --git a/docs/id-ID/presets/README.md b/docs/id-ID/presets/README.md
index cb485127..446504b8 100644
--- a/docs/id-ID/presets/README.md
+++ b/docs/id-ID/presets/README.md
@@ -1,16 +1,16 @@
-# Presets
+# Prasetel (Presets)
-Here is a collection of community-submitted configuration presets for Starship. If you have a preset to share, please [submit a PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) updating this file! 😊
+Berikut ini adalah koleksi konfigurasi prasetel dari kumpulan komunita Starship. Jika kamu punya konfigurasi prasetel untuk dibagikan, silakan [kirim PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) untuk memperbarui file ini! 😊
-## Nerd Font Symbols
+## Simbol Nerd Font
-This preset doesn't change anything except for the symbols used for each module. If emojis aren't your thing, this might catch your eye!
+Konfigurasi prasetel berikut tidak mengubah apapun selain simbol yang digunakan untuk masing-masing modulnya. Kalau kamu enggak suka dengan emoji, hal ini mungkin bisa menarik perhatianmu!
-![Screenshot of Nerd Font Symbols preset](/presets/nerd-font-symbols.png)
+![Tangkapan Layar dari preset simbol Nerd Font](/presets/nerd-font-symbols.png)
### Prasyarat
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Fira Code Nerd Font)
+- Nerd Font yang terpasang dan telah diaktifkan di dalam terminal (contoh berikut menggunakan Nerd Font Fira Code)
### Konfigurasi
@@ -88,17 +88,17 @@ symbol = " "
symbol = "ﯣ "
```
-## Bracketed Segments
+## Segmen Berkurung
-This preset changes the format of all the built-in modules to show their segment in brackets instead of using the default Starship wording ("via", "on", etc.).
+Konfigurasi prasetel berikut mengubah format dari seluruh modul bawaan untuk menampilkan segmennya di dalam tanda kurung daripada menggunakan susunan kata bawaan Starship ("via", "on", dll.).
-Before:
+Sebelum:
-![Screenshot of default Starship configuration](/presets/bracketed-segments-before.png)
+![Tangkapan Layar dari konfigurasi bawaan Starship](/presets/bracketed-segments-before.png)
-After:
+Sesudah:
-![Screenshot of Bracketed Segments preset](/presets/bracketed-segments-after.png)
+![Tangkapan Layar dari Segmen Berkurung](/presets/bracketed-segments-after.png)
### Konfigurasi
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -239,17 +242,17 @@ format = '\[[$symbol($version)]($style)\]'
format = '\[[$symbol($version)]($style)\]'
```
-## Plain Text Symbols
+## Simbol Teks Sederhana
-This preset changes the symbols into plain text. If your terminal/font could not render the NerdFonts/emojis, maybe you could try this preset!
+Konfigurasi prasetel berikut mengubah simbol menjadi teks sederhana. Jika terminal atau font kamu tidak mampu me-render Nerd Font atau emoji, mungkin kamu bisa mencoba konfigurasi prasetel berikut!
-Before (default setting with Fixedsys font):
+Sebelum (aturan bawaan dengan menggunakan font Fixedys):
-![Screenshot of default Starship configuration with Fixedsys font](/presets/plain-text-symbols-before.png)
+![Tangkapan Layar dari konfigurasi bawaan Starship dengan Font Fixedsys](/presets/plain-text-symbols-before.png)
-After (Plain Text Symbols):
+Sesudah (Simbol Teks Sederhana):
-![Screenshot of Plain Text Symbols preset](/presets/plain-text-symbols-after.png)
+![Tangkapan Layar dari preset Simbol Teks Sederhana](/presets/plain-text-symbols-after.png)
### Konfigurasi
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -363,11 +369,11 @@ symbol = "scala "
symbol = "swift "
```
-## Hide Runtime Versions
+## Penyembunyian Versi Runtime
-This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+Konfigurasi prasetel berikut menyembunyikan versi language runtimes. Jika kamu bekerja di dalam kontainer atau environments virtual, preset berikut cocok untukmu!
-![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+![Tangkapan Layar dari preset Penyembunyian Versi Runtime](/presets/hide-runtime-versions.png)
### Konfigurasi
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/it-IT/README.md b/docs/it-IT/README.md
index 3c3fc90b..5c074175 100644
--- a/docs/it-IT/README.md
+++ b/docs/it-IT/README.md
@@ -18,7 +18,7 @@ features:
footer: Licenza ISC | Copyright © 2019-present Starship Collaboratori
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
+description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Installazione rapida disponibile per Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh e PowerShell.
---
@@ -143,7 +143,7 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
#### Nushell
- ::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ ::: warning Questo cambierà in futuro. È supportata solo la versione v0.33 o superiore. ::: Aggiungi quanto segue al tuo file di configurazione nu. Puoi controllare la posizione di questo file eseguendo `percorso di configurazione` in nu.
```toml
startup = [
@@ -157,7 +157,7 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
#### Xonsh
- Add the following to the end of `~/.xonshrc`:
+ Aggiungi quanto segue alla fine di `~/.xonshrc`:
```sh
# ~/.xonshrc
diff --git a/docs/it-IT/advanced-config/README.md b/docs/it-IT/advanced-config/README.md
index 6e74418c..9da84da9 100644
--- a/docs/it-IT/advanced-config/README.md
+++ b/docs/it-IT/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
-## Stringhe di stile
+## Enable Right Prompt
-Le stringhe di stile sono un elenco di parole, separate da spazi bianchi. Le parole non sono sensibili alle maiuscole (cioè `grassetto` e `BoLd` sono considerate la stessa stringa). Ogni parola può essere una delle seguenti:
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
+## Stile delle Stringhe
+
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `italic`
@@ -82,14 +109,14 @@ Le stringhe di stile sono un elenco di parole, separate da spazi bianchi. Le par
- `
`
- `none`
-dove `` è un colore specifico (discusso in seguito). `fg:` e `` attualmente fanno la stessa cosa, anche se questo potrebbe cambiare in futuro. `inverted` scambia lo sfondo e i colori in primo piano. L'ordine delle parole nella stringa non conta.
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-Il token `none` sovrascrive tutti gli altri token in una stringa se non fa parte di uno specificatore `bg:`, così ad esempio `fg:red none fg:blue` creerà una stringa senza stile. `bg:none` imposta come colore di sfondo quello predefinito così `fg:red bg:none` è equivalente a `red` o `fg:red` e `bg:green fg:red bg:none` è equivalente a `fg:red` o `red`. Potrà diventare un errore usare `none` in combinazione con altri token in futuro.
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-Uno colore specifico può essere uno di questi:
+A color specifier can be one of the following:
- Uno dei colori standard del terminale: `nero`, `rosso`, `verde`, `blu`, `giallo`, `viola`, `ciano`, `bianco`. Puoi eventualmente utilizzare il prefisso `bright-` per ottenere la versione luminosa (es. `bright-white`).
- Un `#` seguito da un valore esadecimale a sei cifre. Questo specifica un [colore esagesimale in RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- Un numero compreso tra 0-255. Specifica un [codice colore ANSI a 8 bit](https://i.stack.imgur.com/KTSQa.png).
-Se sono specificati più colori per il primo piano/sfondo, l'ultimo nella stringa avrà la priorità.
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/it-IT/config/README.md b/docs/it-IT/config/README.md
index 7885b026..5963aac8 100644
--- a/docs/it-IT/config/README.md
+++ b/docs/it-IT/config/README.md
@@ -65,9 +65,9 @@ Una variabile contiene un simbolo `$` seguito dal nome della variabile. Il nome
Per esempio:
-- `$version` is a format string with a variable named `version`.
-- `$git_branch$git_commit` is a format string with two variables named `git_branch` and `git_commit`.
-- `$git_branch $git_commit` has the two variables separated with a space.
+- `$version` è una stringa di formato con una variabile chiamata `version`.
+- `$git_branch$git_commit` è una stringa di formato con due variabili denominate `git_branch` e `git_commit`.
+- `$git_branch $git_commit` ha le due variabili separate con uno spazio.
#### Gruppo Testo
@@ -75,30 +75,30 @@ Un gruppo di testo è composto da due parti diverse.
La prima parte, che è racchiusa tra `[]`, è una [format string](#format-strings). È possibile aggiungere testi, variabili o anche gruppi annidati di testo.
-Nella seconda parte, che è racchiusa tra `()`, è un [style string](#style-strings). Questo può essere usato stile la prima parte.
+Nella seconda parte, che è racchiusa tra `()`, è un [style string](#style-strings). This can be used to style the first part.
Per esempio:
-- `[on](red bold)` will print a string `on` with bold text colored red.
-- `[⌘ $version](bold green)` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
-- `[a [b](red) c](green)` will print `a b c` with `b` red, and `a` and `c` green.
+- `[on](rosso grassetto)` stamperà una stringa `on` con testo in grassetto di colore rosso.
+- `[⌘ $version](grassetto verde)` stamperà un simbolo `⌘` seguito dal contenuto della variabile `version`, con testo grassetto di colore verde.
+- `[a [b](rosso) c](verde)` stamperà `a b c` con `b` rosso, e `a` e `c` verde.
-#### Stringhe di stile
+#### Stile delle Stringhe
-Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/).
+La maggior parte dei moduli in starship ti permettono di configurare i loro stili di visualizzazione. Questo viene fatto con una voce (solitamente chiamata `style`) che è una stringa che specifica la configurazione. Ecco alcuni esempi di stringhe di stile per quello che fanno. Per maggiori dettagli sulla sintassi completa, consulta la [guida di configurazione avanzata](/advanced-config/).
-- `"fg:green bg:blue"` sets green text on a blue background
-- `"bg:blue fg:bright-green"` sets bright green text on a blue background
-- `"bold fg:27"` sets bold text with [ANSI color](https://i.stack.imgur.com/KTSQa.png) 27
-- `"underline bg:#bf5700"` sets underlined text on a burnt orange background
-- `"bold italic fg:purple"` sets bold italic purple text
-- `""` explicitly disables all styling
+- `"fg:green bg:blue"` imposta il testo verde su uno sfondo blu
+- `"bg:blue fg:bright-green"` imposta un testo verde brillante su uno sfondo blu
+- `"bold fg:27"` imposta il testo in grassetto con [ANSI color](https://i.stack.imgur.com/KTSQa.png) 27
+- `"underline bg:#bf5700"` imposta il testo sottolineato su uno sfondo arancione scuro
+- `"bold italic fg:purple"` imposta il testo viola in corsivo e grassetto
+- `""` disabilita esplicitamente tutti gli stili
-Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics.
+Nota che quello che assomiglia allo stile sarà controllato dal tuo emulatore terminale. Ad esempio, alcuni emulatori di terminale renderanno luminosi i colori invece del testo in grassetto, e alcuni temi colorati useranno gli stessi valori per i colori normali e luminosi. Inoltre, per ottenere il testo in corsivo, il tuo terminale deve supportare il corsivo.
-#### Conditional Format Strings
+#### Formattazione condizionale delle stringhe
-A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty.
+Una stringa di formato condizionale inserita in `(` e `)` non verrà presentata se tutte le variabili interne sono vuote.
Per esempio:
@@ -108,7 +108,7 @@ Per esempio:
#### Escapable characters
-The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`).
+I seguenti simboli hanno un uso speciale in una stringa di formato. If you want to print the following symbols, you have to escape them with a backslash (`\`).
- \$
- \\
@@ -140,16 +140,18 @@ format = '''
This is the list of prompt-wide configuration options.
-### Options
+### Opzioni
-| Option | Default | Description |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Opzione | Default | Descrizione |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configura il formato del prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
-### Example
+
+### Esempio
```toml
# ~/.config/starship.toml
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,6 +243,13 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
@@ -250,7 +262,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------- |
| `format` | `'on [$symbol($profile )(\($region\) )(\[$duration\])]($style)'` | The format for the module. |
| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
@@ -261,7 +273,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ---------------- | ------------------------------------------- |
| region | `ap-northeast-1` | The current AWS region |
| profile | `astronauts` | The current AWS profile |
@@ -318,7 +330,7 @@ The `battery` module shows how charged the device's battery is and its current c
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| -------------------- | --------------------------------- | --------------------------------------------------- |
| `full_symbol` | `" "` | The symbol shown when the battery is full. |
| `charging_symbol` | `" "` | The symbol shown when the battery is charging. |
@@ -356,7 +368,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
The `display` option is an array of the following table.
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| -------------------- | ---------- | --------------------------------------------------------------------------------------------------------- |
| `threshold` | `10` | The upper bound for the display option. |
| `style` | `bold red` | The style used if the display option is in use. |
@@ -404,7 +416,7 @@ By default it only changes color. If you also want to change its shape take a lo
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ---------------- | ------------------- | -------------------------------------------------------------------------------- |
| `format` | `"$symbol "` | The format string used before the text input. |
| `success_symbol` | `"[❯](bold green)"` | The format string used before the text input if the previous command succeeded. |
@@ -414,7 +426,7 @@ By default it only changes color. If you also want to change its shape take a lo
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| -------- | ------- | --------------------------------------------------------------------- |
| symbol | | A mirror of either `success_symbol`, `error_symbol` or `vicmd_symbol` |
@@ -458,7 +470,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -471,7 +483,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | --------- | ------------------------------------ |
| version | `v3.17.3` | The version of cmake |
| symbol | | Mirrors the value of option `symbol` |
@@ -479,6 +491,36 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
+## COBOL / GNUCOBOL
+
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
+
+### Options
+
+| Opzione | Default | Descrizione |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | The style for the module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| Variable | Example | Descrizione |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
## Durata del comando
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
@@ -493,7 +535,7 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| -------------------- | ----------------------------- | ---------------------------------------------------------- |
| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
@@ -511,7 +553,7 @@ Showing desktop notifications requires starship to be built with `rust-notify` s
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | --------------------------------------- |
| duration | `16m40s` | The time it took to execute the command |
| style\* | | Mirrors the value of option `style` |
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -540,7 +582,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
| `symbol` | `"🅒 "` | The symbol used before the environment name. |
@@ -551,7 +593,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| ----------- | ------------ | ------------------------------------ |
| environment | `astronauts` | The current conda environment |
| symbol | | Mirrors the value of option `symbol` |
@@ -577,7 +619,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
@@ -590,7 +632,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | --------- | ------------------------------------ |
| version | `v0.32.1` | The version of `crystal` |
| symbol | | Mirrors the value of option `symbol` |
@@ -617,7 +659,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -630,7 +672,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v2.8.4` | The version of `dart` |
| symbol | | Mirrors the value of option `symbol` |
@@ -654,7 +696,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -667,7 +709,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v1.8.3` | The version of `deno` |
| symbol | | Mirrors the value of option `symbol` |
@@ -692,7 +734,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
@@ -707,7 +749,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
This module has a few advanced configuration options that control how the directory is displayed.
-| Advanced Option | Default | Description |
+| Advanced Option | Default | Descrizione |
| --------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `substitutions` | | A table of substitutions to be made to the path. |
| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
@@ -727,7 +769,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | --------------------- | ----------------------------------- |
| path | `"D:/Projects"` | The current directory path |
| style\* | `"black bold dimmed"` | Mirrors the value of option `style` |
@@ -750,7 +792,7 @@ The `docker_context` module shows the currently active [Docker context](https://
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `format` | `"via [$symbol$context]($style) "` | The format for the module. |
| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
@@ -763,7 +805,7 @@ The `docker_context` module shows the currently active [Docker context](https://
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------------- | ------------------------------------ |
| context | `test_context` | The current docker context |
| symbol | | Mirrors the value of option `symbol` |
@@ -803,7 +845,7 @@ The module will also show the Target Framework Moniker ( ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
@@ -2069,7 +2141,7 @@ The `package` module is shown when the current directory is the repository for a
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v1.0.0` | The version of your package |
| symbol | | Mirrors the value of option `symbol` |
@@ -2098,7 +2170,7 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2111,7 +2183,7 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | --------- | ------------------------------------ |
| version | `v5.26.1` | The version of `perl` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2136,7 +2208,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2149,7 +2221,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v7.3.8` | The version of `php` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2175,7 +2247,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2188,7 +2260,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `0.13.5` | The version of `purescript` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2225,7 +2297,7 @@ By default the module will be shown if any of the following conditions are met:
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2249,7 +2321,7 @@ The default values and order for `python_binary` was chosen to first identify th
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| ------------ | --------------- | ------------------------------------------ |
| version | `"v3.8.1"` | The version of `python` |
| symbol | `"🐍 "` | Mirrors the value of option `symbol` |
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2308,7 +2380,7 @@ The `rlang` module shows the currently installed version of R. The module will b
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2321,7 +2393,7 @@ The `rlang` module shows the currently installed version of R. The module will b
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| -------- | ------------- | ------------------------------------ |
| version | `v4.0.5` | The version of `R` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2344,7 +2416,7 @@ By default the `red` module shows the currently installed version of [Red](https
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2357,7 +2429,7 @@ By default the `red` module shows the currently installed version of [Red](https
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v2.5.1` | The version of `red` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2384,7 +2456,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2397,7 +2469,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v2.5.1` | The version of `ruby` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2423,7 +2495,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2436,7 +2508,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ----------------- | ------------------------------------ |
| version | `v1.43.0-nightly` | The version of `rustc` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2463,7 +2535,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ---------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [${symbol}(${version} )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2476,7 +2548,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `2.13.5` | The version of `scala` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2505,7 +2577,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ---------------------- | ------------ | ------------------------------------------------------------ |
| `bash_indicator` | `bsh` | A format string used to represent bash. |
| `fish_indicator` | `fsh` | A format string used to represent fish. |
@@ -2521,7 +2593,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Variables
-| Variable | Default | Description |
+| Variable | Default | Descrizione |
| --------- | ------- | ---------------------------------------------------------- |
| indicator | | Mirrors the value of `indicator` for currently used shell. |
@@ -2539,11 +2611,11 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
@@ -2554,7 +2626,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ------- | ------------------------------------ |
| shlvl | `3` | The current value of `SHLVL` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2579,7 +2651,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ---------- | -------------------------------- | ------------------------------------------------ |
| `format` | `'[$symbol\[$env\]]($style) '` | The format for the module. |
| `symbol` | `""` | A format string displayed before the image name. |
@@ -2588,7 +2660,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ------------ | ------------------------------------ |
| env | `centos.img` | The current Singularity image |
| symbol | | Mirrors the value of option `symbol` |
@@ -2619,7 +2691,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| `format` | `"[$symbol$status]($style) "` | The format of the module |
| `symbol` | `"✖"` | The symbol displayed on program error |
@@ -2638,7 +2710,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
| int | `127` | The exit code of the last command |
@@ -2676,7 +2748,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2689,7 +2761,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v5.2.4` | The version of `swift` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2723,7 +2795,7 @@ By default the module will be shown if any of the following conditions are met:
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2736,7 +2808,7 @@ By default the module will be shown if any of the following conditions are met:
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ---------- | ------------------------------------ |
| version | `v0.12.24` | The version of `terraform` |
| workspace | `default` | The current Terraform workspace |
@@ -2777,7 +2849,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `format` | `"at [$time]($style) "` | The format string for the module. |
| `use_12hr` | `false` | Enables 12 hour formatting |
@@ -2791,9 +2863,9 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ---------- | ----------------------------------- |
-| ora | `13:08:10` | The current time. |
+| time | `13:08:10` | The current time. |
| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2828,7 +2900,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------- | ----------------------- | ------------------------------------- |
| `style_root` | `"bold red"` | The style used when the user is root. |
| `style_user` | `"bold yellow"` | The style used for non-root users. |
@@ -2838,7 +2910,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| -------- | ------------ | ------------------------------------------------------------------------------------------- |
| `style` | `"red bold"` | Mirrors the value of option `style_root` when root is logged in and `style_user` otherwise. |
| `user` | `"matchai"` | The currently logged-in user ID. |
@@ -2864,7 +2936,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2877,7 +2949,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ---------------- | ------------------------------------ |
| version | `Vagrant 2.2.10` | The version of `Vagrant` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2894,15 +2966,15 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2915,7 +2987,7 @@ The `vlang` module shows you your currently installed version of V. By default t
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ------- | ------------------------------------ |
| version | `v0.2` | The version of `v` |
| symbol | | Mirrors the value of option `symbol` |
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2935,7 +3007,7 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ---------- | -------------------------------- | ------------------------------------------------------ |
| `symbol` | | The symbol used before displaying the repository name. |
| `style` | `"bold yellow"` | The style for the module. |
@@ -2944,7 +3016,7 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | ------------------------------------------- | ------------------------------------ |
| repo | `dotfiles` if in a VCSH repo named dotfiles | The active repository name |
| symbol | | Mirrors the value of option `symbol` |
@@ -2969,7 +3041,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2982,7 +3054,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
### Variables
-| Variable | Example | Description |
+| Variable | Example | Descrizione |
| --------- | -------- | ------------------------------------ |
| version | `v0.6.0` | The version of `zig` |
| symbol | | Mirrors the value of option `symbol` |
@@ -3031,7 +3103,7 @@ The order in which custom modules are shown can be individually set by including
### Options
-| Option | Default | Description |
+| Opzione | Default | Descrizione |
| ------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
@@ -3048,7 +3120,7 @@ The order in which custom modules are shown can be individually set by including
### Variables
-| Variable | Description |
+| Variable | Descrizione |
| --------- | -------------------------------------- |
| output | The output of shell command in `shell` |
| symbol | Mirrors the value of option `symbol` |
diff --git a/docs/it-IT/guide/README.md b/docs/it-IT/guide/README.md
index 28a8172e..36041279 100644
--- a/docs/it-IT/guide/README.md
+++ b/docs/it-IT/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="Inglese"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Per aggiornare Starship stesso, riavviare lo script sopra. Sostituirà la versione corrente senza toccare la configurazione di Starship.
+ Per aggiornare Starship stesso, riavviare lo script sopra. Sostituirà la versione corrente senza toccare la configurazione di Starship.
**Nota** - I valori predefiniti dello script di installazione possono essere sovrascritti, vedi la guida integrata.
@@ -266,7 +274,7 @@
#### Xonsh
- Add the following to the end of `~/.xonshrc`:
+ Aggiungi quanto segue alla fine di `~/.xonshrc`:
```sh
# ~/.xonshrc
@@ -277,7 +285,7 @@
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **Warning** This will change in the future. È supportata solo la versione v0.33 o superiore. Add the following to your nu config file. Puoi controllare la posizione di questo file eseguendo `percorso di configurazione` in nu.
```toml
startup = [
diff --git a/docs/it-IT/installing/README.md b/docs/it-IT/installing/README.md
index a1bcb0dd..ebd18d9a 100644
--- a/docs/it-IT/installing/README.md
+++ b/docs/it-IT/installing/README.md
@@ -1,21 +1,21 @@
-# 🚀 Advanced Installation
+# 🚀 Installazione Avanzata
-To install starship, you need to do two things:
+Per installare starship, è necessario fare due cose:
-1. Get the **starship** binary onto your computer
-1. Tell your shell to use the starship binary as its prompt by modifying its init scripts
+1. Ottieni il binario **starship** sul tuo computer
+1. Indica alla tua shell di usare il binario starship come prompt modificando i suoi script in init
-For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed.
+Per la maggior parte degli utenti, le istruzioni nella [pagina principale](/guide/#🚀-installation) funzioneranno bene. Tuttavia, per alcune piattaforme più specializzate, sono necessarie istruzioni diverse.
-There are so many platforms out there that they didn't fit into the main README.md file, so here are some installation instructions for other platforms from the community. Is yours not here? Please do add it here if you figure it out!
+Ci sono così tante piattaforme là fuori che non sono tutte inserite nel README.md principale, così ecco alcune istruzioni di installazione per altre piattaforme della community. La tua non c'è? Per favore, aggiungilo qui se capisci che manca!
## [Chocolatey](https://chocolatey.org)
### Prerequisiti
-Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
+Vai alla pagina di installazione [Chocolatey](https://chocolatey.org/install) e segui le istruzioni per installare Chocolatey.
-### Installation
+### Installazione
```powershell
choco install starship
@@ -29,7 +29,7 @@ choco install starship
pkg install getconf
```
-### Installation
+### Installazione
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com.termux/files/usr/bin
@@ -37,17 +37,17 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com
## [Nix](https://nixos.wiki/wiki/Nix)
-### Getting the Binary
+### Ottenere il Binario
-#### Imperatively
+#### Imperativo
```sh
nix-env -iA nixos.starship
```
-#### Declarative, single user, via [home-manager](https://github.com/nix-community/home-manager)
+#### Dichiarativo, singolo utente, tramite [home-manager](https://github.com/nix-community/home-manager)
-Enable the `programs.starship` module in your `home.nix` file, and add your settings
+Abilita il modulo `programs.starship` nel tuo file `home.nix` e aggiungi le tue impostazioni
```nix
{
@@ -69,15 +69,15 @@ Enable the `programs.starship` module in your `home.nix` file, and add your sett
}
```
-then run
+poi eseguire
```sh
home-manager switch
```
-#### Declarative, system-wide, with NixOS
+#### Dichiarativa, di sistema, con NixOS
-Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
+Aggiungi `pkgs.starship` a `environment.systemPackages` in `configuration.nix`, poi esegui
```sh
sudo nixos-rebuild switch
diff --git a/docs/it-IT/presets/README.md b/docs/it-IT/presets/README.md
index 21a8d714..ca8e990c 100644
--- a/docs/it-IT/presets/README.md
+++ b/docs/it-IT/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/ja-JP/advanced-config/README.md b/docs/ja-JP/advanced-config/README.md
index cb6ea0c5..d84175d4 100644
--- a/docs/ja-JP/advanced-config/README.md
+++ b/docs/ja-JP/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### 設定例
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## スタイルの設定
-スタイル文字列は空白で区切られた単語のリストです。 大文字小文字を区別しません(例えば、 `bold` と`BoLd` は同じだとみなされます)。 それぞれ以下のいずれか一つが該当します。
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `italic`
@@ -82,14 +109,14 @@ starship_precmd_user_func="set_win_title"
- ``
- `none`
-ここで、 `` は色を指定します(以下で述べます)。 現在 `fg:` と `` は同様の動作ですが、将来変更される可能性があります。 `inverted` は背景と前景の色を交換します。 文字列中の単語の順序は関係ありません。
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-`none` トークンは、文字列中の`bg:` 指定子の一部でない場合、他のすべてのトークンをオーバーライドします。そのため、たとえば、`fg:red none fg:blue` と指定した場合、スタイルなしの文字列が作られます。 `bg:none` は背景色をデフォルトの色にセットするので、`fg:red bg:none` は `red` や `fg:red` と同じ意味になり、`bg:green fg:red bg:none` も `fg:red` や `red` と同じ意味になります。 将来 `none` を他の単語と一緒に使用することはエラーになるかもしれません。
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-色は以下のいずれか1つを指定できます。
+A color specifier can be one of the following:
- 標準的なターミナルカラーの `black`、 `red`、 `green`、 `blue`、 `yellow`、 `purple`、 `cyan`、 `white`。 必要に応じて、より明るい色を得るために `bright-` を前につけることができます。(例えば、 `bright-white` )
- `#` に続く16進数。 [RGB の16進数カラーコード](https://www.w3schools.com/colors/colors_hexadecimal.asp)を表します。
- 0-255 までの間の数字。 [8-bit ANSI カラーコード](https://i.stack.imgur.com/KTSQa.png) を表します。
-複数の色が文字色/背景色に指定された際には、最後の指定が優先して選ばれます。
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md
index 6bc97ec4..a1de5607 100644
--- a/docs/ja-JP/config/README.md
+++ b/docs/ja-JP/config/README.md
@@ -75,7 +75,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
`[]`で囲まれている最初の部分は、 [フォーマット文字列](#format-strings) です。 テキスト、変数、または入れ子になったテキストグループを追加できます。
-2 番目の部分では、 `()`で囲まれている [スタイル文字列](#style-strings) です。 これは最初のパートのスタイルを使用することができます。
+2 番目の部分では、 `()`で囲まれている [スタイル文字列](#style-strings) です。 This can be used to style the first part.
例:
@@ -142,12 +142,14 @@ format = '''
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | ------------------------------ | ------------------------------------------------- |
-| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
-| `scan_timeout` | `30` | ファイルをスキャンする際のタイムアウト時間 (milliseconds) です。 |
-| `command_timeout` | `500` | Starshipによって実行されたコマンドのタイムアウト時間 (milliseconds) です。 |
-| `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 |
+| オプション | デフォルト | 説明 |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | プロンプトの形式を設定します。 |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### 設定例
@@ -180,6 +182,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -192,6 +195,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -203,6 +207,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -210,6 +215,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -230,7 +236,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -239,13 +244,20 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-`aws` モジュールは現在のAWSプロファイルが表示されます。 これは `~/.aws/config` に記述されている `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` 環境変数に基づいています。 This module also shows an expiration timer when using temporary credentials.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
-[awsu](https://github.com/kreuzwerker/awsu) を使う場合、そのプロファイルは環境変数 `AWSU_PROFILE` から読まれます。
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFILE` env var and the credentials expiration date is read from the `AWSUME_EXPIRATION` env var.
@@ -270,7 +282,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -315,7 +327,7 @@ symbol = "🅰 "
## バッテリー
-`battery`モジュールは、デバイスのバッテリー残量と現在の充電状態を示します。 モジュールは、デバイスのバッテリー残量が10%未満の場合にのみ表示されます。
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### オプション
@@ -343,7 +355,7 @@ discharging_symbol = "💀 "
### バッテリーの表示
-`display`オプションを使用して、バッテリーインジケーターを表示するタイミング(threshold)、どのシンボルが使われるか(symbol) と外観(style)を定義します。 `display` が提供されない場合、 デフォルトは次のとおりです。
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. デフォルトは次のとおりです。
```toml
[[battery.display]]
@@ -351,11 +363,11 @@ threshold = 10
style = "bold red"
```
-`charging_symbol`と`discharging_symbol`オプションのデフォルト値はそれぞれ`battery`の `charging_symbol`と`discharging_symbol`になります。
+The default value for the `charging_symbol` and `discharging_symbol` option is respectively the value of `battery`'s `charging_symbol` and `discharging_symbol` option.
#### オプション
-`display`オプションは、次の表の通りです。
+The `display` option is an array of the following table.
| オプション | デフォルト | 説明 |
| -------------------- | ---------- | -------------------------------------------------------------------------------------- |
@@ -367,29 +379,29 @@ style = "bold red"
#### 設定例
```toml
-[[battery.display]] # "bold red"のスタイルとバッテリー残量が0%~10%の放電時のシンボル
+[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = "bold red"
-[[battery.display]] # "bold yellow"のスタイルとバッテリー残量が10%~30%の放電時の💦シンボル
+[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
discharging_symbol = 💦
-# 残量が30%以上の場合バッテリーインジケータは表示されません
+# when capacity is over 30%, the battery indicator will not be displayed
```
## 文字
-`character`モジュールは、端末でテキストが入力される場所の横に文字(通常は矢印)を表示します。
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-文字は、最後のコマンドが成功したかどうかを示します。 表し方は下記の2つです。
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- 色の変更 (`赤`/`緑`)
- プロンプトの表示の変更 (`❯`/`✖`)
-デフォルトでは、色だけが変更されます。 形も変えてみたい場合は[このサンプル](#with-custom-error-shape)も参考にしてください。
+By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
::: warning
@@ -399,7 +411,7 @@ discharging_symbol = 💦
::: warning
-`vicmd_symbol`はfishとzshのみでサポートされています。
+`vicmd_symbol` is only supported in fish and zsh.
:::
@@ -452,7 +464,7 @@ vicmd_symbol = "[V](bold green) "
## CMake
-`cmake`モジュールは、現在インストールされている[Cmake](https://cmake.org/)のバージョンを表示します。 デフォルトでは次のいずれかの条件が満たされると、モジュールがアクティブになります。
+The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). By default the module will be activated if any of the following conditions are met:
- カレントディレクトリに `CMakeLists.txt` ファイルが含まれている
- カレントディレクトリに `CMakeCache.txt` ファイルが含まれている
@@ -478,46 +490,76 @@ vicmd_symbol = "[V](bold green) "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
-## コマンド実行時間
+## COBOL / GNUCOBOL
-`cmd_duration`モジュールは、最後のコマンドの実行にかかった時間を示します。 モジュールが表示されるのは、コマンドが2秒以上かかった場合、または`min_time`値が存在する場合のみです。
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: warning BashでDEBUGトラップをhookしない
-
-`bash`でStarshipを実行している場合、 `eval $(starship init $0)`実行した後に`DEBUG`トラップをフックしないでください。そうしないと、このモジュールが**おそらくですが**壊れます。
-
-:::
-
-preexecのような機能を必要とするBashユーザーは、 [rcalorasのbash_preexecフレームワーク](https://github.com/rcaloras/bash-preexec)を使用できます。 `eval $(starship init $0)` を実行する前に、`preexec_functions`、および`precmd_functions`定義するだけで、通常どおり続行します。
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### オプション
-| オプション | デフォルト | 説明 |
-| -------------------- | ----------------------------- | --------------------------- |
-| `min_time` | `2_000` | 実行時間を表示する最短期間(ミリ秒単位)です。 |
-| `show_milliseconds` | `false` | 実行時間の秒に加えてミリ秒を表示します。 |
-| `format` | `"took [$duration]($style) "` | moduleのフォーマットです。 |
-| `style` | `"bold yellow"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `cmd_duration`モジュールを無効にします。 |
-| `show_notifications` | `false` | コマンドが完了したらデスクトップ通知を表示します。 |
-| `min_time_to_notify` | `45_000` | 通知を持続する最短期間(ミリ秒単位) |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
+| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `style` | `"bold blue"` | モジュールのスタイルです。 |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| --------- | ---------- | ---------------------- |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | オプション `記号` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
+
+\*: This variable can only be used as a part of a style string
+
+## Command Duration
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | moduleのフォーマットです。 |
+| `style` | `"bold yellow"` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
::: tip
-デスクトップ通知を表示するには、 `rust-notify` をサポートしているstarshipをビルドする必要があります。 `show_notifications` が `true` となっている状態で `STARSHIP_LOG=debug starship module cmd_duration -d 60000` を実行することにより、starshipが通知をサポートしているかを確認することができます。
+Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
:::
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | -------- | ---------------------- |
-| duration | `16m40s` | コマンドの実行時間 |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | -------- | --------------------------------------- |
+| duration | `16m40s` | The time it took to execute the command |
+| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -531,34 +573,34 @@ format = "underwent [$duration](bold yellow)"
## Conda
-`$CONDA_DEFAULT_ENV`が設定されている場合、`conda`モジュールは現在のcondaの環境を表示します。
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
-Note: これはconda自身の プロンプト修飾子 を抑制しません。`conda config --set changeps1 False` で実行することができます。
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | 環境が`conda create -p [path]`で作成された場合、環境パスが切り捨てられるディレクトリ数。 `0`は切り捨てがないことを意味します。 [`directory`](#directory)もご覧ください。 |
-| `symbol` | `"🅒 "` | 環境名の直前に使用されるシンボルです。 |
-| `style` | `"bold green"` | モジュールのスタイルです。 |
-| `format` | `"via [$symbol$environment]($style) "` | moduleのフォーマットです。 |
-| `ignore_base` | `true` | アクティブになった時、環境`base`を無視します。 |
-| `disabled` | `false` | `conda`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | モジュールのスタイルです。 |
+| `format` | `"via [$symbol$environment]($style) "` | moduleのフォーマットです。 |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### 変数
-| 変数 | 設定例 | 説明 |
-| ----------- | ------------ | ---------------------- |
-| environment | `astronauts` | 現在の conda 環境 |
-| symbol | | オプション `記号` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| ----------- | ------------ | ----------------------------- |
+| environment | `astronauts` | The current conda environment |
+| symbol | | オプション `記号` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -571,33 +613,33 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-`crystal`モジュールは、現在インストールされている[Crystal](https://crystal-lang.org/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`shard.yml`ファイルが含まれている
-- カレントディレクトリに`.cr`の拡張子のファイルが含まれている
+- The current directory contains a `shard.yml` file
+- The current directory contains a `.cr` file
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------ |
-| `symbol` | `"🔮 "` | Crystalのバージョンを表示する前に使用される記号です。 |
-| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
-| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `style` | `"bold red"` | モジュールのスタイルです。 |
-| `detect_extensions` | `["cr"]` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `["shard.yml"]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `disabled` | `false` | `crystal`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | --------------------------------------------------------- |
+| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
+| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
+| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `style` | `"bold red"` | モジュールのスタイルです。 |
+| `detect_extensions` | `["cr"]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `["shard.yml"]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `disabled` | `false` | Disables the `crystal` module. |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | --------- | ---------------------- |
-| version | `v0.32.1` | `crystal` のバージョン |
-| symbol | | オプション `記号` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | --------- | ------------------------ |
+| version | `v0.32.1` | The version of `crystal` |
+| symbol | | オプション `記号` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -610,34 +652,34 @@ format = "via [✨ $version](bold blue) "
## Dart
-`dart`モジュールは、現在インストールされている[Dart](https://dart.dev/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+The `dart` module shows the currently installed version of [Dart](https://dart.dev/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`.dart`の拡張子のファイルが含まれている
-- カレントディレクトリに`.dart_tool`ディレクトリが含まれている
-- カレントディレクトリに`pubspec.yaml`, `pubspec.yml`,もしくは`pubspec.lock`が含まれている
+- The current directory contains a file with `.dart` extension
+- The current directory contains a `.dart_tool` directory
+- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
### オプション
| オプション | デフォルト | 説明 |
| ------------------- | ------------------------------------------------- | ------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
+| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `"🎯 "` | Dartのシンボルを表すフォーマット文字列 |
+| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
| `detect_extensions` | `["dart"]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `["pubspec.yaml", "pubspec.yml", "pubspec.lock"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[".dart_tool"]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `"bold blue"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `dart`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `dart` module. |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ---------------------- |
-| version | `v2.8.4` | `dart` のバージョン |
+| version | `v2.8.4` | The version of `dart` |
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -650,27 +692,27 @@ format = "via [🔰 $version](bold red) "
## Deno
-`deno`モジュールは、現在インストールされている[Deno](https://deno.land/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`mod.ts`、`mod.js`、`deps.ts`か`deps.js`が含まれている
+The `deno` module shows you your currently installed version of [Deno](https://deno.land/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+- The current directory contains a `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
### オプション
| オプション | デフォルト | 説明 |
| ------------------- | -------------------------------------------- | ------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
+| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `"🦕 "` | Dart のシンボルを表すフォーマット文字列 |
+| `symbol` | `"🦕 "` | A format string representing the symbol of Deno |
| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `["mod.ts", "mod.js", "deps.ts", "deps.js"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `"green bold"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `deno`モジュールを無効化します。 |
+| `disabled` | `false` | Disables the `deno` module. |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | -------- | ---------------------- |
-| version | `v1.8.3` | `deno`のバージョン |
+| version | `v1.8.3` | The version of `deno` |
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
@@ -685,33 +727,33 @@ format = "via [🦕 $version](green bold) "
## Directory
-`directory`モジュールには、現在のディレクトリへのパスが表示され、3つの親フォルダは切り捨てられます。 ディレクトリは、現在のgitリポジトリであるとルートとなります。
+The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
-fishスタイルのpwdオプションを使用すると、切り捨てられたパスを非表示にする代わりに、オプションで有効にした番号に基づいて各ディレクトリの短縮名が表示されます。
+When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
-例として、`~/Dev/Nix/nixpkgs/pkgs`で、`nixpkgs`がリポジトリルートであり、オプションが`1`に設定されている場合を挙げます。 以前は`nixpkgs/pkgs`でしたが、`~/D/N/nixpkgs/pkgs`が表示されます。
+For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | -------------------------------------------------- | ----------------------------------------------------- |
-| `truncation_length` | `3` | 現在のディレクトリを切り捨てる親フォルダーの数です。 |
-| `truncate_to_repo` | `true` | 現在いるgitリポジトリのルートに切り捨てるかどうかです。 |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | moduleのフォーマットです。 |
-| `style` | `"bold cyan"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `directory`モジュールを無効にします。 |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
-| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| オプション | デフォルト | 説明 |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | moduleのフォーマットです。 |
+| `style` | `"bold cyan"` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
-このモジュールは、どのようにディレクトリを表示するかについての高度なオプションをいくつか持っています。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | デフォルト | 説明 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | fish shellのpwdパスロジックを適用するときに使用する文字数です。 |
+| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
| `use_logical_path` | `true` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD.
@@ -728,12 +770,12 @@ fishスタイルのpwdオプションを使用すると、切り捨てられた
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | --------------------- | ---------------------- |
-| path | `"D:/Projects"` | カレントディレクトリのパス |
-| style\* | `"black bold dimmed"` | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | --------------------- | -------------------------- |
+| path | `"D:/Projects"` | The current directory path |
+| style\* | `"black bold dimmed"` | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -751,26 +793,26 @@ The `docker_context` module shows the currently active [Docker context](https://
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ---------------------------------- | -------------------------------------------------------------- |
-| `format` | `"via [$symbol$context]($style) "` | moduleのフォーマットです。 |
-| `symbol` | `"🐳 "` | Dockerコンテキストを表示する前に使用される記号です。 |
-| `only_with_files` | `true` | ファイルに一致する場合にのみ表示 |
-| `detect_extensions` | `[]` | どの拡張子がこのモジュールをトリガーするか(`only_with_files`がtrueになっている必要があります)。 |
-| `detect_files` | `The format for the module.` | どんなファイル名がこのモジュールをトリガーするか(`only_with_files`がtrueになっている必要があります)。 |
-| `detect_folders` | `[]` | どんなフォルダがこのモジュールをトリガーするか(`only_with_files`がtrueになっている必要があります)。 |
-| `style` | `"blue bold"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `docker_context`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
+| `format` | `"via [$symbol$context]($style) "` | moduleのフォーマットです。 |
+| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
+| `only_with_files` | `true` | Only show when there's a match |
+| `detect_extensions` | `[]` | Which extensions should trigger this module (needs `only_with_files` to be true). |
+| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Which filenames should trigger this module (needs `only_with_files` to be true). |
+| `detect_folders` | `[]` | Which folders should trigger this module (needs `only_with_files` to be true). |
+| `style` | `"blue bold"` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `docker_context` module. |
### 変数
-| 変数 | 設定例 | 説明 |
-| --------- | -------------- | ---------------------- |
-| context | `test_context` | 現在の Docker コンテキスト |
-| symbol | | オプション `記号` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| --------- | -------------- | -------------------------- |
+| context | `test_context` | The current docker context |
+| symbol | | オプション `記号` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -783,7 +825,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-`dotnet`モジュールはカレントディレクトリに関係する[.NET Core SDK](https://dotnet.microsoft.com/)のバージョンを表示します。 もし SDKは現在のディレクトリに固定されているのであれば、その固定されたバージョンが表示されます。 それ以外の場合、モジュール SDKの最新のインストールバージョンを示します。
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -798,23 +840,23 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
-内部的に、このモジュールは自身のバージョン検知のメカニズムを利用します。 `dotnet --version` を実行するより2倍速く実行できますが、.NET project一般的でないディレクトリlayoutの場合は間違ったバージョンが示されてしまうことがあります。 速度よりも精度が重要な場合は、次の方法でメカニズムを無効にできます。 モジュールオプションで`heuristic = false `を設定します。
+Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
The module will also show the Target Framework Moniker () when there is a csproj file in the current directory.
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
-| `format` | `"via [$symbol($version )(🎯 $tfm )]($style)"` | moduleのフォーマットです。 |
-| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `".NET "` | dotnetのバージョンを表示する前に使用される記号です。 |
-| `heuristic` | `true` | より高速なバージョン検出を使用して、starshipの動作を維持します。 |
-| `detect_extensions` | `["csproj", "fsproj", "xproj"]` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `["global.json", "project.json", "Directory.Build.props", "Directory.Build.targets", "Packages.props"]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `style` | `"bold blue"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `dotnet`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
+| `format` | `"via [$symbol($version )(🎯 $tfm )]($style)"` | moduleのフォーマットです。 |
+| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `".NET "` | The symbol used before displaying the version of dotnet. |
+| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
+| `detect_extensions` | `["csproj", "fsproj", "xproj"]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `["global.json", "project.json", "Directory.Build.props", "Directory.Build.targets", "Packages.props"]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `style` | `"bold blue"` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `dotnet` module. |
### 変数
@@ -825,7 +867,7 @@ The module will also show the Target Framework Moniker ( ⚠️ 表示されるバージョンは、パッケージマネージャーではなく、ソースコードが現在のディレクトリにあるパッケージのバージョンです。
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | --------------------------------- | --------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | moduleのフォーマットです。 |
-| `symbol` | `"📦 "` | パッケージのバージョンを表示する前に使用される記号です。 |
-| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `style` | `"bold 208"` | モジュールのスタイルです。 |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | `package`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ----------------- | --------------------------------- | ---------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | moduleのフォーマットです。 |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `style` | `"bold 208"` | モジュールのスタイルです。 |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### 変数
@@ -2076,7 +2148,7 @@ symbol = "☁️ "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2131,7 +2203,7 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`composer.json`ファイルが含まれている
+- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
- The current directory contains a `.php` extension
@@ -2141,12 +2213,12 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `"🐘 "` | PHPのバージョンを表示する前に使用される記号です。 |
+| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
| `detect_extensions` | `["php"]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `["composer.json", ".php-version"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `"147 bold"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `php`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `php` module. |
### 変数
@@ -2156,7 +2228,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2171,7 +2243,7 @@ format = "via [🔹 $version](147 bold) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`spago.dhall`ファイルが含まれている
+- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
### オプション
@@ -2195,7 +2267,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2210,19 +2282,19 @@ format = "via [$symbol$version](bold white)"
The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
-`pyenvversionname` が `true` に設定されている場合 、pyenv でのバージョン名が表示されます 。 そうでなければ、`python --version` を元にバージョン番号を表示します。
+If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`.python-version`ファイルが含まれている
-- カレントディレクトリに`Pipfile`ファイルが含まれている
+- The current directory contains a `.python-version` file
+- The current directory contains a `Pipfile` file
- The current directory contains a `__init__.py` file
-- カレントディレクトリに`pyproject.toml`ファイルが含まれている
-- カレントディレクトリに`requirements.txt`ファイルが含まれている
-- カレントディレクトリに`setup.py`ファイルが含まれている
-- カレントディレクトリに`tox.ini`ファイルが含まれている
-- カレントディレクトリに`.py`の拡張子のファイルが含まれている.
-- 仮想環境がアクティブである
+- The current directory contains a `pyproject.toml` file
+- The current directory contains a `requirements.txt` file
+- The current directory contains a `setup.py` file
+- The current directory contains a `tox.ini` file
+- The current directory contains a file with the `.py` extension.
+- A virtual environment is currently activated
### オプション
@@ -2232,13 +2304,13 @@ The `python` module shows the currently installed version of [Python](https://ww
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
| `style` | `"yellow bold"` | モジュールのスタイルです。 |
-| `pyenv_version_name` | `false` | pyenvを使用してPythonバージョンを取得します |
+| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `disabled` | `false` | `python`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `python` module. |
::: tip
@@ -2297,7 +2369,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2339,7 +2411,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2364,7 +2436,7 @@ By default the `red` module shows the currently installed version of [Red](https
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2377,11 +2449,11 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
-- カレントディレクトリに`Gemfile`ファイルが含まれている
+- The current directory contains a `Gemfile` file
- The current directory contains a `.ruby-version` file
-- カレントディレクトリに`.rb`の拡張子のファイルが含まれている
+- The current directory contains a `.rb` file
### オプション
@@ -2394,7 +2466,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| `detect_files` | `["Gemfile", ".ruby-version"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `"bold red"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `ruby`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `ruby` module. |
### 変数
@@ -2404,7 +2476,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2417,10 +2489,10 @@ symbol = "🔺 "
## Rust
-デフォルトでは`rust`モジュールは現在インストールされている[Rust](https://www.rust-lang.org/)のバージョンを表示します。 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
-- カレントディレクトリに`Cargo.toml`ファイルが含まれている
-- カレントディレクトリに`.rs`の拡張子のファイルが含まれている
+- The current directory contains a `Cargo.toml` file
+- The current directory contains a file with the `.rs` extension
### オプション
@@ -2428,22 +2500,22 @@ symbol = "🔺 "
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `"🦀 "` | Rustのシンボルを表すフォーマット文字列 |
+| `symbol` | `"🦀 "` | A format string representing the symbol of Rust |
| `detect_extensions` | `["rs"]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `["Cargo.toml"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `"bold red"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `rust`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `rust` module. |
### 変数
| 変数 | 設定例 | 説明 |
| --------- | ----------------- | ---------------------- |
-| version | `v1.43.0-nightly` | `rustc`のバージョン |
+| version | `v1.43.0-nightly` | The version of `rustc` |
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2483,7 +2555,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2500,7 +2572,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2540,7 +2612,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### オプション
@@ -2561,7 +2633,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2595,7 +2667,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2612,7 +2684,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2651,7 +2723,7 @@ The `status` module displays the exit code of the previous command. The module w
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2670,7 +2742,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2696,7 +2768,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2719,7 +2791,7 @@ By default the Terraform version is not shown, since this is slow for current ve
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
-- カレントディレクトリに`.terraform`フォルダが含まれている
+- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` or `.hcl` extensions
### オプション
@@ -2733,7 +2805,7 @@ By default the Terraform version is not shown, since this is slow for current ve
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[".terraform"]` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `"bold 105"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `terraform`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `terraform` module. |
### 変数
@@ -2744,7 +2816,7 @@ By default the Terraform version is not shown, since this is slow for current ve
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2768,36 +2840,36 @@ format = "[🏎💨 $workspace]($style) "
## Time
-`time`モジュールは、現在の**現地**時間を示します。 `format`設定は、時間の表示方法を制御するために[`chrono`](https://crates.io/crates/chrono)クレートによって使用されます。 使用可能なオプションを確認するには、[chrono strftimeのドキュメント](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)をご覧ください。
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
-| `format` | `"at [$time]($style) "` | The format string for the module. |
-| `use_12hr` | `false` | 12時間のフォーマットを有効にします。 |
-| `time_format` | この表の下を参照してください | 時刻のフォーマットに使用される[クロノフォーマット文字列](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) です。 |
-| `style` | `"bold yellow"` | モジュールのスタイルです。 |
-| `utc_time_offset` | `"local"` | 使用するUTCオフセットを設定します。 Range from -24 < x < 24. フロートが30/45分のタイムゾーンオフセットに対応できるようにします。 |
-| `disabled` | `true` | `time`モジュールを無効にします。 |
-| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
+| オプション | デフォルト | 説明 |
+| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
+| `format` | `"at [$time]($style) "` | The format string for the module. |
+| `use_12hr` | `false` | Enables 12 hour formatting |
+| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. |
+| `style` | `"bold yellow"` | The style for the module time |
+| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. |
+| `disabled` | `true` | Disables the `time` module. |
+| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. それ以外の場合、デフォルトは`"%T"`です。 Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### 変数
| 変数 | 設定例 | 説明 |
| --------- | ---------- | ---------------------- |
-| 時刻 | `13:08:10` | The current time. |
+| time | `13:08:10` | The current time. |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2812,14 +2884,14 @@ utc_time_offset = "-5"
time_range = "10:00:00-14:00:00"
```
-## ユーザー名
+## Username
-`username`モジュールには、アクティブなユーザーのユーザー名が表示されます。 次の条件のいずれかが満たされると、モジュールが表示されます。
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
-- カレントユーザーがroot
-- カレントユーザーが、ログインしているユーザーとは異なる
-- ユーザーがSSHセッションとして接続されている
-- `show_always`変数がtrueに設定されている
+- The current user is root
+- The current user isn't the same as the one that is logged in
+- The user is currently connected as an SSH session
+- The variable `show_always` is set to true
::: tip
@@ -2829,13 +2901,13 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### オプション
-| オプション | デフォルト | 説明 |
-| ------------- | ----------------------- | ------------------------- |
-| `style_root` | `"bold red"` | ユーザーがrootのときに使用されるスタイルです。 |
-| `style_user` | `"bold yellow"` | 非rootユーザーに使用されるスタイルです。 |
-| `format` | `"[$user]($style) in "` | moduleのフォーマットです。 |
-| `show_always` | `false` | `username`モジュールを常に表示します。 |
-| `disabled` | `false` | `username`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------- | ----------------------- | ------------------------------------- |
+| `style_root` | `"bold red"` | The style used when the user is root. |
+| `style_user` | `"bold yellow"` | The style used for non-root users. |
+| `format` | `"[$user]($style) in "` | moduleのフォーマットです。 |
+| `show_always` | `false` | Always shows the `username` module. |
+| `disabled` | `false` | Disables the `username` module. |
### 変数
@@ -2884,7 +2956,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2895,9 +2967,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2926,7 +2998,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2951,7 +3023,7 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| symbol | | オプション `記号` の値をミラーする |
| style\* | `black bold dimmed` | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2964,7 +3036,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -2989,7 +3061,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -3036,8 +3108,8 @@ The order in which custom modules are shown can be individually set by including
| ------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
-| `shell` | | [この表の下を参照してください](#custom-command-shell) |
-| `説明` | `""` | The description of the module that is shown when running `starship explain`. |
+| `shell` | | [See below](#custom-command-shell) |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
| `files` | `[]` | The files that will be searched in the working directory for a match. |
| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
@@ -3055,7 +3127,7 @@ The order in which custom modules are shown can be individually set by including
| symbol | オプション `記号` の値をミラーする |
| style\* | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
#### Custom command shell
diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md
index ce701531..ead0b726 100644
--- a/docs/ja-JP/guide/README.md
+++ b/docs/ja-JP/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Starship自体を更新するには、上記のスクリプトを再度実行してください。 最新のバージョンに置き換わり、設定ファイルには変更を加えません。
+ Starship自体を更新するには、上記のスクリプトを再度実行してください。 最新のバージョンに置き換わり、設定ファイルには変更を加えません。
**※**インストールスクリプトのデフォルト値は上書きすることができます。詳しくはヘルプを参照してください。
@@ -266,7 +274,7 @@
#### Xonsh
- Add the following to the end of `~/.xonshrc`:
+ `~/.xonshrc` の最後に以下を追加してください:
```sh
# ~/.xonshrc
@@ -277,7 +285,7 @@
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **警告** これは将来的に変更されます。 nu バージョン 0.33 以降のみサポートされます。 nu 設定ファイルに以下を追加してください。 nu で`config path`を実行することで、設定ファイルの場所を確認できます。
```toml
startup = [
diff --git a/docs/ja-JP/presets/README.md b/docs/ja-JP/presets/README.md
index 6c3c4590..0d8c8ab7 100644
--- a/docs/ja-JP/presets/README.md
+++ b/docs/ja-JP/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/ko-KR/advanced-config/README.md b/docs/ko-KR/advanced-config/README.md
index 0d59c601..d7b9ec4d 100644
--- a/docs/ko-KR/advanced-config/README.md
+++ b/docs/ko-KR/advanced-config/README.md
@@ -68,6 +68,33 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Style Strings
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md
index 61f8fcfd..2fb31aa1 100644
--- a/docs/ko-KR/config/README.md
+++ b/docs/ko-KR/config/README.md
@@ -75,7 +75,7 @@ A text group is made up of two different parts.
The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
For example:
@@ -142,12 +142,14 @@ This is the list of prompt-wide configuration options.
### Options
-| Option | Default | Description |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | Default | Description |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Example
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,6 +243,13 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
@@ -479,6 +491,36 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
+## COBOL / GNUCOBOL
+
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | The style for the module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
## Command Duration
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -1017,6 +1059,35 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
format = "via [e $version](bold red) "
```
+## Fill
+
+The `fill` module fills any extra space on the line with a symbol. If multiple `fill` modules are present in a line they will split the space evenly between them. This is useful for aligning other modules.
+
+### Options
+
+| Option | Default | Description |
+| -------- | -------------- | --------------------------------- |
+| `symbol` | `"."` | The symbol used to fill the line. |
+| `style` | `"bold black"` | The style for the module. |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+format="AA $fill BB $fill CC"
+
+[fill]
+symbol = "-"
+style = "bold green"
+```
+
+Produces a prompt that looks like:
+
+```
+AA -------------------------------------------- BB -------------------------------------------- CC
+
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
@@ -1205,12 +1276,13 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| --------------- | -------------------------------------------------------- | ---------------------------------- |
-| `added_style` | `"bold green"` | The style for the added count. |
-| `deleted_style` | `"bold red"` | The style for the deleted count. |
-| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
-| `disabled` | `true` | Disables the `git_metrics` module. |
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `added_style` | `"bold green"` | The style for the added count. |
+| `deleted_style` | `"bold red"` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `disabled` | `true` | Disables the `git_metrics` module. |
### Variables
@@ -1318,9 +1390,9 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
```
-## Golang
+## Go
-The `golang` module shows the currently installed version of [Golang](https://golang.org/). By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a `go.mod` file
- The current directory contains a `go.sum` file
@@ -2041,18 +2113,18 @@ symbol = "☁️ "
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Options
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
diff --git a/docs/ko-KR/guide/README.md b/docs/ko-KR/guide/README.md
index 64eab34f..a4d6f685 100644
--- a/docs/ko-KR/guide/README.md
+++ b/docs/ko-KR/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
**Note** - The defaults of the install script can be overridden see the built-in help.
diff --git a/docs/ko-KR/presets/README.md b/docs/ko-KR/presets/README.md
index c6cc6f60..61165f5b 100644
--- a/docs/ko-KR/presets/README.md
+++ b/docs/ko-KR/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/nl-NL/advanced-config/README.md b/docs/nl-NL/advanced-config/README.md
index 0d59c601..d7b9ec4d 100644
--- a/docs/nl-NL/advanced-config/README.md
+++ b/docs/nl-NL/advanced-config/README.md
@@ -68,6 +68,33 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Style Strings
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md
index 61f8fcfd..2fb31aa1 100644
--- a/docs/nl-NL/config/README.md
+++ b/docs/nl-NL/config/README.md
@@ -75,7 +75,7 @@ A text group is made up of two different parts.
The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
For example:
@@ -142,12 +142,14 @@ This is the list of prompt-wide configuration options.
### Options
-| Option | Default | Description |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | Default | Description |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Example
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,6 +243,13 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
@@ -479,6 +491,36 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
+## COBOL / GNUCOBOL
+
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | The style for the module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
## Command Duration
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -1017,6 +1059,35 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
format = "via [e $version](bold red) "
```
+## Fill
+
+The `fill` module fills any extra space on the line with a symbol. If multiple `fill` modules are present in a line they will split the space evenly between them. This is useful for aligning other modules.
+
+### Options
+
+| Option | Default | Description |
+| -------- | -------------- | --------------------------------- |
+| `symbol` | `"."` | The symbol used to fill the line. |
+| `style` | `"bold black"` | The style for the module. |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+format="AA $fill BB $fill CC"
+
+[fill]
+symbol = "-"
+style = "bold green"
+```
+
+Produces a prompt that looks like:
+
+```
+AA -------------------------------------------- BB -------------------------------------------- CC
+
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
@@ -1205,12 +1276,13 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| --------------- | -------------------------------------------------------- | ---------------------------------- |
-| `added_style` | `"bold green"` | The style for the added count. |
-| `deleted_style` | `"bold red"` | The style for the deleted count. |
-| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
-| `disabled` | `true` | Disables the `git_metrics` module. |
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `added_style` | `"bold green"` | The style for the added count. |
+| `deleted_style` | `"bold red"` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `disabled` | `true` | Disables the `git_metrics` module. |
### Variables
@@ -1318,9 +1390,9 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
```
-## Golang
+## Go
-The `golang` module shows the currently installed version of [Golang](https://golang.org/). By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a `go.mod` file
- The current directory contains a `go.sum` file
@@ -2041,18 +2113,18 @@ symbol = "☁️ "
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Options
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
diff --git a/docs/nl-NL/guide/README.md b/docs/nl-NL/guide/README.md
index f9d9916b..69f505cf 100644
--- a/docs/nl-NL/guide/README.md
+++ b/docs/nl-NL/guide/README.md
@@ -46,30 +46,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -145,7 +153,7 @@
### Aan de slag
-**Opmerking:**: als gevolg van de groei van verschillende platforms, worden slechts bepaalde ondersteunde platforms hieronder weergegeven. Staat de jouwe er niet tussen? Neem een kijkje in de [extra platforminstructies](https://starship.rs/installing/).
+**Opmerking:** als gevolg van de groei van verschillende platforms, worden slechts bepaalde ondersteunde platforms hieronder weergegeven. Staat de jouwe er niet tussen? Neem een kijkje in de [extra platforminstructies](https://starship.rs/installing/).
1. Installeer de **Starship** binary:
@@ -158,8 +166,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Om Starship zelf bij te werken, voer je het bovenstaande script opnieuw uit. Deze vervangt de huidige versie zonder de configuratie van Starship aan te passen.
+ Om Starship zelf bij te werken, voer je het bovenstaande script opnieuw uit. Deze vervangt de huidige versie zonder de configuratie van Starship aan te passen.
**Opmerking** - De standaardinstellingen van het installatiescript kunnen overschreven worden; zie de ingebouwde hulp.
@@ -275,7 +283,7 @@
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **Warning** This will change in the future. Add the following to your nu config file. De locatie van hiervan kunt u vinden door `config path` uit te voeren in nushell.
```toml
startup = [
diff --git a/docs/nl-NL/presets/README.md b/docs/nl-NL/presets/README.md
index ae5d0176..c7e62c43 100644
--- a/docs/nl-NL/presets/README.md
+++ b/docs/nl-NL/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/pl-PL/README.md b/docs/pl-PL/README.md
index 6b4bbaef..3146ab42 100644
--- a/docs/pl-PL/README.md
+++ b/docs/pl-PL/README.md
@@ -2,18 +2,18 @@
home: true
heroImage: /logo.svg
heroText:
-tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
+tagline: Minimalny, szybki i nieskończenie konfigurowalny wiersz poleceń dla dowolnej powłoki!
actionText: Get Started →
actionLink: ./guide/
features:
-
- title: Compatibility First
+ title: Kompatybilność przede wszystkim
details: Works on the most common shells on the most common operating systems. Use it everywhere!
-
- title: Rust-Powered
+ title: Napędzany językiem Rust
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
-
- title: Customizable
+ title: Konfigurowalny
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
@@ -28,26 +28,26 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
-### Prerequisites
+### Wymagania wstępne
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal.
### Quick Install
-1. Install the **starship** binary:
+1. Zainstaluj plik programu **starship**:
- #### Install Latest Version
+ #### Instalacja najnowszej wersji
With Shell:
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ Aby zaktualizować Starship, uruchom ponownie powyższy skrypt. Obecna wersja zostanie zastąpiona nową, bez modyfikowania konfiguracji Starship.
- #### Install via Package Manager
+ #### Instalacja za pomocą menedżera pakietów
With [Homebrew](https://brew.sh/):
@@ -55,18 +55,18 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
brew install starship
```
- With [Scoop](https://scoop.sh):
+ Za pomocą [Scoop](https://scoop.sh):
```powershell
scoop install starship
```
-1. Add the init script to your shell's config file:
+1. Dodaj skrypt inicjalizacyjny do konfiguracji twojej powłoki:
#### Bash
- Add the following to the end of `~/.bashrc`:
+ Dodaj na koniec pliku `~/.bashrc`:
```sh
# ~/.bashrc
@@ -77,7 +77,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Fish
- Add the following to the end of `~/.config/fish/config.fish`:
+ Dodaj na koniec pliku `~/.config/fish/config.fish`:
```sh
# ~/.config/fish/config.fish
@@ -88,7 +88,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Zsh
- Add the following to the end of `~/.zshrc`:
+ Dodaj na koniec pliku `~/.zshrc`:
```sh
# ~/.zshrc
@@ -99,7 +99,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Powershell
- 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.
+ 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. Zazwyczaj jest to `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` lub `~/.config/powershell/Microsoft.PowerShell_profile.ps1` na -Nixie.
```sh
Invoke-Expression (&starship init powershell)
@@ -108,7 +108,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Ion
- Add the following to the end of `~/.config/ion/initrc`:
+ Dodaj na koniec pliku `~/.config/ion/initrc`:
```sh
# ~/.config/ion/initrc
@@ -121,7 +121,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: warning Only elvish v0.15 or higher is supported. :::
- Add the following to the end of `~/.elvish/rc.elv`:
+ Dodaj na koniec pliku `~/.elvish/rc.elv`:
```sh
# ~/.elvish/rc.elv
@@ -132,7 +132,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Tcsh
- Add the following to the end of `~/.tcshrc`:
+ Dodaj na koniec pliku `~/.tcshrc`:
```sh
# ~/.tcshrc
diff --git a/docs/pl-PL/advanced-config/README.md b/docs/pl-PL/advanced-config/README.md
index 0d59c601..d5e0c6be 100644
--- a/docs/pl-PL/advanced-config/README.md
+++ b/docs/pl-PL/advanced-config/README.md
@@ -1,10 +1,10 @@
-# Advanced Configuration
+# Zaawansowana konfiguracja
-While Starship is a versatile shell, sometimes you need to do more than edit `starship.toml` to get it to do certain things. This page details some of the more advanced configuration techniques used in starship.
+Mimo że Starship jest wszechstronny, czasem nie wystarczy modyfikacja pliku `starship.toml` żeby uzyskać pewne rzeczy. Na tej stronie opisano bardziej zaawansowane sposoby konfigurowania używane w Starship.
::: warning
-The configurations in this section are subject to change in future releases of Starship.
+Konfiguracja opisana w tej sekcji może ulec zmianie w przyszłych wydaniach Starship.
:::
@@ -68,6 +68,33 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Style Strings
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md
index 61f8fcfd..73cf743d 100644
--- a/docs/pl-PL/config/README.md
+++ b/docs/pl-PL/config/README.md
@@ -1,4 +1,4 @@
-# Configuration
+# Konfiguracja
To get started configuring starship, create the following file: `~/.config/starship.toml`.
@@ -6,7 +6,7 @@ To get started configuring starship, create the following file: `~/.config/stars
mkdir -p ~/.config && touch ~/.config/starship.toml
```
-All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file:
+Cała konfiguracja starship jest wykonywana w tym pliku [TOML](https://github.com/toml-lang/toml):
```toml
# Inserts a blank line between shell prompts
@@ -21,63 +21,63 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being
disabled = true
```
-You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
+Możesz zmienić domyślną lokalizację pliku konfiguracyjnego za pomocą zmiennej środowiskowej `STARSHIP_CONFIG`:
```sh
export STARSHIP_CONFIG=~/.starship/config.toml
```
-Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
+Odpowiednikiem dla PowerShell (Windows) jest dodanie następującej linii w twoim `$PROFILE`:
```powershell
$ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
```
-### Logging
+### Logi
-By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to a instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable:
+Starship domyślnie loguje ostrzeżenia i błędy do pliku o nazwie`~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, gdzie klucz sesji odpowiada twojej instancji terminala. Można to zmienić za pomocą zmiennej środowiskowej `STARSHIP_CACHE`:
```sh
export STARSHIP_CACHE=~/.starship/cache
```
-Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
+Odpowiednikiem dla PowerShell (Windows) jest dodanie następującej linii w twoim `$PROFILE`:
```powershell
$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
```
-### Terminology
+### Glosariusz
-**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
+**Moduł**: Komponent wiersza poleceń, który dostarcza informacji opartych na kontekście twojego systemu operacyjnego. Przykładowo, moduł "nodejs" pokazuje wersję Node.js, która jest obecnie zainstalowana na twoim komputerze, jeżeli znajdujesz się w folderze zawierającym projekt Node.js.
-**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
+**Zmienna**: Mniejszy podkomponent zawierający informacje dostarczane przez moduł. Przykładowo, zmienna "version" w module "nodejs" zawiera obecną wersję Node.js.
-By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix.
+W ramach konwencji większość modułów posiada przedrostek w domyślnym kolorze terminala (n.p. `via` w "nodejs") oraz pojedynczy odstęp za treścią modułu.
-### Format Strings
+### Formatowanie
-Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string.
+Moduły wypisują swoje zmienne przy użyciu ciągów formatujących. Większość modułów posiada wpis o nazwie `format`, który konfiguruje format wyświetlania modułu. W ciągach formatujących można używać tekstu, zmiennych oraz grup tekstowych.
-#### Variable
+#### Zmienne
-A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`.
+Zmienna zawiera symbol `$`, po którym następuje nazwa zmiennej. Nazwa zmiennej zawiera tylko litery, cyfry i `_`.
-For example:
+Na przykład:
-- `$version` is a format string with a variable named `version`.
-- `$git_branch$git_commit` is a format string with two variables named `git_branch` and `git_commit`.
-- `$git_branch $git_commit` has the two variables separated with a space.
+- `$version` to ciąg formatujący ze zmienną o nazwie `version`.
+- `$git_branch$git_commit` zawiera dwie zmienne: `git_branch` i `git_commit`.
+- `$git_branch $git_commit` zawiera te dwie zmienne rozdzielone spacją.
-#### Text Group
+#### Grupy tekstowe
-A text group is made up of two different parts.
+Grupa tekstowa składa się z dwóch oddzielnych części.
-The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
+Pierwsza część, otoczona `[]`, to [ciąg formatujący](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
-For example:
+Na przykład:
- `[on](red bold)` will print a string `on` with bold text colored red.
- `[⌘ $version](bold green)` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
@@ -100,7 +100,7 @@ Note that what styling looks like will be controlled by your terminal emulator.
A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty.
-For example:
+Na przykład:
- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
- `(some text)` will always show nothing since there are no variables wrapped in the braces.
@@ -142,12 +142,14 @@ This is the list of prompt-wide configuration options.
### Options
-| Option | Default | Description |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | Default | Description |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Example
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,6 +243,13 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
@@ -479,6 +491,36 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
+## COBOL / GNUCOBOL
+
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | The style for the module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
## Command Duration
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -1017,6 +1059,35 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
format = "via [e $version](bold red) "
```
+## Fill
+
+The `fill` module fills any extra space on the line with a symbol. If multiple `fill` modules are present in a line they will split the space evenly between them. This is useful for aligning other modules.
+
+### Options
+
+| Option | Default | Description |
+| -------- | -------------- | --------------------------------- |
+| `symbol` | `"."` | The symbol used to fill the line. |
+| `style` | `"bold black"` | The style for the module. |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+format="AA $fill BB $fill CC"
+
+[fill]
+symbol = "-"
+style = "bold green"
+```
+
+Produces a prompt that looks like:
+
+```
+AA -------------------------------------------- BB -------------------------------------------- CC
+
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
@@ -1205,12 +1276,13 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| --------------- | -------------------------------------------------------- | ---------------------------------- |
-| `added_style` | `"bold green"` | The style for the added count. |
-| `deleted_style` | `"bold red"` | The style for the deleted count. |
-| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
-| `disabled` | `true` | Disables the `git_metrics` module. |
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `added_style` | `"bold green"` | The style for the added count. |
+| `deleted_style` | `"bold red"` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `disabled` | `true` | Disables the `git_metrics` module. |
### Variables
@@ -1318,9 +1390,9 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
```
-## Golang
+## Go
-The `golang` module shows the currently installed version of [Golang](https://golang.org/). By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a `go.mod` file
- The current directory contains a `go.sum` file
@@ -2041,18 +2113,18 @@ symbol = "☁️ "
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Options
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
diff --git a/docs/pl-PL/faq/README.md b/docs/pl-PL/faq/README.md
index 2b3096c1..9fe9b676 100644
--- a/docs/pl-PL/faq/README.md
+++ b/docs/pl-PL/faq/README.md
@@ -1,18 +1,18 @@
-# FAQ
+# Najczęściej zadawane pytania (FAQ)
-## What is the configuration used in the demo GIF?
+## Jakiej konfiguracji użyto w GIFie demonstracyjnym?
-- **Terminal Emulator**: [iTerm2](https://iterm2.com/)
- - **Theme**: Minimal
- - **Color Scheme**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
- - **Font**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
-- **Shell**: [Fish Shell](https://fishshell.com/)
- - **Configuration**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- - **Prompt**: [Starship](https://starship.rs/)
+- **Emulator terminala**: [iTerm2](https://iterm2.com/)
+ - **Motyw**: Minimal
+ - **Schemat kolorów**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
+ - **Czcionka**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
+- **Powłoka**: [Fish Shell](https://fishshell.com/)
+ - **Konfiguracja**: [Pliki Dotfile użytkownika matchai](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
+ - **Wiersz poleceń**: [Starship](https://starship.rs/)
-## How do I get command completion as shown in the demo GIF?
+## Jak uzyskać uzupełniania poleceń pokazane na GIFie demonstracyjnym?
-Completion support, or autocomplete, is provided by your shell of choice. In the case of the demo, the demo was done with [Fish Shell](https://fishshell.com/), which provides completions by default. If you use Z Shell (zsh), I'd suggest taking a look at [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
+Uzupełnianie, znane też jako autouzupełnianie, jest dostarczane przez używaną przez ciebie powłokę. W przypadku demo, jest to powłoka [Fish Shell](https://fishshell.com/), która domyślnie zapewnia uzupełnianie. Jeśli używasz Z Shell (zsh), zalecamy zapoznać się z [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
## Do top level `format` and `.disabled` do the same thing?
@@ -21,7 +21,7 @@ Yes, they can both be used to disable modules in the prompt. If all you plan to
- Disabling modules is more explicit than omitting them from the top level `format`
- Newly created modules will be added to the prompt as Starship is updated
-## The docs say Starship is cross-shell. Why isn't my preferred shell supported?
+## Dokumentacja stwierdza że Starship jest wieloplatformowy. Dlaczego moja preferowana powłoka nie jest obsługiwana?
The way Starship is built, it should be possible to add support for virtually any shell. The starship binary is stateless and shell agnostic, so as long as your shell supports prompt customization and shell expansion, Starship can be used.
@@ -48,17 +48,17 @@ starship prompt --help
The prompt will use as much context as is provided, but no flags are "required".
-## How do I run Starship on Linux distributions with older versions of glibc?
+## Jak uruchomić Starship na dystrybucjach systemu Linux ze starszymi wersjami glibc?
-If you get an error like "_version 'GLIBC_2.18' not found (required by starship)_" when using the prebuilt binary (for example, on CentOS 6 or 7), you can use a binary compiled with `musl` instead of `glibc`:
+Jeżeli podczas używania gotowych instalacji (np. na CentOS 6 lub 7) pojawia się błąd w stylu "_version 'GLIBC_2.18' not found (required by starship)_", możesz użyć instalacji zbudowanej za pomocą `musl` zamiast `glibc`:
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux-musl
```
-## I see symbols I don't understand or expect, what do they mean?
+## W wierszu poleceń zauważyłem symbole których się nie spodziewałem bądź nie rozumiem. Co one oznaczają?
-If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+Jeśli zauważyłeś symbole których nie rozpoznajesz, możesz użyć `starship explain` aby uzyskać szczegółowy opis obecnie wyświetlanych modułów.
## Why don't I see a glyph symbol in my prompt?
@@ -79,12 +79,12 @@ The first line should produce a [snake emoji](https://emojipedia.org/snake/), wh
If either symbol fails to display correctly, your system is still misconfigured. Unfortunately, getting font configuration correct is sometimes difficult. Users on the Discord may be able to help. If both symbols display correctly, but you still don't see them in starship, [file a bug report!](https://github.com/starship/starship/issues/new/choose)
-## How do I uninstall Starship?
+## Jak odinstalować Starship?
-Starship is just as easy to uninstall as it is to install in the first place.
+Starship można odinstalować równie łatwo jak przebiega proces instalacji.
-1. Remove any lines in your shell config (e.g. `~/.bashrc`) used to initialize Starship.
-1. Delete the Starship binary.
+1. Usuń zawartość konfiguracji powłoki (np. `~/.bashrc`) służącą do zainicjalizowania Starship.
+1. Usuń plik wykonywalny programu Starship.
If Starship was installed using a package manager, please refer to their docs for uninstallation instructions.
diff --git a/docs/pl-PL/guide/README.md b/docs/pl-PL/guide/README.md
index 5641182f..e5f014bc 100644
--- a/docs/pl-PL/guide/README.md
+++ b/docs/pl-PL/guide/README.md
@@ -10,36 +10,36 @@
- Website
+ Strona internetowa
·
- Installation
+ Instalacja
·
- Configuration
+ Konfiguracja
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-**The minimal, blazing-fast, and infinitely customizable prompt for any shell!**
+**Minimalny, szybki i nieskończenie konfigurowalny wiersz poleceń dla dowolnej powłoki!**
-- **Fast:** it's fast – _really really_ fast! 🚀
-- **Customizable:** configure every aspect of your prompt.
-- **Universal:** works on any shell, on any operating system.
-- **Intelligent:** shows relevant information at a glance.
-- **Feature rich:** support for all your favorite tools.
-- **Easy:** quick to install – start using it in minutes.
+- **Szybkość:** jest szybki - _naprawdę_ szybki! 🚀
+- **Konfigurowalny:** dostosowuj swój wiersz poleceń w każdym aspekcie.
+- **Uniwersalny:** działa na każdej powłoce, na każdym systemie operacyjnym.
+- **Inteligentny:** pokazuje istotne informacje na pierwszy rzut oka.
+- **Bogata funkcjonalność:** wspiera wszystkie twoje ulubione narzędzia.
+- **Łatwy w obsłudze:** szybka instalacja - zacznij korzystać w kilka minut.
-Explore the Starship docs ▶
+Przeglądaj dokumentację Starship ▶
-## 🚀 Installation
+## 🚀Instalacja
-### Prerequisites
+### Wymagania wstępne
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (for example, try the [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
+- Czcionka typu [Nerd Font](https://www.nerdfonts.com/) zainstalowana i ustawiona w twoim terminalu (wypróbuj na przykład [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
-### Getting Started
+### Pierwsze kroki
-**Note**: due to the proliferation of different platforms, only a subset of supported platforms are shown below. Can't see yours? Have a look at the [extra platform instructions](https://starship.rs/installing/).
+**Uwaga**: z powodu szybko rosnącej liczby platform poniżej pokazano wybrane platformy spośród obecnie obsługiwanych. Nie widzisz swojej? Sprawdź w [dodatkowych instrukcjach dla platform](https://starship.rs/installing/).
-1. Install the **starship** binary:
+1. Zainstaluj plik programu **starship**:
- #### Install Latest Version
+ #### Instalacja najnowszej wersji
- ##### From prebuilt binary, with Shell:
+ ##### Z wstępnie zbudowanego pliku wykonywalnego, za pomocą powłoki Shell:
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ Aby zaktualizować Starship, uruchom ponownie powyższy skrypt. Obecna wersja zostanie zastąpiona nową, bez modyfikowania konfiguracji Starship.
- **Note** - The defaults of the install script can be overridden see the built-in help.
+ **Uwaga** - Domyślne ustawienia skryptu instalacyjnego można zmienić - szczegóły znajdziesz we wbudowanym poleceniu pomocy.
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --help
```
- #### Install via Package Manager
+ #### Instalacja za pomocą menedżera pakietów
- ##### Example: [Homebrew](https://brew.sh/):
+ ##### Przykład: [Homebrew](https://brew.sh/):
```sh
brew install starship
```
- ##### With [Scoop](https://scoop.sh):
+ ##### Za pomocą [Scoop](https://scoop.sh):
```powershell
scoop install starship
```
-2. Add the init script to your shell's config file:
+2. Dodaj skrypt inicjalizacyjny do konfiguracji twojej powłoki:
#### Bash
- Add the following to the end of `~/.bashrc`:
+ Dodaj na koniec pliku `~/.bashrc`:
```sh
# ~/.bashrc
@@ -202,7 +210,7 @@
#### Fish
- Add the following to the end of `~/.config/fish/config.fish`:
+ Dodaj na koniec pliku `~/.config/fish/config.fish`:
```sh
# ~/.config/fish/config.fish
@@ -213,7 +221,7 @@
#### Zsh
- Add the following to the end of `~/.zshrc`:
+ Dodaj na koniec pliku `~/.zshrc`:
```sh
# ~/.zshrc
@@ -224,7 +232,7 @@
#### PowerShell
- 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.
+ Dodaj na koniec pliku `Microsoft.PowerShell_profile.ps1`. Możesz sprawdzić lokalizację tego pliku odczytując zmienną środowiskową `$PROFILE` w PowerShell. Zazwyczaj jest to `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` lub `~/.config/powershell/Microsoft.PowerShell_profile.ps1` na -Nixie.
```powershell
Invoke-Expression (&starship init powershell)
@@ -233,7 +241,7 @@
#### Ion
- Add the following to the end of `~/.config/ion/initrc`:
+ Dodaj na koniec pliku `~/.config/ion/initrc`:
```sh
# ~/.config/ion/initrc
@@ -244,7 +252,7 @@
#### Elvish
- **Warning** Only elvish v0.15 or higher is supported. Add the following to the end of `~/.elvish/rc.elv`:
+ **Uwaga** Działa tylko dla wersji powłoki elvish v0.15 lub wyższej. Dodaj na koniec pliku `~/.elvish/rc.elv`:
```sh
# ~/.elvish/rc.elv
@@ -255,7 +263,7 @@
#### Tcsh
- Add the following to the end of `~/.tcshrc`:
+ Dodaj na koniec pliku `~/.tcshrc`:
```sh
# ~/.tcshrc
@@ -266,7 +274,7 @@
#### Xonsh
- Add the following to the end of `~/.xonshrc`:
+ Dodaj na koniec pliku `~/.xonshrc`:
```sh
# ~/.xonshrc
@@ -277,7 +285,7 @@
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **Uwaga** Może ulec zmianie w przyszłości. Działa tylko dla wersji powłoki nu v0.33 lub wyższej. Dodaj do pliku konfiguracyjnego nu. Możesz sprawdzić lokalizację tego pliku wywołując polecenie `config path` w powłoce nu.
```toml
startup = [
@@ -288,30 +296,30 @@
prompt = "starship_prompt"
```
-## 🤝 Contributing
+## 🤝Wspomóż nas
-We are always looking for contributors of **all skill levels**! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).
+Zawsze szukamy pomocy od osób **na każdym poziomie zaawansowania**! Jeśli potrzebujesz łatwiejszego wdrożenia w projekt, wypróbuj [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).
-If you are fluent in a non-English language, we greatly appreciate any help keeping our docs translated and up-to-date in other languages. If you would like to help, translations can be contributed on the [Starship Crowdin](https://translate.starship.rs/).
+Jeśli płynnie władasz językiem innym niż angielski, bardzo doceniamy każdą pomoc w tłumaczeniu dokumentacji. Jeśli chcesz pomóc, tłumaczenia można dodawać na [Starship Crowdin](https://translate.starship.rs/).
-If you are interested in helping contribute to starship, please take a look at our [Contributing Guide](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Also, feel free to drop into our [Discord server](https://discord.gg/8Jzqu3T) and say hi. 👋
+Jeżeli chcesz wspomóc tworzenie starship, zapoznaj się z naszym [Poradnikiem Współpracy](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Ponadto możesz wejść na nasz [serwer Discord](https://discord.gg/8Jzqu3T) i się przywitać. 👋
-### Code Contributors
+### Współtwórcy kodu
-This project exists thanks to all the people who contribute. [[Contribute](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)].
+Ten projekt istnieje dzięki pomocy wszystkich zaangażowanych osób. [[Wspomóż nas](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)].
-### Financial Contributors
+### Wsparcie finansowe
-Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/starship/contribute)]
+Udziel wsparcia finansowego i pomóż nam utrzymywać społeczność. [[Wspomóż nas](https://opencollective.com/starship/contribute)]
-#### Individuals
+#### Osoby prywatne
-#### Organizations
+#### Organizacje
-Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/starship/contribute)]
+Wspieraj ten projekt za pomocą swojej organizacji. Twoje logo pojawi się tutaj z linkiem do Twojej witryny. [[Wspomóż nas](https://opencollective.com/starship/contribute)]
@@ -324,21 +332,21 @@ Support this project with your organization. Your logo will show up here with a
-## 💭 Inspired By
+## 💭Inspiracje
-Please check out these previous works that helped inspire the creation of starship. 🙏
+Zapoznaj się z wcześniejszymi projektami które zainspirowały nas do stworzenia starship. 🙏
-- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - A ZSH prompt for astronauts.
+- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - Wiersz poleceń ZSH dla astronautów.
-- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Cross-shell robbyrussell theme written in JavaScript.
+- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Motyw robyrussell dla wielu powłok, napisany w JavaScript.
-- **[reujab/silver](https://github.com/reujab/silver)** - A cross-shell customizable powerline-like prompt with icons.
+- **[reujab/silver](https://github.com/reujab/silver)** - Wiersz polecenia typu Powerline z ikonami, działa na wielu różnych powłokach.
-## 📝 License
+## 📝 Licencja
Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).
This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) licensed.
diff --git a/docs/pl-PL/installing/README.md b/docs/pl-PL/installing/README.md
index 6bb76850..7675d70a 100644
--- a/docs/pl-PL/installing/README.md
+++ b/docs/pl-PL/installing/README.md
@@ -1,21 +1,21 @@
-# 🚀 Advanced Installation
+# 🚀 Zaawansowana Instalacja
-To install starship, you need to do two things:
+Aby zainstalować starship, musisz zrobić dwie rzeczy:
-1. Get the **starship** binary onto your computer
-1. Tell your shell to use the starship binary as its prompt by modifying its init scripts
+1. Pobrać plik wykonywalny **starship** na swój komputer
+1. Skonfigurować swoją powłokę żeby używała pliku wykonywalnego starship jako wiersza poleceń poprzez modyfikację skryptów inicjalizacyjnych
-For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed.
+Dla większości użytkowników instrukcje na [stronie głównej](/guide/#🚀-installation) są wystarczające. However, for some more specialized platforms, different instructions are needed.
There are so many platforms out there that they didn't fit into the main README.md file, so here are some installation instructions for other platforms from the community. Is yours not here? Please do add it here if you figure it out!
## [Chocolatey](https://chocolatey.org)
-### Prerequisites
+### Wymagania wstępne
Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
-### Installation
+### Instalacja
```powershell
choco install starship
@@ -23,13 +23,13 @@ choco install starship
## [termux](https://termux.com)
-### Prerequisites
+### Wymagania wstępne
```sh
pkg install getconf
```
-### Installation
+### Instalacja
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com.termux/files/usr/bin
diff --git a/docs/pl-PL/migrating-to-0.45.0/README.md b/docs/pl-PL/migrating-to-0.45.0/README.md
index 95a847bf..1f64546a 100644
--- a/docs/pl-PL/migrating-to-0.45.0/README.md
+++ b/docs/pl-PL/migrating-to-0.45.0/README.md
@@ -1,4 +1,4 @@
-# Migrating to v0.45.0
+# Migracja do wersji v0.45.0
Starship v0.45.0 is a release containing breaking changes, in preparation for the big v1.0.0. We have made some major changes around how configuration is done on the prompt, to allow for a greater degree of customization.
diff --git a/docs/pl-PL/presets/README.md b/docs/pl-PL/presets/README.md
index c6cc6f60..8bb7b266 100644
--- a/docs/pl-PL/presets/README.md
+++ b/docs/pl-PL/presets/README.md
@@ -1,18 +1,18 @@
-# Presets
+# Gotowe konfiguracje
-Here is a collection of community-submitted configuration presets for Starship. If you have a preset to share, please [submit a PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) updating this file! 😊
+Poniżej zamieszczono zestaw gotowych konfiguracji Starship stworzonych przez społeczność. Jeżeli chcesz zamieścić własną konfigurację, [złóż PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) z modyfikacją tego pliku! 😊
-## Nerd Font Symbols
+## Symbole Nerd Font
-This preset doesn't change anything except for the symbols used for each module. If emojis aren't your thing, this might catch your eye!
+Poniższa konfiguracja nie zmienia nic poza znaczkami użytymi do oznaczenia poszczególnych modułów. Jeżeli nie jesteś fanem emoji, to może ci się spodobać!
![Screenshot of Nerd Font Symbols preset](/presets/nerd-font-symbols.png)
-### Prerequisites
+### Wymagania wstępne
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Fira Code Nerd Font)
+- Czcionka [Nerd Font](https://www.nerdfonts.com/) zainstalowana i ustawiona w twoim terminalu (w przykładzie użyto Fira Code Nerd Font)
-### Configuration
+### Konfiguracja
```toml
[aws]
@@ -88,19 +88,19 @@ symbol = " "
symbol = "ﯣ "
```
-## Bracketed Segments
+## Moduły w nawiasach kwadratowych
-This preset changes the format of all the built-in modules to show their segment in brackets instead of using the default Starship wording ("via", "on", etc.).
+Ta konfiguracja zmienia format wyświetlania wbudowanych modułów - zamiast domyślnych wyrazów ("via", "on", itp.) są wypisywane w nawiasach kwadratowych.
-Before:
+Przed:
![Screenshot of default Starship configuration](/presets/bracketed-segments-before.png)
-After:
+Po:
![Screenshot of Bracketed Segments preset](/presets/bracketed-segments-after.png)
-### Configuration
+### Konfiguracja
```toml
[aws]
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -239,7 +242,7 @@ format = '\[[$symbol($version)]($style)\]'
format = '\[[$symbol($version)]($style)\]'
```
-## Plain Text Symbols
+## Symbole "plain text"
This preset changes the symbols into plain text. If your terminal/font could not render the NerdFonts/emojis, maybe you could try this preset!
@@ -251,7 +254,7 @@ After (Plain Text Symbols):
![Screenshot of Plain Text Symbols preset](/presets/plain-text-symbols-after.png)
-### Configuration
+### Konfiguracja
```toml
[character]
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -369,12 +375,15 @@ This preset hides the version of language runtimes. If you work in containers or
![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
-### Configuration
+### Konfiguracja
```toml
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/pt-BR/advanced-config/README.md b/docs/pt-BR/advanced-config/README.md
index b1df7aca..cf90c06e 100644
--- a/docs/pt-BR/advanced-config/README.md
+++ b/docs/pt-BR/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Ativando o Prompt Direito
+
+Alguns shells suportam um prompt no lado direito que renderiza na mesma linha do input. Starship consegue definir o conteúdo do prompt direito usando a opção `right_format`. Qualquer módulo pode ser usado no `format` é suportado o `right_format`. A variável `$all` só irá alterar os módulos que não usaram de forma explicita o `format` ou `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Exemplo
+
+```toml
+# ~/.config/starship.toml
+
+# Um prompt esquerdo minimo
+format = """$character"""
+
+# Move o resto do prompt para direita
+right_format = """$all"""
+```
+
+Gera um prompt parecido com o seguinte:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Estilo dos textos
-Estilo de strings são uma lista de palavras, separadas por espaço. As palavras não são case sensitive (ou seja `bold` e `BoLd` são consideradas iguais). Cada palavra pode ser uma das seguintes:
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `italic`
@@ -82,14 +109,14 @@ Estilo de strings são uma lista de palavras, separadas por espaço. As palavras
- ``
- `none`
-onde `` é uma especialista de cores (discutido abaixo). `fg:` e `` atualmente fazem a mesma coisa, isto deve mudar no futuro. `inverted` troca as cores de background e foreground. A ordem de palavras na string não importa.
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-O token `none` substitui todos os outros tokens na string se ele não fizer parte de um `bg:` especificado que seja, por exemplo `fg:red none fg:blue` ainda criará uma string sem estilo. `bg:none` define a cor padrão de background então `fg:red bg:none` é equivalente a `red` ou `fg:red` e `bg:green fg:red bg:none` é equivalente a `fg:red` ou`red`. Pode se transformar em um erro ao usar `none` em um conjunto de outros tokens no futuro.
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-Um especialista em cores pode ser um dos seguintes:
+A color specifier can be one of the following:
- Um dos padrões de cores no terminal: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. Você pode de forma opcional prefixar com `bright-` para obter uma versão mais brilhante/clara (ex `bright-white`).
- Um `#` seguido por um número de seis dígitos hexadecimais. Isto especifica um [Código RGB em formato hexadecimal](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- Um número entre 0-255. Este especifica um [Código de Cor ANSI 8 bits](https://i.stack.imgur.com/KTSQa.png).
-Se múltiplas cores forem especificadas para foreground/background, a ultima da string que terá prioridade.
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md
index 3d1809ad..60afc3a1 100644
--- a/docs/pt-BR/config/README.md
+++ b/docs/pt-BR/config/README.md
@@ -75,7 +75,7 @@ Um grupo de texto é composto por duas partes diferentes.
A primeira parte, é contida em um `[]`, é uma [formatação de string](#format-strings). Você pode adicionar textos, variáveis ou até mesmos grupo de textos aninhados.
-Na segunda parte, é composta por um `()`, é uma [estilização de string](#style-strings). Este pode ser usado para estilizar a primeira parte.
+Na segunda parte, é composta por um `()`, é uma [estilização de string](#style-strings). This can be used to style the first part.
Por exemplo:
@@ -142,12 +142,14 @@ Está é a lista de opções de configuração de prompt.
### Opções
-| Opções | Padrão | Descrição |
-| ----------------- | ------------------------------ | ---------------------------------------------------------------------- |
-| `format` | [link](#default-prompt-format) | Configura o formato do prompt. |
-| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). |
-| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (em milissegundos). |
-| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. |
+| Opções | Padrão | Descrição |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configura o formato do prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Exemplo
@@ -174,11 +176,12 @@ O `formato` padrão é usado para definir o formato do prompt, se um valor vazio
```toml
format = "$all"
-# Que é equivalente a
+# Which is equivalent to
format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,15 +243,22 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-O módulo `aws` exibi a região e perfil atual do AWS. Isto é baseado nas variáveis de env `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` contidas no arquivo `~/.aws/config`. Este modulo exibi também tempo de expiração de credenciais temporarias.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
-Quando usar [aws-vault](https://github.com/99designs/aws-vault) o perfil é lido da variável `AWS_VAULT` e o tempo de expiração de credenciais é lida da variável de env `AWS_SESSION_EXPIRATION`.
+When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
-Quando usar [awsu](https://github.com/kreuzwerker/awsu) o perfil é lido da varável de env `AWSU_PROFILE`.
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
-Quando usar [AWSume](https://awsu.me) o perfil é lido da variável `AWSUME_PROFILE` e o tempo de expiração de credenciais é lida da variável de env `AWSUME_EXPIRATION`.
+When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFILE` env var and the credentials expiration date is read from the `AWSUME_EXPIRATION` env var.
### Opções
@@ -269,7 +281,7 @@ Quando usar [AWSume](https://awsu.me) o perfil é lido da variável `AWSUME_PROF
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplos
@@ -314,7 +326,7 @@ symbol = "🅰 "
## Bateria
-O módulo `battery` exibe o quanto a bateria do dispositivo está carregada e o estado atual de carregamento. O módulo é visível somente quando a bateria está abaixo de 10%.
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### Opções
@@ -342,7 +354,7 @@ discharging_symbol = "💀 "
### Indicador de bateria
-A configuração `display` é usada para definir quando o indicador de bateria deve ser exibido (threshold), qual deve ser o simbolo(symbol) e como você gostaria de exibir (style). Se nenhum `display` for fornecido. Os valores padrão são os seguintes:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. Os valores padrão são os seguintes:
```toml
[[battery.display]]
@@ -350,11 +362,11 @@ threshold = 10
style = "bold red"
```
-O valor padrão das opções `charging_symbol` e `discharging_symbol`é respectivamente o valor das opções `battery`'s `charging_symbol` e `discharging_symbol`.
+The default value for the `charging_symbol` and `discharging_symbol` option is respectively the value of `battery`'s `charging_symbol` and `discharging_symbol` option.
#### Opções
-A opção `display` é um array da seguinte tabela.
+The `display` option is an array of the following table.
| Opções | Padrão | Descrição |
| -------------------- | ---------- | -------------------------------------------------------------------------------------------------- |
@@ -366,39 +378,39 @@ A opção `display` é um array da seguinte tabela.
#### Exemplo
```toml
-[[battery.display]] # "bold red" é estilo e o simbolo discharging_symbol serão usados quando a capacidade estiver entre 0% e 10%
+[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = "bold red"
-[[battery.display]] # "bold yellow" é estilo e o simbolo 💦 serão usados quando a capacidade estiver entre 10% e 30%
+[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
discharging_symbol = 💦
-# Quando a capcidade for maior que 30%, o indicador de bateria não sera mostrado
+# when capacity is over 30%, the battery indicator will not be displayed
```
## Caractere
-O módulo `character` exibe um caracter (normalmente uma seta) ao lado de onde o texto começa a ser inserido no terminal.
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-O caractere vai te dizer se o ultimo comando foi bem sucedido ou não. Você pode fazer isto de duas maneiras:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- alterando a cor (`red`/`green`)
- alterando a forma (`❯`/`✖`)
-Por padrão ele apenas muda de cor. Se você deseja alterar o formato de uma olhada [neste exemplo](#with-custom-error-shape).
+By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
::: warning
-`error_symbol` não é suportado no elvish e nu shell.
+`error_symbol` is not supported on elvish and nu shell.
:::
::: warning
-`vicmd_symbol` é suportado apenas no fish e zsh.
+`vicmd_symbol` is only supported in fish and zsh.
:::
@@ -451,7 +463,7 @@ vicmd_symbol = "[V](bold green) "
## CMake
-O módulo `cmake` exibe a versão instalada do [CMake](https://cmake.org/). Por padrão o módulo será ativo se qualquer das condições a seguir for atendida:
+The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). By default the module will be activated if any of the following conditions are met:
- O diretorio atual cotem um arquivo `CMakeLists.txt`
- O diretorio atual tem um arquivo `CMakeCache.txt`
@@ -477,46 +489,76 @@ O módulo `cmake` exibe a versão instalada do [CMake](https://cmake.org/). Por
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
-## Tempo de execução do comando
+## COBOL / GNUCOBOL
-O módulo `cmd_duration` exibi o tempo que o ultimo comando levou para executar. O módulo vai exibir somente se o comando levar mais de dois segundos, ou o valor de configuração `min_time` existir.
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: warning Não utilize o DEBUG-trap no Bash
-
-Se você esta rodando o Starship no `bash`, você não deve ativar a armadilha `DEBUG` após rodar `eval $(starship init $0)`, ou este módulo **vai** quebrar.
-
-:::
-
-Usuários do bash que precisam de funções pre-executadas podem usar [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simplesmente defina os arrays `preexec_functions` e `precmd_functions` antes de rodar `eval $(starship init $0)`, e depois pode proceder normalmente.
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### Opções
-| Opções | Padrão | Descrição |
-| -------------------- | ----------------------------- | ------------------------------------------------------------- |
-| `min_time` | `2_000` | Duração mais curta para exibir o tempo (em milissegundos). |
-| `show_milliseconds` | `false` | Exibir milissegundos ou invés de segundos para duração. |
-| `format` | `"took [$duration]($style) "` | O formato do módulo. |
-| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `cmd_duration`. |
-| `show_notifications` | `false` | Exibi notificações no desktop quando o comando for concluído. |
-| `min_time_to_notify` | `45_000` | Tempo minimo para notificação (em milissegundos). |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | O estilo do módulo. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| --------- | ---------- | --------------------------------- |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
+
+\*: This variable can only be used as a part of a style string
+
+## Tempo de execução do comando
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | O formato do módulo. |
+| `style` | `"bold yellow"` | O estilo do módulo. |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
::: tip
-Para exibir notificações requer que o starship seja construído com suporte para `rust-notify`. Você consegue verificar se seu starship suporta notificações rodando `STARSHIP_LOG=debug starship module cmd_duration -d 60000` quando `show_notifications` é definido como `true`.
+Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
:::
### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ----------------------------------------- |
-| duration | `16m40s` | O tempo que levou para executar o comando |
-| style\* | | Espelha o valor da opção `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------------- |
+| duration | `16m40s` | The time it took to execute the command |
+| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -530,34 +572,34 @@ format = "underwent [$duration](bold yellow)"
## Conda
-O módulo `conda` exibe o environment atual do conda, se `$CONDA_DEFAULT_ENV` é definido.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
-Isso não suprime o modificador de prompt do conda, você pode executar `conda config --set changeps1 False`.
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | O número de diretórios do envirionment path deve ser truncado, se o environment foi criado via `conda create -p [path]`. `0` quer dizer sem truncação. Também consulte o módulo [`directory`](#directory). |
-| `symbol` | `"🅒 "` | O simbolo usado antes do nome do environment. |
-| `style` | `"bold green"` | O estilo do módulo. |
-| `format` | `"via [$symbol$environment]($style) "` | O formato do módulo. |
-| `ignore_base` | `true` | Ignora o environment `base` quando ativado. |
-| `disabled` | `false` | Desabilita o módulo `conda`. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | O estilo do módulo. |
+| `format` | `"via [$symbol$environment]($style) "` | O formato do módulo. |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### Variáveis
| Variável | Exemplo | Descrição |
| ----------- | ------------ | --------------------------------- |
-| environment | `astronauts` | O environment atual do conda |
+| environment | `astronauts` | The current conda environment |
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -570,33 +612,33 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-O módulo `crystal` exibe a versão instalada atual do [Crystal](https://crystal-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório atual contem um arquivo `shard.yml`
-- O diretório atual contem um arquivo `.cr`
+- The current directory contains a `shard.yml` file
+- The current directory contains a `.cr` file
### Opções
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
-| `symbol` | `"🔮 "` | O simbolo usado antes de exibir a versão do crystal. |
+| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold red"` | O estilo do módulo. |
| `detect_extensions` | `["cr"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["shard.yml"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
-| `disabled` | `false` | Desabilita o módulo `crystal`. |
+| `disabled` | `false` | Disables the `crystal` module. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | --------- | --------------------------------- |
-| version | `v0.32.1` | A versão do `crystal` |
+| version | `v0.32.1` | The version of `crystal` |
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -609,11 +651,11 @@ format = "via [✨ $version](bold blue) "
## Dart
-O módulo `dart` exibe a versão atual instalada do [Dart](https://dart.dev/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+The `dart` module shows the currently installed version of [Dart](https://dart.dev/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório atual contem algum arquivo com extensão `.dart`
-- O diretório atual contem um diretório `.dart_tool`
-- O diretório atual contem um arquivo `pubspec.yaml`, `pubspec.yml` ou `pubspec.lock`
+- The current directory contains a file with `.dart` extension
+- The current directory contains a `.dart_tool` directory
+- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
### Opções
@@ -621,12 +663,12 @@ O módulo `dart` exibe a versão atual instalada do [Dart](https://dart.dev/). P
| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🎯 "` | Um formato de string que representa o simbolo do Dart |
+| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
| `detect_extensions` | `["dart"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["pubspec.yaml", "pubspec.yml", "pubspec.lock"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[".dart_tool"]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold blue"` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `dart`. |
+| `disabled` | `false` | Disables the `dart` module. |
### Variáveis
@@ -636,7 +678,7 @@ O módulo `dart` exibe a versão atual instalada do [Dart](https://dart.dev/). P
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -649,8 +691,8 @@ format = "via [🔰 $version](bold red) "
## Deno
-O módulo `deno` exibe a versão instalada atual do [Deno](https://deno.land/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório contem um arquivo `mod.ts`, `mod.js`, `deps.ts` ou `deps.js`
+The `deno` module shows you your currently installed version of [Deno](https://deno.land/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+- The current directory contains a `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
### Opções
@@ -658,18 +700,18 @@ O módulo `deno` exibe a versão instalada atual do [Deno](https://deno.land/).
| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🦕 "` | Um formato de string que representa o simbolo do Deno |
+| `symbol` | `"🦕 "` | A format string representing the symbol of Deno |
| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["mod.ts", "mod.js", "deps.ts", "deps.js"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"green bold"` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `deno`. |
+| `disabled` | `false` | Disables the `deno` module. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | --------------------------------- |
-| version | `v1.8.3` | A versão do `deno` |
+| version | `v1.8.3` | The version of `deno` |
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
@@ -684,28 +726,28 @@ format = "via [🦕 $version](green bold) "
## Diretório
-O módulo `directory` exibe o caminho do diretório atual, truncando as três pastas pai. Seu diretório será truncando na raiz do repositório git que você estiver atualmente.
+The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
-Quando usar a opção de estilo fish pwd, ao invés de esconder o caminho que é truncado, você vai ver um nome encurtado de cada diretório baseado no número que você habilitar para a opção.
+When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
-Por exemplo, dado `~/Dev/Nix/nixpkgs/pkgs` onde `nixpkgs` é o repositório raiz e a opção esta definida para `1`. Você verá `~/D/N/nixpkgs/pkgs`, enquanto antes seria `nixpkgs/pkgs`.
+For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------ |
-| `truncation_length` | `3` | O número de pastas pais do diretório atual que serão truncadas. |
-| `truncate_to_repo` | `true` | Seu diretório será truncado ou não para a raiz do repositório git atual. |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | O formato do módulo. |
-| `style` | `"bold cyan"` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `directory`. |
-| `read_only` | `"🔒"` | O simbolo que indica que o diretório atual é somente leitura. |
-| `read_only_style` | `"red"` | O estilo para o simbolo de somente leitura. |
-| `truncation_symbol` | `""` | O simbolo para prefixo de caminhos truncados. ex: "…/" |
-| `home_symbol` | `"~"` | O simbolo para indicar o diretório home. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | O formato do módulo. |
+| `style` | `"bold cyan"` | O estilo do módulo. |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
-Este módulo tem algumas configurações avançadas que controlam como o diretório é exibido.
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | Padrão | Descrição |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -729,10 +771,10 @@ Por exemplo, dado `~/Dev/Nix/nixpkgs/pkgs` onde `nixpkgs` é o repositório raiz
| Variável | Exemplo | Descrição |
| --------- | --------------------- | -------------------------------- |
-| path | `"D:/Projects"` | O caminho do diretório atual |
+| path | `"D:/Projects"` | The current directory path |
| style\* | `"black bold dimmed"` | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -746,30 +788,30 @@ truncation_symbol = "…/"
## Docker Context
-O módulo `docker_context` exibe o [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) atual se não estiver definido como `default` ou se as variáveis de ambiente `DOCKER_HOST` ou `DOCKER_CONTEXT` estiverem definidas (se destinam a sobrescrever o contexto atual).
+The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol$context]($style) "` | O formato do módulo. |
-| `symbol` | `"🐳 "` | O simbolo usado antes de exibir a versão do contexto docker. |
-| `only_with_files` | `true` | Exibe somente quando houver um arquivo |
-| `detect_extensions` | `[]` | Quais extensões devem acionar este módulo (precisa que `only_with_files` seja true). |
-| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Quais arquivos devem acionar este módulo (precisa que `only_with_files` seja true). |
-| `detect_folders` | `[]` | Quais pastas devem acionar este módulo (precisa que `only_with_files` seja true). |
-| `style` | `"blue bold"` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `docker_context`. |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
+| `format` | `"via [$symbol$context]($style) "` | O formato do módulo. |
+| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
+| `only_with_files` | `true` | Only show when there's a match |
+| `detect_extensions` | `[]` | Which extensions should trigger this module (needs `only_with_files` to be true). |
+| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Which filenames should trigger this module (needs `only_with_files` to be true). |
+| `detect_folders` | `[]` | Which folders should trigger this module (needs `only_with_files` to be true). |
+| `style` | `"blue bold"` | O estilo do módulo. |
+| `disabled` | `false` | Disables the `docker_context` module. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------------- | --------------------------------- |
-| context | `test_context` | O contexto atual do docker |
+| context | `test_context` | The current docker context |
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -782,9 +824,9 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-O módulo `dotnet` exibe a versão relevante do [.NET Core SDK](https://dotnet.microsoft.com/) para a pasta atual. Se o SDK foi fixado na pasta atual, a versão será exibida. Caso contrario será exibida a ultima versão instalada do SDK.
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
-Por padrão o módulo vai apenas exibir no seu prompt quando um ou mais dos seguintes arquivos estiverem presente no diretório:
+By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
- `global.json`
- `project.json`
@@ -795,11 +837,11 @@ Por padrão o módulo vai apenas exibir no seu prompt quando um ou mais dos segu
- `*.fsproj`
- `*.xproj`
-Você também precisa do .NET Core SDK instalado para usá-lo corretamente.
+You'll also need the .NET Core SDK installed in order to use it correctly.
-Internamente, este módulo usa seu próprio mecanismo de detecção de versão. Normalmente é duas vezes mais rápido que executar `dotnet --version`, mas pode exibir uma versão errado se o projeto .NET tiver o layout de diretório incomum. Se a precisão é mais importante que velocidade, você pode desabilitar o mecanismo definindo `heuristic = false` nas opções do modulo.
+Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
-O módulo também vai exibir o Target Framework Moniker () quando o diretório atual tiver o arquivo csproj.
+The module will also show the Target Framework Moniker () when there is a csproj file in the current directory.
### Opções
@@ -807,24 +849,24 @@ O módulo também vai exibir o Target Framework Moniker ([\\w-]+)" = "gke-$cluster"
```
-## Quebra de linha
+## Line Break
The `line_break` module separates the prompt into two lines.
@@ -1734,7 +1808,7 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -1745,7 +1819,7 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
format = "via [🌕 $version](bold blue) "
```
-## Uso de memória
+## Memory Usage
The `memory_usage` module shows current system memory and swap usage.
@@ -1753,7 +1827,7 @@ By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-Este módulo é desabilitado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1804,7 +1878,7 @@ The `hg_branch` module shows the active branch of the repo in your current direc
| `style` | `"bold purple"` | O estilo do módulo. |
| `format` | `"on [$symbol$branch]($style) "` | O formato do módulo. |
| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
-| `truncation_symbol` | `"…"` | O simbolo usado para indicar que o nome braço foi truncado. |
+| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. |
| `disabled` | `true` | Disables the `hg_branch` module. |
### Variáveis
@@ -1815,7 +1889,7 @@ The `hg_branch` module shows the active branch of the repo in your current direc
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -1832,7 +1906,7 @@ truncation_symbol = ""
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório atual contem um arquivo `nim.cfg`
+- The current directory contains a `nim.cfg` file
- The current directory contains a file with the `.nim` extension
- The current directory contains a file with the `.nims` extension
- The current directory contains a file with the `.nimble` extension
@@ -1841,7 +1915,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
| `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. |
| `detect_extensions` | `["nim", "nims", "nimble"]` | Quais extensões devem ativar este módulo. |
@@ -1858,7 +1932,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -1894,7 +1968,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -1912,7 +1986,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório atual contem o arquivo `package.json`
+- The current directory contains a `package.json` file
- The current directory contains a `.node-version` file
- The current directory contains a `.nvmrc` file
- The current directory contains a `node_modules` directory
@@ -1941,7 +2015,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -1988,7 +2062,7 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2021,7 +2095,7 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2039,18 +2113,18 @@ symbol = "☁️ "
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2073,7 +2147,7 @@ The `package` module is shown when the current directory is the repository for a
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2128,7 +2202,7 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório atual contem um arquivo `composer.json`
+- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
- The current directory contains a `.php` extension
@@ -2153,7 +2227,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2168,7 +2242,7 @@ format = "via [🔹 $version](147 bold) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- O diretório atual contem um arquivo `spago.dhall`
+- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
### Opções
@@ -2192,7 +2266,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2214,10 +2288,10 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file
- The current directory contains a `__init__.py` file
-- O diretório atual contem um arquivo `pyproject.toml`
-- O diretório atual contem um arquivo `requirements.txt`
-- O diretório atual contem um arquivo `setup.py`
-- O diretório atual contem um arquivo `tox.ini`
+- The current directory contains a `pyproject.toml` file
+- The current directory contains a `requirements.txt` file
+- The current directory contains a `setup.py` file
+- The current directory contains a `tox.ini` file
- The current directory contains a file with the `.py` extension.
- A virtual environment is currently activated
@@ -2294,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2361,7 +2435,7 @@ By default the `red` module shows the currently installed version of [Red](https
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2401,7 +2475,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2440,7 +2514,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2480,7 +2554,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2493,11 +2567,11 @@ symbol = "🌟 "
## Shell
-O módulo de `shell` exibe um indicador para o shell que esta sendo usado.
+The `shell` module shows an indicator for currently used shell.
::: tip
-Este módulo é desabilitado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2505,8 +2579,8 @@ Este módulo é desabilitado por padrão. Para ativa-lo, defina `disabled` para
| Opções | Padrão | Descrição |
| ---------------------- | ------------ | ------------------------------------------------------------ |
-| `bash_indicator` | `bsh` | Uma string para representar o bash. |
-| `fish_indicator` | `fsh` | Uma string usada para representar o fish. |
+| `bash_indicator` | `bsh` | A format string used to represent bash. |
+| `fish_indicator` | `fsh` | A format string used to represent fish. |
| `zsh_indicator` | `zsh` | A format string used to represent zsh. |
| `powershell_indicator` | `psh` | A format string used to represent powershell. |
| `ion_indicator` | `ion` | A format string used to represent ion. |
@@ -2537,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Opções
@@ -2558,7 +2632,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2592,7 +2666,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2609,7 +2683,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-Este módulo é desabilitado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2648,7 +2722,7 @@ Este módulo é desabilitado por padrão. Para ativa-lo, defina `disabled` para
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2693,7 +2767,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2721,16 +2795,16 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. |
-| `version_format` | `"v${raw}"` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"💠"` | A format string shown before the terraform workspace. |
-| `detect_extensions` | `["tf", "hcl"]` | Quais extensões devem ativar este módulo. |
-| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
-| `detect_folders` | `[".terraform"]` | Quais pastas devem ativar este módulo. |
-| `style` | `"bold 105"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `terraform` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
+| `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"💠"` | A format string shown before the terraform workspace. |
+| `detect_extensions` | `["tf", "hcl"]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[".terraform"]` | Quais pastas devem ativar este módulo. |
+| `style` | `"bold 105"` | O estilo do módulo. |
+| `disabled` | `false` | Disables the `terraform` module. |
### Variáveis
@@ -2741,7 +2815,7 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2769,7 +2843,7 @@ The `time` module shows the current **local** time. The `format` configuration v
::: tip
-Este módulo é desabilitado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2791,10 +2865,10 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
| Variável | Exemplo | Descrição |
| --------- | ---------- | -------------------------------- |
-| horário | `13:08:10` | The current time. |
+| time | `13:08:10` | The current time. |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2881,7 +2955,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2892,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2923,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2944,11 +3018,11 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| Variável | Exemplo | Descrição |
| --------- | ------------------------------------------- | --------------------------------- |
-| repo | `dotfiles` if in a VCSH repo named dotfiles | O nome do repositório ativo |
+| repo | `dotfiles` if in a VCSH repo named dotfiles | The active repository name |
| symbol | | Espelha o valor da opção `symbol` |
| style\* | `black bold dimmed` | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2986,7 +3060,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| symbol | | Espelha o valor da opção `symbol` |
| style\* | | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
### Exemplo
@@ -2997,7 +3071,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
symbol = "⚡️ "
```
-## Comandos Personalizados
+## Custom commands
The `custom` modules show the output of some arbitrary commands.
@@ -3011,7 +3085,7 @@ These modules will be shown if any of the following conditions are met:
::: tip
-Vários módulos personalizados podem ser definidos usando `.`.
+Multiple custom modules can be defined by using a `.`.
:::
@@ -3029,30 +3103,30 @@ The order in which custom modules are shown can be individually set by including
### Opções
-| Opções | Padrão | Descrição |
-| ------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
-| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
-| `shell` | | [See below](#custom-command-shell) |
-| `descrição` | `""` | The description of the module that is shown when running `starship explain`. |
-| `files` | `[]` | The files that will be searched in the working directory for a match. |
-| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
-| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
-| `symbol` | `""` | The symbol used before displaying the command output. |
-| `style` | `"bold green"` | O estilo do módulo. |
-| `format` | `"[$symbol($output )]($style)"` | O formato do módulo. |
-| `disabled` | `false` | Desabilita este módulo `custom`. |
-| `os` | | Nome do sistema operacional onde módulo sera exibido (unix, linux, macos, windows, ... ) [Veja os possíveis valores](https://doc.rust-lang.org/std/env/consts/constant.OS.html). |
+| Opções | Padrão | Descrição |
+| ------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
+| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
+| `shell` | | [See below](#custom-command-shell) |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
+| `files` | `[]` | The files that will be searched in the working directory for a match. |
+| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
+| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
+| `symbol` | `""` | The symbol used before displaying the command output. |
+| `style` | `"bold green"` | O estilo do módulo. |
+| `format` | `"[$symbol($output )]($style)"` | O formato do módulo. |
+| `disabled` | `false` | Disables this `custom` module. |
+| `os` | | Operating System name on which the module will be shown (unix, linux, macos, windows, ... ) [See possible values](https://doc.rust-lang.org/std/env/consts/constant.OS.html). |
### Variáveis
-| Variável | Descrição |
-| --------- | --------------------------------- |
-| output | A saída do comando no `shell` |
-| symbol | Espelha o valor da opção `symbol` |
-| style\* | Espelha o valor da opção `style` |
+| Variável | Descrição |
+| --------- | -------------------------------------- |
+| output | The output of shell command in `shell` |
+| symbol | Espelha o valor da opção `symbol` |
+| style\* | Espelha o valor da opção `style` |
-\*: Essa variável só pode ser usada como parte de uma string de estilo
+\*: This variable can only be used as a part of a style string
#### Comandos personalizados de shell
diff --git a/docs/pt-BR/guide/README.md b/docs/pt-BR/guide/README.md
index 90a593ef..e17fedcc 100644
--- a/docs/pt-BR/guide/README.md
+++ b/docs/pt-BR/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Para atualizar o Starship de maneira manual, execute novamente o script acima. Isto irá substituir a versão atual sem alterar as configurações do Starship.
+ Para atualizar o Starship de maneira manual, execute novamente o script acima. Isto irá substituir a versão atual sem alterar as configurações do Starship.
**Nota** - Os padrões de instalação do script podem ser alteradas e substituídas, consulte a ajuda de built-in.
diff --git a/docs/pt-BR/presets/README.md b/docs/pt-BR/presets/README.md
index 2333600b..8668fe57 100644
--- a/docs/pt-BR/presets/README.md
+++ b/docs/pt-BR/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ Está predefinição oculta a versão do runtime da linguagem. Se você trabalha
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/pt-PT/advanced-config/README.md b/docs/pt-PT/advanced-config/README.md
index 0d59c601..d7b9ec4d 100644
--- a/docs/pt-PT/advanced-config/README.md
+++ b/docs/pt-PT/advanced-config/README.md
@@ -68,6 +68,33 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Style Strings
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md
index 61f8fcfd..2fb31aa1 100644
--- a/docs/pt-PT/config/README.md
+++ b/docs/pt-PT/config/README.md
@@ -75,7 +75,7 @@ A text group is made up of two different parts.
The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
For example:
@@ -142,12 +142,14 @@ This is the list of prompt-wide configuration options.
### Options
-| Option | Default | Description |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | Default | Description |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Example
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,6 +243,13 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
@@ -479,6 +491,36 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
+## COBOL / GNUCOBOL
+
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | The style for the module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
## Command Duration
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -1017,6 +1059,35 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
format = "via [e $version](bold red) "
```
+## Fill
+
+The `fill` module fills any extra space on the line with a symbol. If multiple `fill` modules are present in a line they will split the space evenly between them. This is useful for aligning other modules.
+
+### Options
+
+| Option | Default | Description |
+| -------- | -------------- | --------------------------------- |
+| `symbol` | `"."` | The symbol used to fill the line. |
+| `style` | `"bold black"` | The style for the module. |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+format="AA $fill BB $fill CC"
+
+[fill]
+symbol = "-"
+style = "bold green"
+```
+
+Produces a prompt that looks like:
+
+```
+AA -------------------------------------------- BB -------------------------------------------- CC
+
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
@@ -1205,12 +1276,13 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| --------------- | -------------------------------------------------------- | ---------------------------------- |
-| `added_style` | `"bold green"` | The style for the added count. |
-| `deleted_style` | `"bold red"` | The style for the deleted count. |
-| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
-| `disabled` | `true` | Disables the `git_metrics` module. |
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `added_style` | `"bold green"` | The style for the added count. |
+| `deleted_style` | `"bold red"` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `disabled` | `true` | Disables the `git_metrics` module. |
### Variables
@@ -1318,9 +1390,9 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
```
-## Golang
+## Go
-The `golang` module shows the currently installed version of [Golang](https://golang.org/). By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a `go.mod` file
- The current directory contains a `go.sum` file
@@ -2041,18 +2113,18 @@ symbol = "☁️ "
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Options
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
diff --git a/docs/pt-PT/guide/README.md b/docs/pt-PT/guide/README.md
index 5641182f..b91ef6c4 100644
--- a/docs/pt-PT/guide/README.md
+++ b/docs/pt-PT/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
**Note** - The defaults of the install script can be overridden see the built-in help.
diff --git a/docs/pt-PT/presets/README.md b/docs/pt-PT/presets/README.md
index c6cc6f60..61165f5b 100644
--- a/docs/pt-PT/presets/README.md
+++ b/docs/pt-PT/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index e40c4c6d..551c8d97 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Строки стиля
-Строки стиля - это список слов, разделенных пробелами. Слова не чувствительны к регистру (то есть `bold` и `BoLd` считаются одной строкой). Каждое слово может быть одним из следующих:
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `italic`
@@ -82,14 +109,14 @@ starship_precmd_user_func="set_win_title"
- ``
- `none`
-где `` является цветовым спецификатором (обсуждается ниже). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. Порядок слов в строке не имеет значения.
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-Токен `none` переопределяет все остальные токены в строке, если он не является частью спецификатора `bg:` так, например, `fg:red none fg:blue` все равно создаст строку без стиля. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. Использование `none` в сочетании с другими токенами может стать ошибкой в будущем.
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-Цветовой спецификатор может быть одним из следующих:
+A color specifier can be one of the following:
- Некоторые из стандартных цветов терминалов: `black`, `red`, `green`, `blue`, `gellow`, `purple`, `cyan`, `white`. Вы можете по желанию добавить префикс `bright-`, чтобы получить яркую версию (например, `bright-white`).
- `#`, за которой следует шестизначное шестнадцатеричное число. Это определяет [шестнадцатеричный код цвета RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- Число от 0 до 255. Это определяет [8-битный код цвета ANSI](https://i.stack.imgur.com/KTSQa.png).
-Если для переднего плана/фона задано несколько цветов, то последняя из строк будет иметь приоритет.
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 70a56d96..c33c9e9b 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -75,7 +75,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
Первая часть, которая заключена в `[]`, это [формат строки](#format-strings). Вы можете добавлять в него тексты, переменные, или даже вложенные текстовые группы.
-Во второй части, которая заключена в `()`, это строка стиля [](#style-strings). Это может быть использовано в стиле первой части.
+Во второй части, которая заключена в `()`, это строка стиля [](#style-strings). This can be used to style the first part.
Например:
@@ -142,12 +142,14 @@ format = '''
### Опции
-| Параметр | По умолчанию | Описание |
-| ----------------- | -------------------------------- | ------------------------------------------------------------ |
-| `format` | [ссылка](#default-prompt-format) | Настройка форматирования оболочки. |
-| `scan_timeout` | `30` | Тайм-аут запуска сканирования файлов (в миллисекундах). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Параметр | По умолчанию | Описание |
+| ----------------- | -------------------------------- | ---------------------------------------------------------------- |
+| `format` | [ссылка](#default-prompt-format) | Настройка форматирования оболочки. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Пример
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,9 +243,16 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-Модуль `aws` показывает текущий регион и профиль AWS. Основано на `AWS_REGION`, `AWS_DEFAULT_REGION`, и `AWS_PROFILE` переменных окружения и файле`~/.aws/config`. This module also shows an expiration timer when using temporary credentials.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
@@ -269,7 +281,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Примеры
@@ -314,7 +326,7 @@ symbol = "🅰 "
## Батарея
-Модуль `battery` показывает насколько заряжена батарея девайса и статус зарядки на данный момент. Модуль виден только, если заряд батареи устройства меньше 10%.
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### Опции
@@ -342,7 +354,7 @@ discharging_symbol = "💀 "
### Отображение батареи
-The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). Если `display` не предоставлено. Значение по умолчанию:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. Значение по умолчанию:
```toml
[[battery.display]]
@@ -354,7 +366,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
#### Опции
-Опция `display` представляет собой массив следующей таблицы.
+The `display` option is an array of the following table.
| Параметр | По умолчанию | Описание |
| -------------------- | ------------ | --------------------------------------------------------------------------------------------------------- |
@@ -381,9 +393,9 @@ discharging_symbol = 💦
## Символ
-Модуль `character` показывает символ (обычно, стрелка) рядом с вводимым текстом в терминале.
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-Символ показывает, была ли последняя команда успешной или нет. It can do this in two ways:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- changing color (`red`/`green`)
- changing shape (`❯`/`✖`)
@@ -477,31 +489,61 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
-## Длительность команды
+## COBOL / GNUCOBOL
-Модуль `cmd_duration` показывает время исполнения последней команды. Модуль будет показан только, если команда заняла более двух секунд, или если задан параметр `min_time`.
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: предупреждение Не подключайте ловушку DEBUG к Bash
-
-Если вы испоьзуете Starship в `bash`, не подключайте ловушку `DEBUG` после запуска `eval $(starship init $0)`, иначе этот модуль сломается.
-
-:::
-
-Пользователи Bash, которым нужна функциональность, подобная preexec, могут использовать [фреймворк bash_preexec от rcaloras](https://github.com/rcaloras/bash-preexec). Просто определите массивы `preexec_functions` и `precmd_functions` перед запуском `eval $(starship init $0)`, а затем продолжайте нормально.
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### Опции
-| Параметр | По умолчанию | Описание |
-| -------------------- | ----------------------------- | -------------------------------------------------------------------- |
-| `min_time` | `2_000` | Кратчайшая продолжительность для показа времени (в миллисекундах). |
-| `show_milliseconds` | `false` | Показывать миллисекунды в дополнение к секундам в продолжительности. |
-| `format` | `"took [$duration]($style) "` | Формат модуля. |
-| `style` | `"bold yellow"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `cmd_duration`. |
-| `show_notifications` | `false` | Show desktop notifications when command completes. |
-| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+| Параметр | По умолчанию | Описание |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | Стиль модуля. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ---------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
+
+\*: This variable can only be used as a part of a style string
+
+## Длительность команды
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | Формат модуля. |
+| `style` | `"bold yellow"` | Стиль модуля. |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
::: tip
@@ -516,7 +558,7 @@ Showing desktop notifications requires starship to be built with `rust-notify` s
| duration | `16m40s` | The time it took to execute the command |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -528,26 +570,26 @@ min_time = 500
format = "underwent [$duration](bold yellow)"
```
-## Конда
+## Conda
-Модуль `conda` показывает текущее окружение conda, если `$CONDA_DEFAULT_ENV` присвоено значение.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
-Это не подавляет модификатор командной строки самой conda. Возможно, вы захотите запустить `conda config --set changeps1 False`.
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
### Опции
-| Параметр | По умолчанию | Описание |
-| ------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| `truncation_length` | `1` | Количество каталогов, в которых путь к окружению должен быть усечен, если окружение было создано через `conda create -p [path]`. `0` означает без усечения. Также смотрите модуль [`directory`](#directory). |
-| `symbol` | `"🅒 "` | Символ перед названием окружения. |
-| `style` | `"bold green"` | Стиль модуля. |
-| `format` | `"via [$symbol$environment]($style) "` | Формат модуля. |
-| `ignore_base` | `true` | Ignores `base` environment when activated. |
-| `disabled` | `false` | Отключает модуль `conda`. |
+| Параметр | По умолчанию | Описание |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | Стиль модуля. |
+| `format` | `"via [$symbol$environment]($style) "` | Формат модуля. |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### Переменные
@@ -557,7 +599,7 @@ format = "underwent [$duration](bold yellow)"
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -572,21 +614,21 @@ format = "[$symbol$environment](dimmed green) "
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `shard.yml`
-- Текущий каталог содержит файл `.cr`
+- The current directory contains a `shard.yml` file
+- The current directory contains a `.cr` file
### Опции
| Параметр | По умолчанию | Описание |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `symbol` | `"🔮 "` | Символ, используемый перед отображением версии crystal. |
+| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold red"` | Стиль модуля. |
| `detect_extensions` | `["cr"]` | Which extensions should trigger this module. |
| `detect_files` | `["shard.yml"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `disabled` | `false` | Отключает модуль `crystal`. |
+| `disabled` | `false` | Disables the `crystal` module. |
### Переменные
@@ -596,7 +638,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -636,7 +678,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -650,7 +692,7 @@ format = "via [🔰 $version](bold red) "
## Deno
The `deno` module shows you your currently installed version of [Deno](https://deno.land/). By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `mod.ts`, `mod.js`, `deps.ts` или `deps.js`
+- The current directory contains a `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
### Опции
@@ -684,33 +726,33 @@ format = "via [🦕 $version](green bold) "
## Каталог
-Модуль `directory` показывает путь к вашей текущей директории, усеченной до трех родительских папок. Ваш каталог также будет отсечен до корня git репозитория, в котором вы находитесь.
+The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
-При использовании стиля оболочки fish, вместо скрытия усеченного каталога, вы увидите укороченное имя каталога, зависимое от числа символов вы установите для этой опции.
+When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
-Например, возьмем `~/Dev/Nix/nixpkgs/pkgs` где `nixpkgs` является корневым репозиторием, и в опции установлено `1`. Вы увидите `~/D/N/nixpkgs/pkgs`, а до этого было бы `nixpkgs/pkgs`.
+For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### Опции
-| Параметр | По умолчанию | Описание |
-| ------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------- |
-| `truncation_length` | `3` | Количество родительских папок, к которым должен быть усечен текущий каталог. |
-| `truncate_to_repo` | `true` | Следует или нет обрезать до корня репозитория git, в котором вы находитесь. |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Формат модуля. |
-| `style` | `"bold cyan"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `directory`. |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
-| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| Параметр | По умолчанию | Описание |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Формат модуля. |
+| `style` | `"bold cyan"` | Стиль модуля. |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
-Этот модуль имеет несколько расширенных опций конфигурации, которые контролируют отображение каталога.
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | По умолчанию | Описание |
| --------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | Количество символов, используемых при использовании логики создания пути из fish. |
+| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
| `use_logical_path` | `true` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD.
@@ -721,7 +763,7 @@ format = "via [🦕 $version](green bold) "
"src/com/long/java/path" = "mypath"
```
-`fish_style_pwd_dir_length` взаимодействует со стандартными параметрами усечения, которые могут сначала показаться странными: если он не равен нулю, элементы пути, который обычно усекается, вместо этого отображаются с указанным количеством символов. For example, the path `/built/this/city/on/rock/and/roll`, which would normally be displayed as as `rock/and/roll`, would be displayed as `/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`.
+`fish_style_pwd_dir_length` interacts with the standard truncation options in a way that can be surprising at first: if it's non-zero, the components of the path that would normally be truncated are instead displayed with that many characters. For example, the path `/built/this/city/on/rock/and/roll`, which would normally be displayed as as `rock/and/roll`, would be displayed as `/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`.
@@ -732,7 +774,7 @@ format = "via [🦕 $version](green bold) "
| path | `"D:/Projects"` | The current directory path |
| style\* | `"black bold dimmed"` | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -744,7 +786,7 @@ truncation_length = 8
truncation_symbol = "…/"
```
-## Контекст Docker
+## Docker Context
The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -769,7 +811,7 @@ The `docker_context` module shows the currently active [Docker context](https://
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -782,7 +824,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. Если SDK был закреплен в текущей директории, будет показана закрепленная версия. В противном случае модуль отображает последнюю установленную версию SDK.
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -797,7 +839,7 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
-Внутренне этот модуль использует свой собственный механизм определения версий. Обычно он в два раза быстрее, чем `dotnet --version`, но он может показывать неправильную версию, если ваш .NET проект имеет необычный формат каталога. Если точность важнее, чем скорость, вы можете отключить механизм опцией `heuristic = false` в настройках модуля.
+Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
The module will also show the Target Framework Moniker () when there is a csproj file in the current directory.
@@ -807,13 +849,13 @@ The module will also show the Target Framework Moniker ([\\w-]+)" = "gke-$cluster"
```
-## Перевод Строки
+## Line Break
-Модуль `line_break` разделяет командную строку на две строки.
+The `line_break` module separates the prompt into two lines.
### Опции
-| Параметр | По умолчанию | Описание |
-| ---------- | ------------ | ------------------------------------------------------------------------ |
-| `disabled` | `false` | Отключает модуль `line_break`, отображая командную строку в одну строку. |
+| Параметр | По умолчанию | Описание |
+| ---------- | ------------ | ------------------------------------------------------------------ |
+| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. |
### Пример
@@ -1736,7 +1808,7 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -1747,27 +1819,27 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
format = "via [🌕 $version](bold blue) "
```
-## Использование памяти
+## Memory Usage
-Модуль `memory_usage` отображает текущую системную память и использование подкачки.
+The `memory_usage` module shows current system memory and swap usage.
-По умолчанию использование подкачки отображается, если общая сумма подкачки системы не равна нулю.
+By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### Опции
-| Параметр | По умолчанию | Описание |
-| ----------- | ----------------------------------------------- | ------------------------------------------------------------------ |
-| `threshold` | `75` | Скрывать использование памяти, если она не превышает этот процент. |
-| `format` | `"via $symbol [${ram}( \| ${swap})]($style) "` | Формат модуля. |
-| `symbol` | `"🐏"` | Символ, используемый перед отображением использования памяти. |
-| `style` | `"bold dimmed white"` | Стиль модуля. |
-| `disabled` | `true` | Отключает модуль `memory_usage`. |
+| Параметр | По умолчанию | Описание |
+| ----------- | ----------------------------------------------- | -------------------------------------------------------- |
+| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. |
+| `format` | `"via $symbol [${ram}( \| ${swap})]($style) "` | Формат модуля. |
+| `symbol` | `"🐏"` | The symbol used before displaying the memory usage. |
+| `style` | `"bold dimmed white"` | Стиль модуля. |
+| `disabled` | `true` | Disables the `memory_usage` module. |
### Переменные
@@ -1794,20 +1866,20 @@ symbol = " "
style = "bold dimmed green"
```
-## Ветка Mercurial
+## Mercurial Branch
-Модуль `hg_branch` показывает активную ветку репозитория в вашем текущем каталоге.
+The `hg_branch` module shows the active branch of the repo in your current directory.
### Опции
-| Параметр | По умолчанию | Описание |
-| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- |
-| `symbol` | `" "` | Символ, используемый перед закладкой hg или именем ветки репозитория в текущем каталоге. |
-| `style` | `"bold purple"` | Стиль модуля. |
-| `format` | `"on [$symbol$branch]($style) "` | Формат модуля. |
-| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
-| `truncation_symbol` | `"…"` | Символ, используемый для обозначения усечения названия ветки. |
-| `disabled` | `true` | Отключает модуль `hg_branch`. |
+| Параметр | По умолчанию | Описание |
+| ------------------- | -------------------------------- | -------------------------------------------------------------------------------------------- |
+| `symbol` | `" "` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
+| `style` | `"bold purple"` | Стиль модуля. |
+| `format` | `"on [$symbol$branch]($style) "` | Формат модуля. |
+| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
+| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. |
+| `disabled` | `true` | Disables the `hg_branch` module. |
### Переменные
@@ -1817,7 +1889,7 @@ style = "bold dimmed green"
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -1834,7 +1906,7 @@ truncation_symbol = ""
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `nim.cfg`
+- The current directory contains a `nim.cfg` file
- The current directory contains a file with the `.nim` extension
- The current directory contains a file with the `.nims` extension
- The current directory contains a file with the `.nimble` extension
@@ -1843,7 +1915,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| Параметр | По умолчанию | Описание |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. |
| `detect_extensions` | `["nim", "nims", "nimble"]` | Which extensions should trigger this module. |
@@ -1860,7 +1932,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -1874,7 +1946,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. Модуль будет показываться внутри среды nix-shell.
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### Опции
@@ -1885,7 +1957,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| `style` | `"bold blue"` | Стиль модуля. |
| `impure_msg` | `"impure"` | A format string shown when the shell is impure. |
| `pure_msg` | `"pure"` | A format string shown when the shell is pure. |
-| `disabled` | `false` | Отключает модуль `nix_shell`. |
+| `disabled` | `false` | Disables the `nix_shell` module. |
### Переменные
@@ -1896,7 +1968,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -1914,10 +1986,10 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `package.json`
+- The current directory contains a `package.json` file
- The current directory contains a `.node-version` file
- The current directory contains a `.nvmrc` file
-- Текущий каталог содержит каталог `node_modules`
+- The current directory contains a `node_modules` directory
- The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension
- The current directory contains a file with the `.ts` extension
@@ -1932,7 +2004,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
| `style` | `"bold green"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `nodejs`. |
+| `disabled` | `false` | Disables the `nodejs` module. |
| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
### Переменные
@@ -1943,7 +2015,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -1990,7 +2062,7 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2023,7 +2095,7 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2036,23 +2108,23 @@ style = "bold yellow"
symbol = "☁️ "
```
-## Версия пакета
+## Package Version
-Модуль `package` отображается, когда текущий каталог является репозиторием для пакета и показывает его текущую версию. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠ Показана версия пакета, исходный код которого находится в текущем каталоге, а не в менеджере пакетов.
@@ -2061,11 +2133,11 @@ symbol = "☁️ "
| Параметр | По умолчанию | Описание |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"is [$symbol$version]($style) "` | Формат модуля. |
-| `symbol` | `"📦 "` | Символ, используемый перед отображением версии пакета. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold 208"` | Стиль модуля. |
| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Отключает модуль `package`. |
+| `disabled` | `false` | Disables the `package` module. |
### Переменные
@@ -2075,7 +2147,7 @@ symbol = "☁️ "
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2130,8 +2202,8 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `composer.json`
-- Текущий каталог содержит файл `.php-version`
+- The current directory contains a `composer.json` file
+- The current directory contains a `.php-version` file
- The current directory contains a `.php` extension
### Опции
@@ -2140,12 +2212,12 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐘 "` | Символ, используемый перед отображением версии PHP. |
+| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
| `detect_extensions` | `["php"]` | Which extensions should trigger this module. |
| `detect_files` | `["composer.json", ".php-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"147 bold"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `php`. |
+| `disabled` | `false` | Disables the `php` module. |
### Переменные
@@ -2155,7 +2227,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2170,7 +2242,7 @@ format = "via [🔹 $version](147 bold) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `spago.dhall`
+- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
### Опции
@@ -2194,7 +2266,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2213,15 +2285,15 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name
By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `.python-version`
-- Текущий каталог содержит файл `Pipfile`
+- The current directory contains a `.python-version` file
+- The current directory contains a `Pipfile` file
- The current directory contains a `__init__.py` file
-- Текущий каталог содержит файл `pyproject.toml`
-- Текущий каталог содержит файл `requirements.txt`
-- Текущий каталог содержит файл `setup.py`
-- Текущий каталог содержит файл `tox.ini`
-- Текущий каталог содержит файл с расширением `.py`.
-- Виртуальная среда в данный момент активирована
+- The current directory contains a `pyproject.toml` file
+- The current directory contains a `requirements.txt` file
+- The current directory contains a `setup.py` file
+- The current directory contains a `tox.ini` file
+- The current directory contains a file with the `.py` extension.
+- A virtual environment is currently activated
### Опции
@@ -2231,7 +2303,7 @@ By default the module will be shown if any of the following conditions are met:
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
| `style` | `"yellow bold"` | Стиль модуля. |
-| `pyenv_version_name` | `false` | Использовать pyenv для получения версии Python |
+| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2338,7 +2410,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2363,7 +2435,7 @@ By default the `red` module shows the currently installed version of [Red](https
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2376,11 +2448,11 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `Gemfile`
-- Текущий каталог содержит файл `.ruby-version`
-- Текущий каталог содержит файл `.rb`
+- The current directory contains a `Gemfile` file
+- The current directory contains a `.ruby-version` file
+- The current directory contains a `.rb` file
### Опции
@@ -2393,7 +2465,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| `detect_files` | `["Gemfile", ".ruby-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold red"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `ruby`. |
+| `disabled` | `false` | Disables the `ruby` module. |
### Переменные
@@ -2403,7 +2475,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2416,10 +2488,10 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
-- Текущий каталог содержит файл `Cargo.toml`
-- Текущий каталог содержит файл с расширением `.rs`
+- The current directory contains a `Cargo.toml` file
+- The current directory contains a file with the `.rs` extension
### Опции
@@ -2432,7 +2504,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| `detect_files` | `["Cargo.toml"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold red"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `rust`. |
+| `disabled` | `false` | Disables the `rust` module. |
### Переменные
@@ -2442,7 +2514,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2482,7 +2554,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2499,7 +2571,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Опции
@@ -2560,7 +2632,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2594,7 +2666,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2611,7 +2683,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2650,7 +2722,7 @@ The `status` module displays the exit code of the previous command. The module w
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2669,7 +2741,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2695,7 +2767,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2718,7 +2790,7 @@ By default the Terraform version is not shown, since this is slow for current ve
By default the module will be shown if any of the following conditions are met:
-- Текущий каталог содержит папку `.terraform`
+- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` or `.hcl` extensions
### Опции
@@ -2732,7 +2804,7 @@ By default the module will be shown if any of the following conditions are met:
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[".terraform"]` | Which folders should trigger this module. |
| `style` | `"bold 105"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `terraform`. |
+| `disabled` | `false` | Disables the `terraform` module. |
### Переменные
@@ -2743,7 +2815,7 @@ By default the module will be shown if any of the following conditions are met:
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2767,36 +2839,36 @@ format = "[🏎💨 $workspace]($style) "
## Время
-Модуль `time` показывает текущее **локальное** время. Значение конфигурации `format` используется пакетом [`chrono`](https://crates.io/crates/chrono) для контроля того, как отображается время. Ознакомьтесь с [документацией chrono strftime](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html), чтобы увидеть доступные параметры.
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### Опции
-| Параметр | По умолчанию | Описание |
-| ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `format` | `"at [$time]($style) "` | The format string for the module. |
-| `use_12hr` | `false` | Включить 12-часовое форматирование |
-| `time_format` | см. ниже | [Строка формата chrono](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html), используемая для форматирования времени. |
-| `style` | `"bold yellow"` | Стиль модуля времени |
-| `utc_time_offset` | `"local"` | Устанавливает смещение UTC. Range from -24 < x < 24. Разрешает числам с плавающей точкой встраивать 30/45-минутное смещение временной зоны. |
-| `disabled` | `true` | Отключает модуль `time`. |
-| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
+| Параметр | По умолчанию | Описание |
+| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
+| `format` | `"at [$time]($style) "` | The format string for the module. |
+| `use_12hr` | `false` | Enables 12 hour formatting |
+| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. |
+| `style` | `"bold yellow"` | The style for the module time |
+| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. |
+| `disabled` | `true` | Disables the `time` module. |
+| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Иначе по умолчанию используется `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Переменные
| Переменная | Пример | Описание |
| ---------- | ---------- | ----------------------------------- |
-| время | `13:08:10` | The current time. |
+| time | `13:08:10` | The current time. |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2811,14 +2883,14 @@ utc_time_offset = "-5"
time_range = "10:00:00-14:00:00"
```
-## Имя пользователя
+## Username
-Модуль `username` показывает имя активного пользователя. Модуль будет показан, если любое из следующих условий соблюдено:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
-- Текущий пользователь - root
-- Текущий пользователь отличается от залогиненного
-- Пользователь подключен к SSH-сессии
-- Переменная `show_always` равна true
+- The current user is root
+- The current user isn't the same as the one that is logged in
+- The user is currently connected as an SSH session
+- The variable `show_always` is set to true
::: tip
@@ -2828,13 +2900,13 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Опции
-| Параметр | По умолчанию | Описание |
-| ------------- | ----------------------- | ------------------------------------------------------- |
-| `style_root` | `"bold red"` | Стиль, используемый для пользователя root. |
-| `style_user` | `"bold yellow"` | Стиль, используемый для всех пользователей, кроме root. |
-| `format` | `"[$user]($style) in "` | Формат модуля. |
-| `show_always` | `false` | Всегда показывать модуль `username`. |
-| `disabled` | `false` | Отключает модуль `username`. |
+| Параметр | По умолчанию | Описание |
+| ------------- | ----------------------- | ------------------------------------- |
+| `style_root` | `"bold red"` | The style used when the user is root. |
+| `style_user` | `"bold yellow"` | The style used for non-root users. |
+| `format` | `"[$user]($style) in "` | Формат модуля. |
+| `show_always` | `false` | Always shows the `username` module. |
+| `disabled` | `false` | Disables the `username` module. |
### Переменные
@@ -2883,7 +2955,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2950,7 +3022,7 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| symbol | | Отражает значение параметра `symbol` |
| style\* | `black bold dimmed` | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -2963,7 +3035,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -2988,7 +3060,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| symbol | | Отражает значение параметра `symbol` |
| style\* | | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
### Пример
@@ -3036,7 +3108,7 @@ The order in which custom modules are shown can be individually set by including
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
| `shell` | | [See below](#custom-command-shell) |
-| `описание` | `""` | The description of the module that is shown when running `starship explain`. |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
| `files` | `[]` | The files that will be searched in the working directory for a match. |
| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
@@ -3054,7 +3126,7 @@ The order in which custom modules are shown can be individually set by including
| symbol | Отражает значение параметра `symbol` |
| style\* | Отражает значение параметра `style` |
-\*: Эта переменная может использоваться только в качестве части строки style
+\*: This variable can only be used as a part of a style string
#### Custom command shell
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index 6f49b56c..081b8dae 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Для обновления Starship перезапустите этот скрипт. Он заменит текущую версию без изменения конфигурации.
+ Для обновления Starship перезапустите этот скрипт. Он заменит текущую версию без изменения конфигурации.
**Примечание** - Значения по умолчанию из установочного скрипта могут быть переопределены. Для уточнения смотрите встроенную справку.
diff --git a/docs/ru-RU/presets/README.md b/docs/ru-RU/presets/README.md
index bdc804f6..e696862a 100644
--- a/docs/ru-RU/presets/README.md
+++ b/docs/ru-RU/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/tr-TR/advanced-config/README.md b/docs/tr-TR/advanced-config/README.md
index 1b39223d..89301d9f 100644
--- a/docs/tr-TR/advanced-config/README.md
+++ b/docs/tr-TR/advanced-config/README.md
@@ -67,6 +67,33 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Style Strings
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
diff --git a/docs/tr-TR/config/README.md b/docs/tr-TR/config/README.md
index 3d994b90..5cc5fd4f 100644
--- a/docs/tr-TR/config/README.md
+++ b/docs/tr-TR/config/README.md
@@ -75,7 +75,7 @@ A text group is made up of two different parts.
The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
For example:
@@ -142,12 +142,14 @@ This is the list of prompt-wide configuration options.
### Options
-| Option | Default | Description |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | Default | Description |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Example
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,6 +243,13 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
@@ -479,6 +491,36 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
+## COBOL / GNUCOBOL
+
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | The style for the module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
## Command Duration
The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -1017,6 +1059,35 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
format = "via [e $version](bold red) "
```
+## Fill
+
+The `fill` module fills any extra space on the line with a symbol. If multiple `fill` modules are present in a line they will split the space evenly between them. This is useful for aligning other modules.
+
+### Options
+
+| Option | Default | Description |
+| -------- | -------------- | --------------------------------- |
+| `symbol` | `"."` | The symbol used to fill the line. |
+| `style` | `"bold black"` | The style for the module. |
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+format="AA $fill BB $fill CC"
+
+[fill]
+symbol = "-"
+style = "bold green"
+```
+
+Produces a prompt that looks like:
+
+```
+AA -------------------------------------------- BB -------------------------------------------- CC
+
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
@@ -1205,12 +1276,13 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| --------------- | -------------------------------------------------------- | ---------------------------------- |
-| `added_style` | `"bold green"` | The style for the added count. |
-| `deleted_style` | `"bold red"` | The style for the deleted count. |
-| `format` | `'[+$added]($added_style) [-$deleted]($deleted_style) '` | The format for the module. |
-| `disabled` | `true` | Disables the `git_metrics` module. |
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `added_style` | `"bold green"` | The style for the added count. |
+| `deleted_style` | `"bold red"` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `disabled` | `true` | Disables the `git_metrics` module. |
### Variables
@@ -1318,9 +1390,9 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}"
behind = "⇣${count}"
```
-## Golang
+## Go
-The `golang` module shows the currently installed version of [Golang](https://golang.org/). By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of [Go](https://golang.org/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a `go.mod` file
- The current directory contains a `go.sum` file
@@ -2041,18 +2113,18 @@ symbol = "☁️ "
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Options
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
diff --git a/docs/tr-TR/guide/README.md b/docs/tr-TR/guide/README.md
index 11a165ce..a8d04975 100644
--- a/docs/tr-TR/guide/README.md
+++ b/docs/tr-TR/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
**Note** - The defaults of the install script can be overridden see the built-in help.
diff --git a/docs/tr-TR/presets/README.md b/docs/tr-TR/presets/README.md
index ac113b6c..1e9e1785 100644
--- a/docs/tr-TR/presets/README.md
+++ b/docs/tr-TR/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/vi-VN/advanced-config/README.md b/docs/vi-VN/advanced-config/README.md
index 63b4bd19..f7253df3 100644
--- a/docs/vi-VN/advanced-config/README.md
+++ b/docs/vi-VN/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### Ví dụ
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## Các chuỗi kiểu
-Chuỗi kiểu là một danh sách các từ, được phân cách bởi khoảng trắng. Các từ là không phân biệt hoa thường (ví dụ. `bold` và `Bold` là hai chuỗi tương đương). Mỗi từ có thể là một trong các từ sau:
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `nghiêng`
@@ -82,14 +109,14 @@ Chuỗi kiểu là một danh sách các từ, được phân cách bởi khoả
- ``
- `none`
-`` là một nơi quy định màu (được bàn luận ở phía dưới). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. Thứ tự các từ trong chuỗi là không quan trọng.
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-Từ mã `none` ghi đè tất cả các từ mã khác trong chuỗi nếu nó không là một phần của `bg:` specifier, vậy nên `fg:red none fg:blue` sẽ vẫn tạo một chuỗi mà không có kiểu. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. Nó có thể trở thành một lỗi để sử dụng `none` trong việc kết hợp với các từ mã khác trong tương lai.
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-Một quy định màu có thể là một trong các thứ sau:
+A color specifier can be one of the following:
- Một tròn các màu chuẩn của terminal: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. Bạn có thể tuỳ chọn những tiền tố này với `bright` để có được phiên bản sáng hơn (ví dụ: `bright-white`).
- Một `#` được theo sau bởi một số thập lục phân gồm sáu chữ số. Cái này quy định một [mã thập lục phân cho màu RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- Một số nằm giữa 0-255. Cái này quy định một [mã màu ANSI 8-bit](https://i.stack.imgur.com/KTSQa.png).
-Nếu nhiều màu được quy định cho màu chữ/màu nền, cái cuối cùng trong chuỗi sẽ được ưu tiên.
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md
index ed35436c..510ce998 100644
--- a/docs/vi-VN/config/README.md
+++ b/docs/vi-VN/config/README.md
@@ -75,7 +75,7 @@ Một nhóm văn bản được tạo nên bởi hai phần khác nhau.
Phần đầu tiên, cái được bao bọc trong một `[]`, là một [định dạng chuỗi](#format-strings). Bạn có thể thêm các văn bản, các biến, hoặc thậm chí các nhóm văn bản lồng nhau vào trong nó.
-Phần thứ hai, cái được bao bọc trong một `()`, là một [chuỗi kiểu](#style-strings). Cái này có thể được sử dụng để quy định kiểu của phần đầu tiên.
+Phần thứ hai, cái được bao bọc trong một `()`, là một [chuỗi kiểu](#style-strings). This can be used to style the first part.
Ví dụ:
@@ -142,12 +142,14 @@ Cái này là danh sách các tuỳ chọn cho cấu hình prompt-wide.
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| ----------------- | ------------------------------ | ------------------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Cấu hình định dạng của prompt. |
-| `scan_timeout` | `30` | Timeout của starship cho việc quét các tập tin (tính theo milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Chèn dòng trắng giữa các dấu nhắc lệnh. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Cấu hình định dạng của prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### Ví dụ
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,9 +243,16 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-`aws` module cho biết region và profile hiện tại của AWS. Cái này dựa trên các biến môi trường `AWS_REGION`, `AWS_DEFAULT_REGION`, và `AWS_PROFILE` với tập tin `~/.aws/config`. This module also shows an expiration timer when using temporary credentials.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
@@ -269,7 +281,7 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Các vị dụ
@@ -314,7 +326,7 @@ symbol = "🅰 "
## Battery
-`battery` module cho biết cách sạc pin của thiết bị là gì và tình trạng sạc hiện tại của nó. Module chỉ được nhìn thấy khi pin của thiết bị dưới 10%.
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### Các tuỳ chọn
@@ -342,7 +354,7 @@ discharging_symbol = "💀 "
### Hiển thị pin
-The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). Nếu `display` không được cung cấp. Mặc định như sau:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. Mặc định như sau:
```toml
[[battery.display]]
@@ -354,7 +366,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
#### Các tuỳ chọn
-Tuỳ chọn `display` là một mảng của của bảng sau.
+The `display` option is an array of the following table.
| Tuỳ chọn | Mặc định | Mô tả |
| -------------------- | ---------- | --------------------------------------------------------------------------------------------------------- |
@@ -381,14 +393,14 @@ discharging_symbol = 💦
## Character
-Module `character` cho biết một kí tự (thường là một mũi tên) bên cạnh nơi văn bản được nhập trong terminal của bạn.
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-Kí tự sẽ nói cho bạn câu lệnh cuối liệu thành công hay thất bại. Nó có thể làm điều này bằng hai cách:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- thay đổi màu(`đỏ`/`xanh lá`)
- thay đổi hình dạng (`❯`/`✖`)
-Mặc định, nó chỉ thay đổi màu. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
+By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
::: cảnh báo
@@ -451,7 +463,7 @@ vicmd_symbol = "[V](bold green) "
## CMake
-The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). Mặc định module sẽ được kích hoạt nếu thoả mãn bất kì điều kiện nào dưới đây:
+The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). By default the module will be activated if any of the following conditions are met:
- Đường dẫn hiện tại chứa một tập tin `CmakeLists.txt`
- Đường dẫn hiện tại chứa một tập tin `CMakeCache.txt`
@@ -477,46 +489,76 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
-## Command Duration
+## COBOL / GNUCOBOL
-Module `cmd_duration`. cho biết câu lệnh cuối cùng thực thi trong bao lâu. Module sẽ được hiện chỉ khi câu lệnh lấy nhiều hơn 2 giây, hoặc giá trị cấu hình `min_time`, nếu nó tồn tại.
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: cảnh báo Không thể hook DEBUG trap trong Bash
-
-Nếu bạn đang chạy Starship trong `bash`, không thể hook `DEBUG` trap sau khi chạy `eval $(starship init $0)`, hoặc module này **sẽ** ngắt.
-
-:::
-
-Người dùng Bash, những người cần chức năng giống preexec có thể sử dụng [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Đơn giản là định nghĩa các mảng `preexec_functions` và `precmd_functions` trước khi chạy `eval $(starship init $0)`, và sau đó thực thi như bình thường.
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| -------------------- | ----------------------------- | ---------------------------------------------------------------------- |
-| `min_time` | `2_000` | Khoảng thời gian ngắn nhất để hiện thời gian (tính bằng milliseconds). |
-| `show_milliseconds` | `false` | Hiện milliseconds. |
-| `format` | `"took [$duration]($style) "` | Định dạng cho module. |
-| `style` | `"bold yellow"` | Kiểu cho module. |
-| `disabled` | `false` | Vô hiệu module `cmd_duration`. |
-| `show_notifications` | `false` | Hiện thông báo desktop khi câu lệnh hoàn thành. |
-| `min_time_to_notify` | `45_000` | Khoảng thời gian ngắn nhất để thông báo (tính bằng milliseconds). |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | Định dạng cho module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | Kiểu cho module. |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `[]` | Tên tệp nào sẽ kích hoạt mô-đun này. |
+| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
+| `disabled` | `false` | Disables the `cobol` module. |
-::: thử thuật
+### Các biến
-Hiện thông báo desktop yêu cầu starship được built với sự hỗ trợ của `rust-notify`. Bạn kiểm tra nếu starship hỗ trợ các thông báo bằng cách chạy `STARSHIP_LOG=debug starship module cmd_duration -d 60000` khi `show_notifications` được thiết lập là `true`.
+| Biến | Ví dụ | Mô tả |
+| --------- | ---------- | -------------------------------- |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
+| style\* | | Giá trị ghi đè của `style` |
+
+\*: This variable can only be used as a part of a style string
+
+## Command Duration
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### Các tuỳ chọn
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | Định dạng cho module. |
+| `style` | `"bold yellow"` | Kiểu cho module. |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+
+::: tip
+
+Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
:::
### Các biến
-| Biến | Ví dụ | Mô tả |
-| --------- | -------- | ------------------------------------- |
-| duration | `16m40s` | Thời gian nó lấy để thực thi câu lệnh |
-| style\* | | Giá trị ghi đè của `style` |
+| Biến | Ví dụ | Mô tả |
+| --------- | -------- | --------------------------------------- |
+| duration | `16m40s` | The time it took to execute the command |
+| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -530,11 +572,11 @@ format = "underwent [$duration](bold yellow)"
## Conda
-Module `conda` cho biết môi trường conda hiện tại, nếu `$CONDA_DEFAULT_ENV` được thiết lập.
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
-::: thử thuật
+::: tip
-Cái này không loại bỏ conda's prompt mà nó sở hữu, bạn có thể muốn chạy `conda config --set changeps1 False`.
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
@@ -542,22 +584,22 @@ Cái này không loại bỏ conda's prompt mà nó sở hữu, bạn có thể
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | Số lượng đường dẫn của biến môi trường nên được cắt bớt, nếu biến môi trường được tạo thông qua via `conda create -p [path]`. `0` nghĩa là không cắt bớt. Cũng thấy trong module [`directory`](#directory). |
-| `symbol` | `"🅒 "` | Kí hiệu sử dụng trước tên biến môi trường. |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
| `style` | `"bold green"` | Kiểu cho module. |
| `format` | `"via [$symbol$environment]($style) "` | Định dạng cho module. |
-| `ignore_base` | `true` | Bỏ qua biến môi trường `base` khi đã kích hoạt. |
-| `disabled` | `false` | Vô hiệu module `conda`. |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### Các biến
-| Biến | Ví dụ | Mô tả |
-| ----------- | ------------ | ---------------------------------- |
-| environment | `astronauts` | Biến môi trường hiện tại của conda |
-| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
-| style\* | | Giá trị ghi đè của `style` |
+| Biến | Ví dụ | Mô tả |
+| ----------- | ------------ | -------------------------------- |
+| environment | `astronauts` | The current conda environment |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
+| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -572,31 +614,31 @@ format = "[$symbol$environment](dimmed green) "
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
-- Đường dẫn hiện tại chứa một tập tin `shard.yml`
-- Đường dẫn hiện tại chứa một tập tin `.cr`
+- The current directory contains a `shard.yml` file
+- The current directory contains a `.cr` file
-### Options
+### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `symbol` | `"🔮 "` | Kí hiệu sử dụng trước phiên bản hiển thị của crystal. |
+| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
| `format` | `"via [$symbol($version )]($style)"` | Định dạng cho module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold red"` | Kiểu cho module. |
| `detect_extensions` | `["cr"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `["shard.yml"]` | Tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
-| `disabled` | `false` | Vô hiệu hoá module `crystal`. |
+| `disabled` | `false` | Disables the `crystal` module. |
### Các biến
| Biến | Ví dụ | Mô tả |
| --------- | --------- | -------------------------------- |
-| version | `v0.32.1` | Phiên bản của `crystal` |
+| version | `v0.32.1` | The version of `crystal` |
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -611,9 +653,9 @@ format = "via [✨ $version](bold blue) "
The `dart` module shows the currently installed version of [Dart](https://dart.dev/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
-- Đường dẫn hiện tại chứa một tập tin với phần mở rộng `.dart`
-- Đường dẫn hiện tại chứa một đường dẫn `.dart_tool`
-- Đường dẫn hiện tại chứa một tệp tin `pubspec.yaml`, `pubspec.yml` hoặc `pubspec.lock`
+- The current directory contains a file with `.dart` extension
+- The current directory contains a `.dart_tool` directory
+- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
### Các tuỳ chọn
@@ -621,22 +663,22 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | Định dạng cho module. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🎯 "` | Một chuỗi định dạng hiển thị biểu tượng của Dart |
+| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
| `detect_extensions` | `["dart"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `["pubspec.yaml", "pubspec.yml", "pubspec.lock"]` | Tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[".dart_tool"]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
| `style` | `"bold blue"` | Kiểu cho module. |
-| `disabled` | `false` | Vô hiệu `dart` module. |
+| `disabled` | `false` | Disables the `dart` module. |
### Các biến
| Biến | Ví dụ | Mô tả |
| --------- | -------- | -------------------------------- |
-| version | `v2.8.4` | Phiên bản của `dart` |
+| version | `v2.8.4` | The version of `dart` |
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -684,30 +726,30 @@ format = "via [🦕 $version](green bold) "
## Đường dẫn
-`directory` module hiển thị đường dẫn thư mục hiện hành của bạn,, cắt ngắn ba thư mục cha. Đường dẫn của bạn cũng sẽ được cắt ngắn tới đường dẫn gốc của git repo hiện tại của bạn.
+The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
-Khi sử dụng fish style pwd option, thay vì ẩn đường dẫn được rút gọn, bạn sẽ thấy một tên ngắn cho mỗi thư mục dựa trên số bạn cho phép trng tùy chọn.
+When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
-Cho ví dụ, `~/Dev/Nix/nixpkgs/pkgs` nơi `nixpkgs` là gốc của repo, và tuỳ chọn thiết lập sang `1`. Bây giờ bạn sẽ thấy `~/D/N/nixpkgs/pkgs`, trong khi trước nó là `nixpkgs/pkgs`.
+For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------ |
-| `truncation_length` | `3` | Số lượng thư mục cha của thư mục hiện tại nên được rút gọn. |
-| `truncate_to_repo` | `true` | Có hoặc không rút gọn đường dẫn gốc của git repo hiện tại của bạn. |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Định dạng cho module. |
-| `style` | `"bold cyan"` | Kiểu cho module. |
-| `disabled` | `false` | Vô hiệu mô đun `directory`. |
-| `read_only` | `"🔒"` | Biểu tượng để nhận biết thư mục hiện tại là chỉ đọc. |
-| `read_only_style` | `"red"` | Style cho biểu tượng chỉ đọc. |
-| `truncation_symbol` | `""` | Biểu tượng tiền tố cho các đường dẫn rút gọn. ví dụ: "…/" |
-| `home_symbol` | `"~"` | Biểu tượng nhận biết thư mục home. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Định dạng cho module. |
+| `style` | `"bold cyan"` | Kiểu cho module. |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
-Mô đun này có một vài tùy chọn nâng cao để điều khiển cách thư mục được hiển thị.
+This module has a few advanced configuration options that control how the directory is displayed.
-| Tùy chọn nâng cao | Mặc định | Mô tả |
+| Advanced Option | Mặc định | Mô tả |
| --------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `substitutions` | | A table of substitutions to be made to the path. |
| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
@@ -729,10 +771,10 @@ Cho ví dụ, `~/Dev/Nix/nixpkgs/pkgs` nơi `nixpkgs` là gốc của repo, và
| Biến | Ví dụ | Mô tả |
| --------- | --------------------- | -------------------------- |
-| path | `"D:/Projects"` | Đường dẫn thư mục hiện tại |
+| path | `"D:/Projects"` | The current directory path |
| style\* | `"black bold dimmed"` | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -750,26 +792,26 @@ The `docker_context` module shows the currently active [Docker context](https://
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| ------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol$context]($style) "` | Định dạng cho module. |
-| `symbol` | `"🐳 "` | Biểu tượng sử dụng để hiển thị trước Docker context. |
-| `only_with_files` | `true` | Chỉ hiển thị khi có một tệp tin khớp |
-| `detect_extensions` | `[]` | Các mở rộng nào nên kích hoạt mô đun này (cần `only_with_files` thiết lập là true). |
-| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Tên tệp tin nào nên kích hoạt mô đun này (cần `only_with_files` được thiết lập là true). |
-| `detect_folders` | `[]` | Thư mục nào nên kích hoạt mô đun này (cần `only_with_files` được thiết lập là true). |
-| `style` | `"blue bold"` | Kiểu cho module. |
-| `disabled` | `false` | Vô hiệu mô đun `docker_context`. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
+| `format` | `"via [$symbol$context]($style) "` | Định dạng cho module. |
+| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
+| `only_with_files` | `true` | Only show when there's a match |
+| `detect_extensions` | `[]` | Which extensions should trigger this module (needs `only_with_files` to be true). |
+| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Which filenames should trigger this module (needs `only_with_files` to be true). |
+| `detect_folders` | `[]` | Which folders should trigger this module (needs `only_with_files` to be true). |
+| `style` | `"blue bold"` | Kiểu cho module. |
+| `disabled` | `false` | Disables the `docker_context` module. |
### Các biến
| Biến | Ví dụ | Mô tả |
| --------- | -------------- | -------------------------------- |
-| context | `test_context` | Docker context hiện tại |
+| context | `test_context` | The current docker context |
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -782,9 +824,9 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. Nếu SDK được ghim trong thư mục hiện tại, phiên bản ghim đó được hiển thị. Ngược lại, mô đun hiển thị phiên bản cuối cùng của SDK được cài đặt.
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
-Mặc định, mô đun này sẽ chỉ được hiển thị trong dấu nhắc lệnh của bạn khi một hoặc nhiều tệp tin dưới đây xuất hiện trong thư mục hiện tại:
+By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
- `global.json`
- `project.json`
@@ -795,11 +837,11 @@ Mặc định, mô đun này sẽ chỉ được hiển thị trong dấu nhắc
- `*.fsproj`
- `*.xproj`
-Bạn cũng sẽ cần cài đặt .NET Core SDK đúng cách để sử dụng một cách chính xác.
+You'll also need the .NET Core SDK installed in order to use it correctly.
-Mô đun này sử dụng cơ chế của bản thân để phát hiện phiên bản của chính nó. Thông thường, nó nhanh gấp đôi nếu chạy `dotnet --version`, nhưng nó có thể hiện sai phiên bản nếu dự án .NET của bạn có một cấu trúc thư mục bất thường. Nếu độ chính xác quan trọng hơn tốc độ, bạn có thể vô hiệu cơ chế bằng cài đặt `heuristic = false` trong các tùy chọn mô đun.
+Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
-Mô đun cũng sẽ hiện Target Framework Moniker () khi có một tệp tin csproj trong thư mục hiện tại.
+The module will also show the Target Framework Moniker () when there is a csproj file in the current directory.
### Các tuỳ chọn
@@ -807,24 +849,24 @@ Mô đun cũng sẽ hiện Target Framework Moniker ( ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2075,7 +2147,7 @@ The `package` module is shown when the current directory is the repository for a
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2130,7 +2202,7 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
-- Đường dẫn hiện tại chứa một tập tin `composer.json`
+- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
- The current directory contains a `.php` extension
@@ -2155,7 +2227,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2170,7 +2242,7 @@ format = "via [🔹 $version](147 bold) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
-- Đường dẫn hiện tại chứa một tập tin `spago.dhall`
+- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
### Các tuỳ chọn
@@ -2194,7 +2266,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2216,10 +2288,10 @@ Mặc định module sẽ được hiển thị nếu có bất kì điều ki
- The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file
- The current directory contains a `__init__.py` file
-- Đường dẫn hiện tại chứa một tập tin `pyproject.toml`
-- Đường dẫn hiện tại chứa một tập tin `requirements.txt`
-- Đường dẫn hiện tại chứa một tập tin `setup.py`
-- Đường dẫn hiện tại chứa một tập tin `tox.ini`
+- The current directory contains a `pyproject.toml` file
+- The current directory contains a `requirements.txt` file
+- The current directory contains a `setup.py` file
+- The current directory contains a `tox.ini` file
- The current directory contains a file with the `.py` extension.
- A virtual environment is currently activated
@@ -2239,7 +2311,7 @@ Mặc định module sẽ được hiển thị nếu có bất kì điều ki
| `detect_folders` | `[]` | Thư mục nào sẽ kích hoạt mô-đun này |
| `disabled` | `false` | Disables the `python` module. |
-::: thử thuật
+::: tip
The `python_binary` variable accepts either a string or a list of strings. Starship will try executing each binary until it gets a result. Note you can only change the binary that Starship executes to get the version of Python not the arguments that are used.
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2338,7 +2410,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2363,7 +2435,7 @@ By default the `red` module shows the currently installed version of [Red](https
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2376,7 +2448,7 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Gemfile` file
- The current directory contains a `.ruby-version` file
@@ -2403,7 +2475,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2416,7 +2488,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Cargo.toml` file
- The current directory contains a file with the `.rs` extension
@@ -2442,7 +2514,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2482,7 +2554,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2497,9 +2569,9 @@ symbol = "🌟 "
The `shell` module shows an indicator for currently used shell.
-::: thử thuật
+::: tip
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### Các tuỳ chọn
@@ -2560,7 +2632,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2594,7 +2666,7 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2609,9 +2681,9 @@ format = '[📦 \[$env\]]($style) '
The `status` module displays the exit code of the previous command. The module will be shown only if the exit code is not `0`.
-::: thử thuật
+::: tip
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2650,7 +2722,7 @@ Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiế
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2669,7 +2741,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2695,7 +2767,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2710,7 +2782,7 @@ format = "via [🏎 $version](red bold)"
The `terraform` module shows the currently selected [Terraform workspace](https://www.terraform.io/docs/language/state/workspaces.html) and version.
-::: thử thuật
+::: tip
By default the Terraform version is not shown, since this is slow for current versions of Terraform when a lot of plugins are in use. If you still want to enable it, [follow the example shown below](#with-terraform-version).
@@ -2743,7 +2815,7 @@ Mặc định module sẽ được hiển thị nếu có bất kì điều ki
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2769,9 +2841,9 @@ format = "[🏎💨 $workspace]($style) "
The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
-::: thử thuật
+::: tip
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2793,10 +2865,10 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
| Biến | Ví dụ | Mô tả |
| --------- | ---------- | -------------------------- |
-| thời gian | `13:08:10` | The current time. |
+| time | `13:08:10` | The current time. |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2813,14 +2885,14 @@ time_range = "10:00:00-14:00:00"
## Username
-The `username` module shows active user's username. Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- The current user is root
- The current user isn't the same as the one that is logged in
- The user is currently connected as an SSH session
- The variable `show_always` is set to true
-::: thử thuật
+::: tip
SSH connection is detected by checking environment variables `SSH_CONNECTION`, `SSH_CLIENT`, and `SSH_TTY`. If your SSH host does not set up these variables, one workaround is to set one of them with a dummy value.
@@ -2883,7 +2955,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2950,7 +3022,7 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | `black bold dimmed` | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -2963,7 +3035,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -2988,7 +3060,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
### Ví dụ
@@ -3011,19 +3083,19 @@ These modules will be shown if any of the following conditions are met:
- The `when` command returns 0
- The current Operating System (std::env::consts::OS) matchs with `os` field if defined.
-::: thử thuật
+::: tip
Multiple custom modules can be defined by using a `.`.
:::
-::: thử thuật
+::: tip
The order in which custom modules are shown can be individually set by including `${custom.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `custom` module will simply show all custom modules in the order they were defined.
:::
-::: thử thuật
+::: tip
[Issue #1252](https://github.com/starship/starship/discussions/1252) contains examples of custom modules. If you have an interesting example not covered there, feel free to share it there!
@@ -3036,7 +3108,7 @@ The order in which custom modules are shown can be individually set by including
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
| `shell` | | [See below](#custom-command-shell) |
-| `mô tả` | `""` | The description of the module that is shown when running `starship explain`. |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
| `files` | `[]` | The files that will be searched in the working directory for a match. |
| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
@@ -3054,7 +3126,7 @@ The order in which custom modules are shown can be individually set by including
| symbol | Giá trị ghi đè tuỳ chọn `symbol` |
| style\* | Giá trị ghi đè của `style` |
-\*: Biến này có thể chỉ được sử dụng như một phần của style string
+\*: This variable can only be used as a part of a style string
#### Custom command shell
diff --git a/docs/vi-VN/guide/README.md b/docs/vi-VN/guide/README.md
index ce39f2c9..c9c3ed22 100644
--- a/docs/vi-VN/guide/README.md
+++ b/docs/vi-VN/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="Tiếng Anh"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- Để cập nhật chính Starship, hãy chạy lại đoạn script bên trên. Nó sẽ thay thế phiên bản hiện tại mà không hề thay đổi gì những cài đặt của Starship trước đó.
+ Để cập nhật chính Starship, hãy chạy lại đoạn script bên trên. Nó sẽ thay thế phiên bản hiện tại mà không hề thay đổi gì những cài đặt của Starship trước đó.
**Ghi chú** - Script cài đặt mặc định có thể bị ghi đè.
diff --git a/docs/vi-VN/presets/README.md b/docs/vi-VN/presets/README.md
index bde892c1..065c850a 100644
--- a/docs/vi-VN/presets/README.md
+++ b/docs/vi-VN/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index ea8a3701..65fc5ff4 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### 示例
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## 样式设定
-样式字符串是用空格分隔的单词列表。 其中单词不是大小写敏感的(例如 `bold` 和 `BoLd` 被视为同一字符串)。 每个单词可以是以下之一:
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `italic`
@@ -82,14 +109,14 @@ starship_precmd_user_func="set_win_title"
- ``
- `none`
-`` 是颜色说明符(下面解释)。 `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. 字符串中的单词顺序不影响显示结果。
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. 未来可能会将 `none` 与其它标识符一起使用视为一种错误。
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-颜色说明符可以是以下内容之一:
+A color specifier can be one of the following:
- 标准终端颜色之一:`black`,`red`,`green`,`blue`,`yellow`,`purple`,`cyan`,`white`。 您可以使用可选前缀 `bright-` 来获取明亮版本的颜色(例如,`bright-white`)。
- 一个 `#` 后跟一个六位十六进制数。 这将指定一个 [十六进制 RGB 颜色代码](https://www.w3schools.com/colors/colors_hexadecimal.asp)。
- 0-255 之间的数字。 这将指定一个 [8 位 ANSI 颜色码](https://i.stack.imgur.com/KTSQa.png)。
-如果为文本/背景指定了多个颜色,字符串中最后指定的颜色将具有最高优先级。
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index 1ac71bb3..68e7e269 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -75,7 +75,7 @@ A text group is made up of two different parts.
The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
For example:
@@ -142,12 +142,14 @@ format = '''
### 配置项
-| Option | 默认值 | 描述 |
-| ----------------- | ----------------------------- | --------------------------- |
-| `format` | [见下文](#default-prompt-format) | 配置提示符的格式。 |
-| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 |
-| `command_timeout` | `500` | Startship 执行命令的超时时间(单位:毫秒)。 |
-| `add_newline` | `true` | 在 shell 提示符之间插入空行。 |
+| Option | 默认值 | 描述 |
+| ----------------- | ----------------------------- | ---------------------------------------------------------------- |
+| `format` | [见下文](#default-prompt-format) | 配置提示符的格式。 |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### 示例
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,9 +243,16 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-`aws` 组件显示当前 AWS 主机所在区域与配置信息。 各组件基于 `AWS_REGION`,`AWS_DEFAULT_REGION` 和 `AWS_PROFILE` 环境变量与 `~/.aws/config` 文件。 This module also shows an expiration timer when using temporary credentials.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
@@ -314,7 +326,7 @@ symbol = "🅰 "
## Battery
-`battery` 组件显示电池充电情况和当前充电状态。 这个组件只会在当前电量低于 10% 时显示。
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### 配置项
@@ -342,7 +354,7 @@ discharging_symbol = "💀 "
### Battery 组件的显示
-The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). 如果 `display` 没有设置, 默认设置如下:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. 默认设置如下:
```toml
[[battery.display]]
@@ -354,7 +366,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
#### 配置项
-`display` 字段的子字段如下:
+The `display` option is an array of the following table.
| Option | 默认值 | 描述 |
| -------------------- | ---------- | --------------------------------------------------------------------------------------------------------- |
@@ -381,9 +393,9 @@ discharging_symbol = 💦
## Character
-`character` 组件用于在您输入终端的文本旁显示一个字符(通常是一个箭头)。
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-这个字符可以告诉您最后一个命令是否执行成功。 It can do this in two ways:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- changing color (`red`/`green`)
- changing shape (`❯`/`✖`)
@@ -479,29 +491,59 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
-## Command Duration
+## COBOL / GNUCOBOL
-`cmd_duration` 组件显示上一个命令执行的时间。 此组件只在命令执行时间长于两秒时显示,或者当其 `min_time` 字段被设置时,按此值为执行时间的显示下限。
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: warning 不要在 Bash 里捕获 DEBUG 信号
-
-如果您正在 `bash` 上使用 Starship,在运行 `eval $(starship)` 后,不要捕获 `DEBUG` 信号,否则此组件**将会**坏掉。
-
-:::
-
-需要在自动每一条命令前执行某些操作的 Bash 用户可以使用 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只需要在执行 `eval $(starship init $0)` 前简单地定义 `preexec_functions` 和 `precmd_functions` 两个列表,就可以照常运行了。
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### 配置项
-| Option | 默认值 | 描述 |
-| -------------------- | ----------------------------- | ----------------------------------------------------- |
-| `min_time` | `2_000` | 显示此组件所需的最短执行时长(单位:毫秒)。 |
-| `show_milliseconds` | `false` | 除了秒数外在执行时长中额外显示毫秒。 |
-| `format` | `"took [$duration]($style) "` | 组件格式化模板。 |
-| `style` | `"bold yellow"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `cmd_duration` 组件。 |
-| `show_notifications` | `false` | Show desktop notifications when command completes. |
-| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+| Option | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | 此组件的样式。 |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| 字段 | 示例 | 描述 |
+| --------- | ---------- | ---------------------- |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | `symbol`对应值 |
+| style\* | | `style`对应值 |
+
+\*: This variable can only be used as a part of a style string
+
+## Command Duration
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### 配置项
+
+| Option | 默认值 | 描述 |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | 组件格式化模板。 |
+| `style` | `"bold yellow"` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
::: tip
@@ -530,24 +572,24 @@ format = "underwent [$duration](bold yellow)"
## Conda
-`conda` 组件在 `$CONDA_DEFAULT_ENV` 被设置时显示当前 conda 环境。
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
-此组件没有禁用 conda 自带的提示符修改,您可能需要执行 `conda config --set changeps1 False`。
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
### 配置项
-| Option | 默认值 | 描述 |
-| ------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | 如果这个 conda 环境是通过 `conda create -p [path]` 创建的,环境路径的目录深度应该被截断到此数量。 `0` 表示不用截断。 另请参阅 [`directory`](#directory) 组件。 |
-| `symbol` | `"🅒 "` | 在环境名之前显示的符号。 |
-| `style` | `"bold green"` | 此组件的样式。 |
-| `format` | `"via [$symbol$environment]($style) "` | 组件格式化模板。 |
-| `ignore_base` | `true` | Ignores `base` environment when activated. |
-| `disabled` | `false` | 禁用 `conda` 组件。 |
+| Option | 默认值 | 描述 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | 此组件的样式。 |
+| `format` | `"via [$symbol$environment]($style) "` | 组件格式化模板。 |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### Variables
@@ -572,7 +614,7 @@ format = "[$symbol$environment](dimmed green) "
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
-- 当前目录包含一个 `shard.yml` 文件
+- The current directory contains a `shard.yml` file
- The current directory contains a `.cr` file
### 配置项
@@ -613,7 +655,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
- The current directory contains a file with `.dart` extension
- The current directory contains a `.dart_tool` directory
-- 当前目录包含 `pubspec.yaml`,`pubspec.yml` 或 `pubspec.lock` 文件
+- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
### 配置项
@@ -684,33 +726,33 @@ format = "via [🦕 $version](green bold) "
## Directory
-`directory` 组件显示当前目录的路径,显示的路径会截断到三个父目录以内。 如果您处于一个 git 仓库中,显示的路径则最多会截断到该仓库的根目录。
+The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
-当使用 fish 风格的当前目录显示样式时,您会看到基于您的设置的每个上级目录的短名称,而不是隐藏被截断的上级目录。
+When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
-例如,对于 `~/Dev/Nix/nixpkgs/pkgs`,其中 `nixpkgs` 是 git 仓库根目录,fish 风格相关选项设置为 `1`。 您将会看到 `~/D/N/nixpkgs/pkgs`,而在设置 fish 风格之前,当前路径将显示成 `nixpkgs/pkgs`。
+For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### 配置项
-| Option | 默认值 | 描述 |
-| ------------------- | -------------------------------------------------- | ----------------------------------------------------- |
-| `truncation_length` | `3` | 当前目录路径被截断后最多保留的父目录数量。 |
-| `truncate_to_repo` | `true` | 是否只截断到您当前处于的 git 仓库根目录下。 |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | 组件格式化模板。 |
-| `style` | `"bold cyan"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `directory` 组件。 |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
-| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| Option | 默认值 | 描述 |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | 组件格式化模板。 |
+| `style` | `"bold cyan"` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
-此组件有几个高级配置选项来控制当前目录路径的显示方式。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | 默认值 | 描述 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | 使用 fish shell 当前目录路径逻辑时每个省略目录名使用的字符数。 |
+| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
| `use_logical_path` | `true` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD.
@@ -782,7 +824,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. 如果当前目录已被绑定了一个版本的 SDK,则显示被帮定的版本。 否则此组件将显示最新安装的 SDK 版本。
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -797,7 +839,7 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
-在内部,此组件使用自己的版本检测机制。 一般来说此组件是直接执行 `dotnet --version` 的两倍快,但当你的 .NET 项目使用了不常见的目录布局时此组件可能显示一个错误的版本。 如果相比于速度您更需要正确的版本号,您可以在组件设置中设置 `heuristic = false` 来禁用该机制。
+Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
The module will also show the Target Framework Moniker () when there is a csproj file in the current directory.
@@ -807,13 +849,13 @@ The module will also show the Target Framework Moniker ( ⚠ 此组件显示的是源代码在当前目录中的软件包的版本,而不是包管理器的版本。
@@ -2061,11 +2133,11 @@ symbol = "☁️ "
| Option | 默认值 | 描述 |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"is [$symbol$version]($style) "` | 组件格式化模板。 |
-| `symbol` | `"📦 "` | 这个字段的内容会显示在当前软件包版本之前。 |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold 208"` | 此组件的样式。 |
| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | 禁用 `package` 组件。 |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2130,7 +2202,7 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). By default the module will be shown if any of the following conditions are met:
-- 当前目录包含一个 `composer.json` 文件
+- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
- The current directory contains a `.php` extension
@@ -2140,12 +2212,12 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐘 "` | 这个字段的内容会显示在当前 PHP 版本之前。 |
+| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
| `detect_extensions` | `["php"]` | Which extensions should trigger this module. |
| `detect_files` | `["composer.json", ".php-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"147 bold"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `php` 组件。 |
+| `disabled` | `false` | Disables the `php` module. |
### Variables
@@ -2170,7 +2242,7 @@ format = "via [🔹 $version](147 bold) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `spago.dhall` 文件
+- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
### 配置项
@@ -2209,19 +2281,19 @@ format = "via [$symbol$version](bold white)"
The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
-如果`pyenv_version_name`被设置为`true`, 本组件将会展示pyenv版本名。 否则则显示通过`python --version`获得的版本号
+If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `.python-version` 文件
-- 当前目录包含 `Pipfile` 文件
-- 当前目录包含一个名为`__init__.py`的文件
-- 当前目录包含 `pyproject.toml` 文件
-- 当前目录包含 `requirements.txt` 文件
-- 当前目录包含 `setup.py` 文件
-- 当前目录包含一个 `tox.ini` 文件
-- 当前目录包含一个使用 `.py` 扩展名的文件.
-- 当前处于一个活跃的 python 虚拟环境中
+- The current directory contains a `.python-version` file
+- The current directory contains a `Pipfile` file
+- The current directory contains a `__init__.py` file
+- The current directory contains a `pyproject.toml` file
+- The current directory contains a `requirements.txt` file
+- The current directory contains a `setup.py` file
+- The current directory contains a `tox.ini` file
+- The current directory contains a file with the `.py` extension.
+- A virtual environment is currently activated
### 配置项
@@ -2229,15 +2301,15 @@ By default the module will be shown if any of the following conditions are met:
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | 组件格式化模板。 |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐍 "` | 用于表示Python的格式化字符串。 |
+| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
| `style` | `"yellow bold"` | 此组件的样式。 |
-| `pyenv_version_name` | `false` | 使用 pyenv 获取 Python 版本 |
+| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
-| `disabled` | `false` | 禁用 `python` 组件。 |
+| `disabled` | `false` | Disables the `python` module. |
::: tip
@@ -2251,11 +2323,11 @@ The default values and order for `python_binary` was chosen to first identify th
| 字段 | 示例 | 描述 |
| ------------ | --------------- | ------------------------------------------ |
-| version | `"v3.8.1"` | `python`版本 |
+| version | `"v3.8.1"` | The version of `python` |
| symbol | `"🐍 "` | `symbol`对应值 |
| style | `"yellow bold"` | `style`对应值 |
| pyenv_prefix | `"pyenv "` | Mirrors the value of option `pyenv_prefix` |
-| virtualenv | `"venv"` | 当前`virtualenv`名称 |
+| virtualenv | `"venv"` | The current `virtualenv` name |
### 示例
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2338,7 +2410,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2376,11 +2448,11 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
-- 当前目录包含 `Gemfile` 文件
+- The current directory contains a `Gemfile` file
- The current directory contains a `.ruby-version` file
-- 当前目录包含 `.rb` 文件
+- The current directory contains a `.rb` file
### 配置项
@@ -2393,7 +2465,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| `detect_files` | `["Gemfile", ".ruby-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold red"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `ruby` 组件。 |
+| `disabled` | `false` | Disables the `ruby` module. |
### Variables
@@ -2416,10 +2488,10 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
-- 当前目录包含 `Cargo.toml` 文件
-- 当前目录包含一个使用 `.rs` 扩展名的文件
+- The current directory contains a `Cargo.toml` file
+- The current directory contains a file with the `.rs` extension
### 配置项
@@ -2432,7 +2504,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| `detect_files` | `["Cargo.toml"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold red"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `rust` 组件。 |
+| `disabled` | `false` | Disables the `rust` module. |
### Variables
@@ -2499,7 +2571,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### 配置项
@@ -2611,7 +2683,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2669,7 +2741,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2718,7 +2790,7 @@ By default the Terraform version is not shown, since this is slow for current ve
By default the module will be shown if any of the following conditions are met:
-- 当前目录包含 `.terraform` 目录
+- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` or `.hcl` extensions
### 配置项
@@ -2732,7 +2804,7 @@ By default the module will be shown if any of the following conditions are met:
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[".terraform"]` | Which folders should trigger this module. |
| `style` | `"bold 105"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `terraform` 组件。 |
+| `disabled` | `false` | Disables the `terraform` module. |
### Variables
@@ -2767,27 +2839,27 @@ format = "[🏎💨 $workspace]($style) "
## Time
-`time` 组件显示当前的 **本地** 时间。 `format` 字段值会提供给 [`chrono`](https://crates.io/crates/chrono) crate 用来控制时间显示方式。 请参阅 [chrono strftime 文档](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) 以了解可用格式选项。
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### 配置项
-| Option | 默认值 | 描述 |
-| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
-| `format` | `"at [$time]($style) "` | The format string for the module. |
-| `use_12hr` | `false` | 启用 12 小时格式 |
-| `time_format` | 见下文解释 | 用来格式化时间显示的 [chrono 格式字符串](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) |
-| `style` | `"bold yellow"` | 显示时间的样式。 |
-| `utc_time_offset` | `"local"` | 设置所用 UTC 偏移量。 Range from -24 < x < 24. 允许使用浮点数来得到 30/45 分钟的时区偏移。 |
-| `disabled` | `true` | 禁用 `time` 组件。 |
-| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
+| Option | 默认值 | 描述 |
+| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
+| `format` | `"at [$time]($style) "` | The format string for the module. |
+| `use_12hr` | `false` | Enables 12 hour formatting |
+| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. |
+| `style` | `"bold yellow"` | The style for the module time |
+| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. |
+| `disabled` | `true` | Disables the `time` module. |
+| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. 否则,其默认值为 `"%T"`。 Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Variables
@@ -2813,12 +2885,12 @@ time_range = "10:00:00-14:00:00"
## Username
-`username` 组件显示当前活跃的用户名。 此组件只有满足以下条件之一时才会被显示:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
-- 当前用户是 root
-- 当前用户与登录用户不相同
-- 用户正通过 SSH 会话连接访问
-- 字段 `show_always` 被设置为 true
+- The current user is root
+- The current user isn't the same as the one that is logged in
+- The user is currently connected as an SSH session
+- The variable `show_always` is set to true
::: tip
@@ -2828,13 +2900,13 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 配置项
-| Option | 默认值 | 描述 |
-| ------------- | ----------------------- | ------------------- |
-| `style_root` | `"bold red"` | 当前用户为 root 时使用的样式。 |
-| `style_user` | `"bold yellow"` | 非 root 用户使用的样式。 |
-| `format` | `"[$user]($style) in "` | 组件格式化模板。 |
-| `show_always` | `false` | 总是显示 `username` 组件。 |
-| `disabled` | `false` | 禁用 `username` 组件。 |
+| Option | 默认值 | 描述 |
+| ------------- | ----------------------- | ------------------------------------- |
+| `style_root` | `"bold red"` | The style used when the user is root. |
+| `style_user` | `"bold yellow"` | The style used for non-root users. |
+| `format` | `"[$user]($style) in "` | 组件格式化模板。 |
+| `show_always` | `false` | Always shows the `username` module. |
+| `disabled` | `false` | Disables the `username` module. |
### Variables
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2963,7 +3035,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -3036,7 +3108,7 @@ The order in which custom modules are shown can be individually set by including
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
| `shell` | | [See below](#custom-command-shell) |
-| `描述` | `""` | The description of the module that is shown when running `starship explain`. |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
| `files` | `[]` | The files that will be searched in the working directory for a match. |
| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index 833361c2..13fecf89 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
+ To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
**Note** - The defaults of the install script can be overridden see the built-in help.
diff --git a/docs/zh-CN/presets/README.md b/docs/zh-CN/presets/README.md
index d24d336a..7fc4df60 100644
--- a/docs/zh-CN/presets/README.md
+++ b/docs/zh-CN/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ This preset hides the version of language runtimes. If you work in containers or
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"
diff --git a/docs/zh-TW/advanced-config/README.md b/docs/zh-TW/advanced-config/README.md
index 712c3553..d73720bf 100644
--- a/docs/zh-TW/advanced-config/README.md
+++ b/docs/zh-TW/advanced-config/README.md
@@ -68,9 +68,36 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+## Enable Right Prompt
+
+Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+
+Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
+
+`right_format` is currently supported for the following shells: elvish, fish, zsh.
+
+### 範例
+
+```toml
+# ~/.config/starship.toml
+
+# A minimal left prompt
+format = """$character"""
+
+# move the rest of the prompt to the right
+right_format = """$all"""
+```
+
+Produces a prompt like the following:
+
+```
+▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
+```
+
+
## 風格字串
-風格字串是一個以空白分開的單詞清單。 單字並不會區分大小寫(換句話說,`bold` 與 `BoLd` 是被當作兩個相同的字串)。 每個單詞可以是下列其中之一:
+Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
- `斜體字`
@@ -82,14 +109,14 @@ starship_precmd_user_func="set_win_title"
- ``
- `none`
-其中 `` 是指定顏色用的(下面解釋)。 `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. 單詞在字串中的順序不重要。
+where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
-The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. 未來可能會將 `none` 與其他符號一起使用的情形視為是一種錯誤。
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
-一個顏色指定符號可以是下列其中之一:
+A color specifier can be one of the following:
- 任一個標準終端機顏色:`black`、`red`、`green`、`blue`、`yellow`、`purple`、`cyan`、`white`。 你可以選擇性地加上前綴 `bright-` 來取得明亮版本的顏色(例如:`bright-white`)。
- 一個 `#` 後面跟隨著六位數的十六進位數字。 這個指定了 [RGB 十六進制色碼](https://www.w3schools.com/colors/colors_hexadecimal.asp)。
- 一個介於 0~255 之間的數字。 這個指定了 [8-bit ANSI 色碼](https://i.stack.imgur.com/KTSQa.png)。
-如果前景/後景被指定了多種顏色,最後一個顏色具有最高優先性。
+If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index 9ab5a759..1e984112 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -75,7 +75,7 @@ A text group is made up of two different parts.
The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
For example:
@@ -142,12 +142,14 @@ format = '''
### 選項
-| Option | 預設 | 說明 |
-| ----------------- | ---------------------------- | ------------------------------------------------------------ |
-| `format` | [連結](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | 預設 | 說明 |
+| ----------------- | ---------------------------- | ---------------------------------------------------------------- |
+| `format` | [連結](#default-prompt-format) | Configure the format of the prompt. |
+| `right_format` | `""` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
+| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
+| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
+
### 範例
@@ -179,6 +181,7 @@ format = """
$username\
$hostname\
$shlvl\
+$singularity\
$kubernetes\
$directory\
$vcsh\
@@ -191,6 +194,7 @@ $hg_branch\
$docker_context\
$package\
$cmake\
+$cobol\
$dart\
$deno\
$dotnet\
@@ -202,6 +206,7 @@ $helm\
$java\
$julia\
$kotlin\
+$lua\
$nim\
$nodejs\
$ocaml\
@@ -209,6 +214,7 @@ $perl\
$php\
$purescript\
$python\
+$rlang\
$red\
$ruby\
$rust\
@@ -229,7 +235,6 @@ $crystal\
$custom\
$cmd_duration\
$line_break\
-$lua\
$jobs\
$battery\
$time\
@@ -238,9 +243,16 @@ $shell\
$character"""
```
+If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+
+```toml
+# Move the directory to the second line
+format="$all$directory$character"
+```
+
## AWS
-`aws` 模組顯示現在 AWS 的區域與概況。 這是根據 `AWS_REGION`、`AWS_DEFAULT_REGION` 與 `AWS_PROFILE` 環境變數及 `~/.aws/config` 檔案。 This module also shows an expiration timer when using temporary credentials.
+The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
@@ -314,7 +326,7 @@ symbol = "🅰 "
## 電池
-`battery` 模組顯示電池的電量以及現在的充電狀態。 這個模組只會在裝置的電量低於 10% 的時候看見。
+The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%.
### 選項
@@ -342,7 +354,7 @@ discharging_symbol = "💀 "
### 電池顯示
-The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). 如果沒有提供 `display`。 預設如下:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. 預設如下:
```toml
[[battery.display]]
@@ -354,7 +366,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
#### 選項
-`display` 選項是一個下列表格的陣列。
+The `display` option is an array of the following table.
| Option | 預設 | 說明 |
| -------------------- | ---------- | --------------------------------------------------------------------------------------------------------- |
@@ -381,9 +393,9 @@ discharging_symbol = 💦
## 字元
-`character` 模組在你的文字輸入處旁顯示一個字元 (通常是箭頭)。
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-這個字元會告訴你最後的指令是成功還是失敗。 It can do this in two ways:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- changing color (`red`/`green`)
- changing shape (`❯`/`✖`)
@@ -479,29 +491,59 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
\*: This variable can only be used as a part of a style string
-## 指令持續時間
+## COBOL / GNUCOBOL
-`cmd_duration` 模組顯示最後一個指令執行所花費的時間。 這個模組只會在指令花費超過兩秒或是有設定 `min_time` 時,超過設定值時出現。
+The `cobol` module shows the currently installed version of COBOL. By default, the module will be shown if any of the following conditions are met:
-::: warning 不要在 Bash 中設置 DEBUG trap
-
-如果你在 `bash` 中使用 Starship,不要在執行 `eval $(starship init $0)` 之後設置 `DEBUG` trap,不然這個模組**會**壞掉。
-
-:::
-
-想使用類似 preexec 功能的 Bash 使用者可以 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只要在 `eval $(starship init $0)` 之前簡單地定義 `preexec_functions` 與 `precmd_functions` 兩個陣列,然後就可以照常進行。
+- The current directory contains any files ending in `.cob` or `.COB`
+- The current directory contains any files ending in `.cbl` or `.CBL`
### 選項
-| Option | 預設 | 說明 |
-| -------------------- | ----------------------------- | ----------------------------------------------------- |
-| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
-| `show_milliseconds` | `false` | 顯示時間除了以秒為單位外,亦以毫秒顯示 |
-| `format` | `"took [$duration]($style) "` | The format for the module. |
-| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `cmd_duration` 模組。 |
-| `show_notifications` | `false` | Show desktop notifications when command completes. |
-| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `symbol` | `"⚙️ "` | The symbol used before displaying the version of COBOL. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold blue"` | 這個模組的風格。 |
+| `detect_extensions` | `["cbl", "cob", "CBL", "COB"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `cobol` module. |
+
+### Variables
+
+| 變數 | 範例 | 說明 |
+| --------- | ---------- | ------------------------------------ |
+| version | `v3.1.2.0` | The version of `cobol` |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+\*: This variable can only be used as a part of a style string
+
+## 指令持續時間
+
+The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+
+::: warning Do not hook the DEBUG trap in Bash
+
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+
+:::
+
+Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal.
+
+### 選項
+
+| Option | 預設 | 說明 |
+| -------------------- | ----------------------------- | ---------------------------------------------------------- |
+| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
+| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
+| `format` | `"took [$duration]($style) "` | The format for the module. |
+| `style` | `"bold yellow"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `cmd_duration` module. |
+| `show_notifications` | `false` | Show desktop notifications when command completes. |
+| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
::: tip
@@ -530,7 +572,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-如果有設定 `$CONDA_DEFAULT_ENV` 時,`conda` 模組顯示現在 conda 的環境。
+The `conda` module shows the current [Conda](https://docs.conda.io/en/latest/) environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -540,14 +582,14 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
### 選項
-| Option | 預設 | 說明 |
-| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | 如果環境變數由所`conda create -p [path]`產生時,環境變數的資料夾需要截斷的數目。 `0` 表示不截斷 也請參考 [`directory`](#directory)模組 |
-| `symbol` | `"🅒 "` | 環境名稱前使用的符號。 |
-| `style` | `"bold green"` | 這個模組的風格。 |
-| `format` | `"via [$symbol$environment]($style) "` | The format for the module. |
-| `ignore_base` | `true` | Ignores `base` environment when activated. |
-| `disabled` | `false` | 停用 `conda` 模組。 |
+| Option | 預設 | 說明 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
+| `symbol` | `"🅒 "` | The symbol used before the environment name. |
+| `style` | `"bold green"` | 這個模組的風格。 |
+| `format` | `"via [$symbol$environment]($style) "` | The format for the module. |
+| `ignore_base` | `true` | Ignores `base` environment when activated. |
+| `disabled` | `false` | Disables the `conda` module. |
### Variables
@@ -572,8 +614,8 @@ format = "[$symbol$environment](dimmed green) "
The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
-- 現在資料夾中含有一個 `shard.yml` 檔案
-- 現在資料夾中含有一個`.cr`檔案
+- The current directory contains a `shard.yml` file
+- The current directory contains a `.cr` file
### 選項
@@ -613,7 +655,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
- The current directory contains a file with `.dart` extension
- The current directory contains a `.dart_tool` directory
-- 現在資料夾中包含一個 `pubspec.yaml`、`pubspec.yml` 或 `pubspec.lock` 檔案
+- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
### 選項
@@ -684,33 +726,33 @@ format = "via [🦕 $version](green bold) "
## 資料夾
-`directory` 模組顯示到現在資料夾的路徑,並裁減到前三層資料夾。 你的資料夾也會被裁減到你所在的 git 儲存庫的根目錄。
+The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in.
-如果正在使用 fish 風格的 pwd 選項,將不會隱藏被裁減的資料夾,而是會根據你在選項中設定的數字看到每一層資料夾的縮寫。
+When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option.
-例如,給定一個右列的路徑 `~/Dev/Nix/nixpkgs/pkgs` 其中 `nixpkgs` 是儲存庫的根目錄,而且該選項被設定為 `1`。 你會看到 `~/D/N/nixpkgs/pkgs`,而在這個設定之前則是 `nixpkgs/pkgs`。
+For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`.
### 選項
-| Option | 預設 | 說明 |
-| ------------------- | -------------------------------------------------- | ----------------------------------------------------- |
-| `truncation_length` | `3` | 到達現在資料夾的路徑中,要被裁減掉的資料夾數目。 |
-| `truncate_to_repo` | `true` | 是否要裁減到你現在所在的 git 儲存庫的根目錄。 |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
-| `style` | `"bold cyan"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `directory` 模組。 |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
-| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| Option | 預設 | 說明 |
+| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
+| `style` | `"bold cyan"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
-這個模組有些進階設定選項可以控制顯示資料夾。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | 預設 | 說明 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | 當使用 fish shell 的 pwd 路徑邏輯時使用的字元數量。 |
+| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. |
| `use_logical_path` | `true` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
`substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD.
@@ -782,7 +824,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. 如果這個資料夾已經選定一個 SDK,則顯示這個 SDK 的版本。 如果沒有的話,則顯示最新安裝的 SDK 版本。
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -797,7 +839,7 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
-這個模組內部是使用它自己的機制來偵測版本。 一般來說這個模組有 `dotnet --version` 的兩倍快,但是它可能會在你的 .NET 專案有不尋常的資料夾結構時顯示不正確的版本。 如果精確度比速度更重要的話,你可以藉由設定模組中的 `heuristic = false` 選項來停用這個功能。
+Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options.
The module will also show the Target Framework Moniker () when there is a csproj file in the current directory.
@@ -807,13 +849,13 @@ The module will also show the Target Framework Moniker ([\\w-]+)" = "gke-$cluster"
```
-## 換行
+## Line Break
-`line_break` 模組將提示字元分成兩行。
+The `line_break` module separates the prompt into two lines.
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------- | ----------------------------- |
-| `disabled` | `false` | 停用 `line_break` 模組,讓提示字元變成一行。 |
+| Option | 預設 | 說明 |
+| ---------- | ------- | ------------------------------------------------------------------ |
+| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. |
### 範例
@@ -1747,27 +1819,27 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
format = "via [🌕 $version](bold blue) "
```
-## 記憶體使用量
+## Memory Usage
-`memory_usage` 模組顯示現在系統記憶體與 swap 的使用量。
+The `memory_usage` module shows current system memory and swap usage.
-預設 swap 使用量會在系統總 swap 使用量不為 0 時顯示出來。
+By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### 選項
-| Option | 預設 | 說明 |
-| ----------- | ----------------------------------------------- | -------------------------- |
-| `threshold` | `75` | 將記憶體使用量隱藏,除非使用量超過指定值。 |
-| `format` | `"via $symbol [${ram}( \| ${swap})]($style) "` | The format for the module. |
-| `symbol` | `"🐏"` | 顯示在記憶體使用量之前的符號。 |
-| `style` | `"bold dimmed white"` | 這個模組的風格。 |
-| `disabled` | `true` | 停用 `memory_usage` 模組。 |
+| Option | 預設 | 說明 |
+| ----------- | ----------------------------------------------- | -------------------------------------------------------- |
+| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. |
+| `format` | `"via $symbol [${ram}( \| ${swap})]($style) "` | The format for the module. |
+| `symbol` | `"🐏"` | The symbol used before displaying the memory usage. |
+| `style` | `"bold dimmed white"` | 這個模組的風格。 |
+| `disabled` | `true` | Disables the `memory_usage` module. |
### Variables
@@ -1806,7 +1878,7 @@ The `hg_branch` module shows the active branch of the repo in your current direc
| `style` | `"bold purple"` | 這個模組的風格。 |
| `format` | `"on [$symbol$branch]($style) "` | The format for the module. |
| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
-| `truncation_symbol` | `"…"` | 用來指示分支名稱被縮減的符號。 |
+| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. |
| `disabled` | `true` | Disables the `hg_branch` module. |
### Variables
@@ -1834,7 +1906,7 @@ truncation_symbol = ""
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
-- 現在資料夾中含有一個 `nim.cfg` 檔案
+- The current directory contains a `nim.cfg` file
- The current directory contains a file with the `.nim` extension
- The current directory contains a file with the `.nims` extension
- The current directory contains a file with the `.nimble` extension
@@ -1874,7 +1946,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. 這個模組會在 nix-shell 環境中顯示。
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### 選項
@@ -1885,7 +1957,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| `style` | `"bold blue"` | 這個模組的風格。 |
| `impure_msg` | `"impure"` | A format string shown when the shell is impure. |
| `pure_msg` | `"pure"` | A format string shown when the shell is pure. |
-| `disabled` | `false` | 停用 `nix_shell` 模組。 |
+| `disabled` | `false` | Disables the `nix_shell` module. |
### Variables
@@ -1914,10 +1986,10 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). By default the module will be shown if any of the following conditions are met:
-- 現在資料夾中包含一個 `package.json` 檔案
+- The current directory contains a `package.json` file
- The current directory contains a `.node-version` file
- The current directory contains a `.nvmrc` file
-- 現在資料夾中包含一個 `node_modules` 資料夾
+- The current directory contains a `node_modules` directory
- The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension
- The current directory contains a file with the `.ts` extension
@@ -1932,7 +2004,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
| `style` | `"bold green"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `nodejs` 模組。 |
+| `disabled` | `false` | Disables the `nodejs` module. |
| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
### Variables
@@ -2036,23 +2108,23 @@ style = "bold yellow"
symbol = "☁️ "
```
-## 套件版本
+## Package Version
-The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並顯示他的現在版本。 The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**vlang**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
+- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
+- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
+- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
+- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
+- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
+- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
+- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
+- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
> ⚠️ 顯示出來的版本是從你的現在資料夾之中擷取出來的,並非從套件管理員取得。
@@ -2061,11 +2133,11 @@ The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並
| Option | 預設 | 說明 |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | 顯示在套件的版本之前的符號。 |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold 208"` | 這個模組的風格。 |
| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | 停用 `package` 模組。 |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2130,7 +2202,7 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). By default the module will be shown if any of the following conditions are met:
-- 現在資料夾中含有一個 `composer.json` 檔案
+- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
- The current directory contains a `.php` extension
@@ -2170,7 +2242,7 @@ format = "via [🔹 $version](147 bold) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. By default the module will be shown if any of the following conditions are met:
-- 現在資料夾中含有一個 `spago.dhall` 檔案
+- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
### 選項
@@ -2213,14 +2285,14 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name
By default the module will be shown if any of the following conditions are met:
-- 目前資料夾中有一個 `.python-version` 檔案
-- 目前資料夾中有一個 `Pipfile` 檔案
+- The current directory contains a `.python-version` file
+- The current directory contains a `Pipfile` file
- The current directory contains a `__init__.py` file
-- 目前資料夾中有一個 `pyproject.toml` 檔案
-- 目前資料夾中有一個 `requirements.txt` 檔案
-- 現在資料夾中含有一個 `setup.py` 檔案
-- 目前資料夾中有一個 `tox.ini` 檔案
-- 目前資料夾中有一個 `.py` 副檔名的檔案.
+- The current directory contains a `pyproject.toml` file
+- The current directory contains a `requirements.txt` file
+- The current directory contains a `setup.py` file
+- The current directory contains a `tox.ini` file
+- The current directory contains a file with the `.py` extension.
- A virtual environment is currently activated
### 選項
@@ -2231,13 +2303,13 @@ By default the module will be shown if any of the following conditions are met:
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
| `style` | `"yellow bold"` | 這個模組的風格。 |
-| `pyenv_version_name` | `false` | 使用 pyenv 取得 Python 的版本。 |
+| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
-| `disabled` | `false` | 停用 `python` 模組。 |
+| `disabled` | `false` | Disables the `python` module. |
::: tip
@@ -2296,7 +2368,7 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
## R
-The `rlang` module shows the currently installed version of R. The module will be shown if any of the following conditions are met:
+The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with the `.R` extension.
- The current directory contains a file with the `.Rd` extension.
@@ -2338,7 +2410,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2376,11 +2448,11 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
-- 目前資料夾中有一個 `Gemfile` 檔案
+- The current directory contains a `Gemfile` file
- The current directory contains a `.ruby-version` file
-- 目前資料夾中有一個 `.rb` 檔案
+- The current directory contains a `.rb` file
### 選項
@@ -2393,7 +2465,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| `detect_files` | `["Gemfile", ".ruby-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold red"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `ruby` 模組。 |
+| `disabled` | `false` | Disables the `ruby` module. |
### Variables
@@ -2416,10 +2488,10 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
-- 目前資料夾中有一個 `Cargo.toml` 檔案
-- 現在資料夾中包含一個檔案具有 `.rs` 副檔名
+- The current directory contains a `Cargo.toml` file
+- The current directory contains a file with the `.rs` extension
### 選項
@@ -2432,7 +2504,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| `detect_files` | `["Cargo.toml"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold red"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `rust` 模組。 |
+| `disabled` | `false` | Disables the `rust` module. |
### Variables
@@ -2499,7 +2571,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2539,7 +2611,7 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### 選項
@@ -2611,7 +2683,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2669,7 +2741,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2767,33 +2839,33 @@ format = "[🏎💨 $workspace]($style) "
## 時間
-`time` 模組顯示目前的**當地**時間. `format` 設定值被 [`chrono`](https://crates.io/crates/chrono) crate 用來控制時間如何顯示。 請看 [chrono 的 strftime 文件](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)來了解有那些選項可以使用。
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### 選項
-| Option | 預設 | 說明 |
-| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
-| `format` | `"at [$time]($style) "` | The format string for the module. |
-| `use_12hr` | `false` | 啟用 12 小時格式。 |
-| `time_format` | 請看下列 | 用來顯示時間的 [chrono 格式字串](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)。 |
-| `style` | `"bold yellow"` | 這個模組的時間的風格。 |
-| `utc_time_offset` | `"local"` | 設定相對於 UTC 的時差。 Range from -24 < x < 24. 允許使用浮點數來表示 30/45 分鐘時差的時區。 |
-| `disabled` | `true` | 停用 `time` 模組。 |
-| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
+| Option | 預設 | 說明 |
+| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
+| `format` | `"at [$time]($style) "` | The format string for the module. |
+| `use_12hr` | `false` | Enables 12 hour formatting |
+| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. |
+| `style` | `"bold yellow"` | The style for the module time |
+| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. |
+| `disabled` | `true` | Disables the `time` module. |
+| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. 不然的話,它會被預設為 `"%T"`。 Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Variables
| 變數 | 範例 | 說明 |
| --------- | ---------- | ----------------------------------- |
-| 時間 | `13:08:10` | The current time. |
+| time | `13:08:10` | The current time. |
| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2811,14 +2883,14 @@ utc_time_offset = "-5"
time_range = "10:00:00-14:00:00"
```
-## 使用者名稱
+## Username
-`username` 模組顯示現在使用中的使用者名稱。 這個模組在下列其中一個條件達成時顯示:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
-- 目前使用者為 root
-- 目前使用者並非登入時的使用者
-- 使用者透過 SSH session 進行連線
-- 變數 `show_always` 被設為 true
+- The current user is root
+- The current user isn't the same as the one that is logged in
+- The user is currently connected as an SSH session
+- The variable `show_always` is set to true
::: tip
@@ -2828,13 +2900,13 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 選項
-| Option | 預設 | 說明 |
-| ------------- | ----------------------- | -------------------------- |
-| `style_root` | `"bold red"` | 使用者為 root 時使用的風格。 |
-| `style_user` | `"bold yellow"` | 非 root 使用者時使用的風格。 |
-| `format` | `"[$user]($style) in "` | The format for the module. |
-| `show_always` | `false` | 總是顯示 `username` 模組。 |
-| `disabled` | `false` | 停用 `username` 模組。 |
+| Option | 預設 | 說明 |
+| ------------- | ----------------------- | ------------------------------------- |
+| `style_root` | `"bold red"` | The style used when the user is root. |
+| `style_user` | `"bold yellow"` | The style used for non-root users. |
+| `format` | `"[$user]($style) in "` | The format for the module. |
+| `show_always` | `false` | Always shows the `username` module. |
+| `disabled` | `false` | Disables the `username` module. |
### Variables
@@ -2894,9 +2966,9 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
format = "via [⍱ $version](bold white) "
```
-## VLang
+## V
-The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.v` extension
- The current directory contains a `v.mod`, `vpkg.json` or `.vpkg-lock.json` file
@@ -2925,7 +2997,7 @@ The `vlang` module shows you your currently installed version of V. By default t
```toml
# ~/.config/starship.toml
-[v]
+[vlang]
format = "via [V $version](blue bold) "
```
@@ -2963,7 +3035,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -3036,7 +3108,7 @@ The order in which custom modules are shown can be individually set by including
| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
| `shell` | | [See below](#custom-command-shell) |
-| `說明` | `""` | The description of the module that is shown when running `starship explain`. |
+| `description` | `""` | The description of the module that is shown when running `starship explain`. |
| `files` | `[]` | The files that will be searched in the working directory for a match. |
| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
diff --git a/docs/zh-TW/guide/README.md b/docs/zh-TW/guide/README.md
index a1f75bb2..3e45dfec 100644
--- a/docs/zh-TW/guide/README.md
+++ b/docs/zh-TW/guide/README.md
@@ -48,30 +48,6 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-us.png"
alt="English"
- />
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -160,8 +168,8 @@
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
- 如果想更新已安裝的 Starship,請重新執行上述指令。 指令只會更新 Starship 執行檔本身,不會影響到任何已撰寫的設定檔。
+ 如果想更新已安裝的 Starship,請重新執行上述指令。 指令只會更新 Starship 執行檔本身,不會影響到任何已撰寫的設定檔。
**備註** —— 安裝腳本的預設值可以被覆蓋,請使用以下指令查看內置說明。
diff --git a/docs/zh-TW/presets/README.md b/docs/zh-TW/presets/README.md
index 4c4cceb0..a85d05b5 100644
--- a/docs/zh-TW/presets/README.md
+++ b/docs/zh-TW/presets/README.md
@@ -112,6 +112,9 @@ format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
format = '\[[⏱ $duration ]($style)\]'
+[cobol]
+format = '\[[$symbol($version)]($style)\]'
+
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -272,6 +275,9 @@ deleted = "x"
[aws]
symbol = "aws "
+[cobol]
+symbol = "cobol "
+
[conda]
symbol = "conda "
@@ -375,6 +381,9 @@ symbol = "swift "
[cmake]
format = "via [$symbol]($style)"
+[cobol]
+format = "via [$symbol]($style)"
+
[crystal]
format = "via [$symbol]($style)"