diff --git a/docs/ar-SA/README.md b/docs/ar-SA/README.md
index 5887681e3..eb5b35ff2 100644
--- a/docs/ar-SA/README.md
+++ b/docs/ar-SA/README.md
@@ -123,3 +123,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval (starship init elvish)
```
+
+ #### Tcsh
+
+ Add the following to the end of `~/.tcshrc`:
+
+ ```sh
+ # ~/.tcshrc
+
+ eval `starship init tcsh`
+ ```
+
diff --git a/docs/ar-SA/config/README.md b/docs/ar-SA/config/README.md
index 6484c7d5b..3a9111cd6 100644
--- a/docs/ar-SA/config/README.md
+++ b/docs/ar-SA/config/README.md
@@ -9,8 +9,8 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file:
```toml
-# Don't print a new line at the start of the prompt
-add_newline = false
+# Inserts a blank line between shell prompts
+add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
@@ -80,7 +80,7 @@ In the second part, which is enclosed in a `()`, is a [style string](#style-stri
For example:
- `[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.
+- `[⌘ $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.
#### Style Strings
@@ -146,7 +146,7 @@ This is the list of prompt-wide configuration options.
| -------------- | ------------------------------ | ----------------------------------------------------- |
| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `add_newline` | `true` | Add a new line before the start of the prompt. |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
### Example
@@ -162,7 +162,7 @@ format = """
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 10
-# Disable the newline at the start of the prompt
+# Disable the blank line at the start of the prompt
add_newline = false
```
@@ -207,6 +207,7 @@ $purescript\
$python\
$ruby\
$rust\
+$scala\
$swift\
$terraform\
$vagrant\
@@ -237,15 +238,17 @@ The `aws` module shows the current AWS region and profile. This is based on `AWS
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var.
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
+
### Options
-| Option | Default | Description |
-| ---------------- | ------------------------------------------------ | --------------------------------------------------------------- |
-| `format` | `'on [$symbol$profile(\($region\))]($style) '` | The format for the module. |
-| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
-| `region_aliases` | | Table of region aliases to display in addition to the AWS name. |
-| `style` | `"bold yellow"` | The style for the module. |
-| `disabled` | `false` | Disables the `AWS` module. |
+| Option | Default | Description |
+| ---------------- | --------------------------------------------------- | --------------------------------------------------------------- |
+| `format` | `'on [$symbol($profile )(\($region\) )]($style)'` | The format for the module. |
+| `symbol` | `"☁️ "` | The symbol used before displaying the current AWS profile. |
+| `region_aliases` | | Table of region aliases to display in addition to the AWS name. |
+| `style` | `"bold yellow"` | The style for the module. |
+| `disabled` | `false` | Disables the `AWS` module. |
### Variables
@@ -266,7 +269,7 @@ When using [aws-vault](https://github.com/99designs/aws-vault) the profile is re
# ~/.config/starship.toml
[aws]
-format = 'on [$symbol$profile(\($region\))]($style) '
+format = 'on [$symbol($profile )(\($region\) )]($style)'
style = "bold blue"
symbol = "🅰 "
[aws.region_aliases]
@@ -434,7 +437,7 @@ The `cmake` module shows the currently installed version of CMake. By default th
| Option | Default | Description |
| ------------------- | -------------------------------------- | -------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"喝 "` | The symbol used before the version of cmake. |
+| `symbol` | `"△ "` | The symbol used before the version of cmake. |
| `detect_extensions` | `[]` | Which extensions should trigger this moudle |
| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -1343,6 +1346,12 @@ symbol = "🌟 "
The `jobs` module shows the current number of jobs running. The module will be shown only if there are background jobs running. The module will show the number of jobs running if there is more than 1 job, or more than the `threshold` config value, if it exists.
+::: warning
+
+This module is not supported on tcsh.
+
+:::
+
### Options
| Option | Default | Description |
@@ -1737,7 +1746,7 @@ The `nodejs` module shows the currently installed version of NodeJS. By default
| Option | Default | Description |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. |
+| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
@@ -2158,6 +2167,48 @@ By default the `rust` module shows the currently installed version of Rust. The
format = "via [⚙️ $version](red bold)"
```
+
+## Scala
+
+The `scala` module shows the currently installed version of Scala. By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
+- The current directory contains a file with the `.scala` or `.sbt` extension
+- The current directory contains a directory named `.metals`
+
+### Options
+
+
+| Option | Default | Description |
+| ------------------- | ---------------------------------------- | ------------------------------------------------- |
+| `format` | `"via [${symbol}(${version} )]($style)"` | The format for the module. |
+| `detect_extensions` | `["sbt", "scala"]` | Which extensions should trigger this module. |
+| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[".metals"]` | Which folders should trigger this modules. |
+| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
+| `style` | `"red dimmed"` | The style for the module. |
+| `disabled` | `false` | Disables the `scala` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | -------- | ------------------------------------ |
+| version | `2.13.5` | The version of `scala` |
+| 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
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[scala]
+symbol = "🌟 "
+```
+
+
## Shell
The `shell` module shows an indicator for currently used shell.
@@ -2178,6 +2229,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `powershell_indicator` | `psh` | A format string used to represent powershell. |
| `ion_indicator` | `ion` | A format string used to represent ion. |
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
+| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
diff --git a/docs/ar-SA/faq/README.md b/docs/ar-SA/faq/README.md
index 9bb23bf93..d3c6d238c 100644
--- a/docs/ar-SA/faq/README.md
+++ b/docs/ar-SA/faq/README.md
@@ -38,7 +38,7 @@ NUM_JOBS=$(jobs -p | wc -l)
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
```
-The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#Command-Duration) and to ensure that Starship is compatible with pre-installed Bash configurations.
+The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#command-duration) and to ensure that Starship is compatible with pre-installed Bash configurations.
For a list of all flags accepted by `starship prompt`, use the following command:
@@ -56,6 +56,10 @@ If you get an error like "_version 'GLIBC_2.18' not found (required by starship)
curl -fsSL https://starship.rs/install.sh | bash -s -- --platform unknown-linux-musl
```
+## I see symbols I don't understand or expect, what do they mean?
+
+If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+
## Why don't I see a glyph symbol in my prompt?
The most common cause of this is system misconfiguration. Some Linux distros in particular do not come with font support out-of-the-box. You need to ensure that:
diff --git a/docs/ar-SA/guide/README.md b/docs/ar-SA/guide/README.md
index 445e3027c..fd107ff3c 100644
--- a/docs/ar-SA/guide/README.md
+++ b/docs/ar-SA/guide/README.md
@@ -2,18 +2,21 @@
+ alt="Starship – Cross-shell prompt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="Workflow-Status der GitHub Actions"
+ />
+ alt="Crates.io-Version"
+ />
+ alt="Chat auf Discord"
+ />
+ alt="Folge @StarshipPrompt auf Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="Englisch"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Russisch"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="Estado del flujo de trabajo de GitHub Actions"
+ />
+ alt="Versión de Crates.io"
+ />
+ alt="Chat en Discord"
+ />
+ alt="Sigue a @StarshipPrompt en Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Francés"
+ />
+ alt="Tiếng Việt"
+ />
diff --git a/docs/es-ES/installing/README.md b/docs/es-ES/installing/README.md
index 71226790b..0294b5820 100644
--- a/docs/es-ES/installing/README.md
+++ b/docs/es-ES/installing/README.md
@@ -3,25 +3,41 @@
Para instalar Starship, necesitas hacer dos cosas:
1. Consigue el binario de **Starship** en tu ordenador
-1. Decirle a tu shell que use el binario de Starship como su prompt modificando sus guiones de inicio
+1. Decirle a tu intérprete de comandos que use el binario de Starship como su prompt modificando sus guiones de inicio
Para la mayoría de los usuarios, las instrucciones en [la página principal](/guide/#🚀-installation) funcionarán genial. Sin embargo, para algunas plataformas más especializadas, se necesitan diferentes instrucciones.
Hay tantas plataformas ahí fuera que no cabían en el README.md principal, así que aquí están algunas instrucciones de instalación para otras plataformas de la comunidad. ¿No está usted aquí? ¡Por favor, añádelo aquí si lo encuentras!
-## [termux](https://termux.com)
+
+## [Chocolatey](https://chocolatey.org)
+
### Prerequisitos
+
+Dirígete a la página de instalación de [Chocolatey](https://chocolatey.org/install) y sigue las instrucciones para instalar Chocolatey.
+
+### Instalación
+
+```powershell
+choco install starship
+```
+
+## [termux](https://termux.com)
+
+### Prerequisitos
+
```sh
pkg install getconf
```
-### Installation
+### Instalación
+
```sh
curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin
```
## [Nix](https://nixos.wiki/wiki/Nix)
-### Getting the Binary
+### Obtener el binario
#### Imperativamente
@@ -31,26 +47,38 @@ nix-env -iA nixos.starship
#### Declarativo, usuario único, a través de [home-manager](home-manager)
-Añade `pkgs.starship` a tu `home.packages` en tu archivo `home.nix` y luego ejecuta
+Activa el módulo `programs.starship` en tu archivo `home.nix` y añade tus ajustes
+
+```nix
+{
+ programs.starship = {
+ enable = true;
+ enableZshIntegration = true;
+ # Configuration written to ~/.config/starship.toml
+ settings = {
+ # add_newline = false;
+
+ # character = {
+ # success_symbol = "[➜](bold green)";
+ # error_symbol = "[➜](bold red)";
+ # };
+
+ # package.disabled = true;
+ };
+ };
+}
+```
+
+luego ejecutar
```sh
-interruptor home-manager
+home-manager switch
```
#### Declarativo, en todo el sistema, con NixOS
-Añade `pkgs.starship` a `environment.packages` en tu `configuration.nix`, luego ejecuta
+Añade `pkgs.starship` a `environment.systemPackages` en tu `configuration.nix`, luego ejecuta
```sh
sudo nixos-rebuild switch
```
-
-### Modifying Init Scripts
-
-#### Con Nix y home-manager, usando zsh:
-
-Añade lo siguiente a `programs.zsh.initExtra` en tu archivo `home.nix` y luego ejecutar
-
-```sh
-interruptor home-manager
-```
diff --git a/docs/es-ES/migrating-to-0.45.0/README.md b/docs/es-ES/migrating-to-0.45.0/README.md
index 23d1a4f13..3c1748f0a 100644
--- a/docs/es-ES/migrating-to-0.45.0/README.md
+++ b/docs/es-ES/migrating-to-0.45.0/README.md
@@ -6,7 +6,7 @@ Esta guía pretende guiarle a través de los cambios de ruptura.
## `prompt_order` ha sido reemplazado por un "nivel raíz" `format`
-Anterioramente a v0.45.0, `prompt_order` aceptaría un array de nombres de módulos en el orden que deberían ser renderizados por Starship.
+Anterioramente a v0.45.0, `prompt_order` aceptaría un arreglo de nombres de módulos en el orden que deberían ser renderizados por Starship.
En su lugar, Starship v0.45.0 acepta un valor de `format`, permitiendo la personalización del indicador fuera de los propios módulos.
@@ -70,7 +70,7 @@ prefix = "tomó "
```toml
[cmd_duration]
# $duration – La duración del comando (p. ej. "15s")
-# $style – El estilo predeterminado del módulo (p. ej. "bold yellow")
+# $style – El estilo por defecto del módulo (p. ej. "bold yellow")
format = "tomó [$duration]($style) "
```
diff --git a/docs/es-ES/presets/README.md b/docs/es-ES/presets/README.md
index b9042b4b4..6ee28ef23 100644
--- a/docs/es-ES/presets/README.md
+++ b/docs/es-ES/presets/README.md
@@ -1,12 +1,12 @@
-# Ajustes predeterminados
+# Ajustes por defecto
-Aqui hay una colección de ajustes predeterminados creados por la comunidad de Starship. ¡Si quieres compartir un ajuste predeterminado, por favor, [envía un PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) actualizando este archivo! 😊
+Aquí hay una colección de ajustes por defecto creados por la comunidad de Starship. ¡Si quieres compartir un ajuste por defecto, por favor, [envía un PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) actualizando este archivo! 😊
## Símbolos de Nerd Font
-Este ajuste predeterminado no modifica nada excepto los símbolos usados para cada módulo. Si los emojis no son lo tuyo, ¡esto podría llamar tu atención!
+Este ajuste por defecto no modifica nada excepto los símbolos usados para cada módulo. Si los emojis no son lo tuyo, ¡esto podría llamar tu atención!
-
+
### Prerequisitos
@@ -16,7 +16,7 @@ Este ajuste predeterminado no modifica nada excepto los símbolos usados para ca
```toml
[aws]
-symbol = " "
+symbol = " "
[conda]
symbol = " "
@@ -84,6 +84,9 @@ symbol = " "
[rust]
symbol = " "
+[scala]
+symbol = " "
+
[swift]
symbol = "ﯣ "
```
diff --git a/docs/fr-FR/README.md b/docs/fr-FR/README.md
index 88a1784bd..61a2512d9 100644
--- a/docs/fr-FR/README.md
+++ b/docs/fr-FR/README.md
@@ -123,3 +123,14 @@ description: Starship est un invite minimaliste, ultra-rapide et hautement perso
eval (starship init elvish)
```
+
+ #### Tcsh
+
+ Add the following to the end of `~/.tcshrc`:
+
+ ```sh
+ # ~/.tcshrc
+
+ eval `starship init tcsh`
+ ```
+
diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md
index 4a8d18796..45a2c6231 100644
--- a/docs/fr-FR/config/README.md
+++ b/docs/fr-FR/config/README.md
@@ -9,14 +9,14 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
Toute la configuration de starship est faite dans ce fichier [TOML](https://github.com/toml-lang/toml):
```toml
-# N'écrivez pas une nouvelle ligne au début de la console
-add_newline = false
+# Inserts a blank line between shell prompts
+add_newline = true
-# Remplacez le symbole "❯" dans la console avec "➜"
-[character] # Le nom du module que nous configurons est "character"
-success_symbol = "[➜](bold green)" # Le segment "success_symbol" est mis comme "➜" avec la couleur "bold green"
+# Replace the "❯" symbol in the prompt with "➜"
+[character] # The name of the module we are configuring is "character"
+success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
-# Désactivez le module package, le masquant complètement dans la console
+# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
```
@@ -80,7 +80,7 @@ La deuxième partie, qui est entourée par `()`, est une [chaîne de style](#sty
Par exemple :
- `[on](red bold)` affichera une chaîne de caractères `on` avec un texte gras de couleur rouge.
-- `[⬢ $version](bold green)` affichera un symbole `⬢` suivi du contenu de la variable `version`, avec un texte en gras de couleur verte.
+- `[⌘ $version](bold green)` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
- `[a [b](red) c](green)` affichera `a b c` avec `b` rouge, et `a` et `c` vert.
#### Chaînes de style
@@ -146,7 +146,7 @@ Voici la liste des options de configuration de l'invite en lui-même.
| -------------- | ------------------------------ | -------------------------------------------------------------------------- |
| `format` | [lien](#default-prompt-format) | Configure le format de l'invite. |
| `scan_timeout` | `30` | Délai d'attente avant que starship scanne les fichiers (en millisecondes). |
-| `add_newline` | `true` | Ajoute une nouvelle ligne a début de l'invite. |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
### Exemple
@@ -162,7 +162,7 @@ format = """
# Attendez 10 millisecondes pour que starship vérifie les fichiers dans le répertoire de travail.
scan_timeout = 10
-# Désactive la nouvelle ligne au démarrage de l'invite
+# Disable the blank line at the start of the prompt
add_newline = false
```
@@ -207,6 +207,7 @@ $purescript\
$python\
$ruby\
$rust\
+$scala\
$swift\
$terraform\
$vagrant\
@@ -237,15 +238,17 @@ Le module `aws` affiche la région et le profil AWS courant. Ces informations so
Quand [aws-vault](https://github.com/99designs/aws-vault) est utilisé, la valeur du profil est lu dans la variable d'environnement: `AWS_VAULT`.
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
+
### Options
-| Option | Default | Description |
-| ---------------- | ------------------------------------------------ | -------------------------------------------------------- |
-| `format` | `'on [$symbol$profile(\($region\))]($style) '` | Format du module. |
-| `symbol` | `"☁️ "` | Le symbole affiché avant le profil AWS actuel. |
-| `region_aliases` | | Table des alias de région à afficher en plus du nom AWS. |
-| `style` | `"bold yellow"` | Le style du module. |
-| `disabled` | `false` | Désactive le module `AWS`. |
+| Option | Default | Description |
+| ---------------- | --------------------------------------------------- | -------------------------------------------------------- |
+| `format` | `'on [$symbol($profile )(\($region\) )]($style)'` | Format du module. |
+| `symbol` | `"☁️ "` | Le symbole affiché avant le profil AWS actuel. |
+| `region_aliases` | | Table des alias de région à afficher en plus du nom AWS. |
+| `style` | `"bold yellow"` | Le style du module. |
+| `disabled` | `false` | Désactive le module `AWS`. |
### Variables
@@ -256,7 +259,7 @@ Quand [aws-vault](https://github.com/99designs/aws-vault) est utilisé, la valeu
| symbol | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemples
@@ -266,7 +269,7 @@ Quand [aws-vault](https://github.com/99designs/aws-vault) est utilisé, la valeu
# ~/.config/starship.toml
[aws]
-format = 'on [$symbol$profile(\($region\))]($style) '
+format = 'on [$symbol($profile )(\($region\) )]($style)'
style = "bold blue"
symbol = "🅰 "
[aws.region_aliases]
@@ -301,7 +304,7 @@ symbol = "🅰 "
## Battery
-Le module `battery` montre à quel point la batterie de l'appareil est chargée et son état de charge actuel. Ce module n'est visible que lorsque la batterie de l'appareil est inférieure à 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%.
### Options
@@ -330,7 +333,7 @@ discharging_symbol = "💀"
### Indicateur de batterie
-L'option de configuration `display` est utilisée pour définir quand l'indicateur de batterie doit être affiché (seuil) et à quoi il ressemble (style). Si aucun `display` n'est fourni. La valeur par défaut est la suivante :
+The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. La valeur par défaut est la suivante :
```toml
[[battery.display]]
@@ -340,7 +343,7 @@ style = "bold red"
#### Options
-L'option `display` est une array de la table suivante.
+The `display` option is an array of the following table.
| Option | Description |
| ----------- | -------------------------------------------------- |
@@ -364,14 +367,14 @@ style = "bold yellow"
## Caractères
-Le module `character` affiche un caractère (habituellement une flèche) à côté de l'endroit où le texte est entré dans votre terminal.
+The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
-Le caractère vous dira si la dernière commande a été réussie ou pas. Cela peut être fait de deux manières:
+The character will tell you whether the last command was successful or not. It can do this in two ways:
- changement de couleur (`red`/`green`)
- changement de forme (`❯`/`✖`)
-Par défaut, il ne change que la couleur. Si vous voulez également changer sa forme, jetez un œil à [cet exemple](#with-custom-error-shape).
+By default it only changes color. If you also want to change it's shape take a look at [this example](#with-custom-error-shape).
::: warning `error_symbol` is not supported on elvish shell. :::
@@ -434,7 +437,7 @@ The `cmake` module shows the currently installed version of CMake. By default th
| Option | Défaut | Description |
| ------------------- | -------------------------------------- | --------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | Format du module. |
-| `symbol` | `"喝 "` | Le symbole utilisé avant la version de cmake. |
+| `symbol` | `"△ "` | Le symbole utilisé avant la version de cmake. |
| `detect_extensions` | `[]` | Which extensions should trigger this moudle |
| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -449,19 +452,19 @@ The `cmake` module shows the currently installed version of CMake. By default th
| symbol | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
## Temps d'exécution
-Le module `cmd_duration` montre le temps qu'a pris la dernière commande a pris pour s'exécuter. Le module ne sera affiché que si la commande a pris plus de deux secondes, ou si la valeur de configuration `min_time` existe.
+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.
-::: attention, n'accrochez pas la trappe DEBUG en Bash
+::: warning Do not hook the DEBUG trap in Bash
-Si vous utilisez starship en `bash`, n'accrochez pas `DEBUG` après avoir exécuté `eval $(starship init $0)`, ou ce module **cassera**.
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
:::
-Les utilisateurs de Bash qui ont besoin de fonctionnalité pré-exec peuvent utiliser [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Définissez simplement les array `preexec_functions` et `precmd_functions` avant d'éxécuter `eval $(starship init $0)`, puis procédez comme d'habitude.
+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.
### Options
@@ -477,7 +480,7 @@ Les utilisateurs de Bash qui ont besoin de fonctionnalité pré-exec peuvent uti
::: tip
-L'affichage des notifications de bureau nécessite que starship soit compilé avec la prise en charge de `rust-notify`. Vérifiez si starship supporte les notifications en exécutant `STARSHIP_LOG=debug starship module cmd_duration -d 60000` lorsque `show_notifications` est défini à `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`.
:::
@@ -488,7 +491,7 @@ L'affichage des notifications de bureau nécessite que starship soit compilé av
| duration | `16m40s` | Le temps nécessaire pour exécuter la commande |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemple
@@ -502,11 +505,11 @@ format = "underwent [$duration](bold yellow)"
## Conda
-Le module `conda` affiche l'environnement conda actuel, si `$CONDA_DEFAULT_ENV` est défini.
+The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
-Cela ne supprime pas le modificateur d'invite de conda, vous pouvez exécuter `conda config --set changeps1 False`.
+This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
:::
@@ -529,7 +532,7 @@ Cela ne supprime pas le modificateur d'invite de conda, vous pouvez exécuter `c
| symbol | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemple
@@ -542,7 +545,7 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-Le module `crystal` affiche la version actuellement installée de Crystal. 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. By default the module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier `shard.yml`
- Le répertoire courant contient un fichier `.cr`
@@ -567,7 +570,7 @@ Le module `crystal` affiche la version actuellement installée de Crystal. By de
| symbol | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemple
@@ -580,7 +583,7 @@ format = "via [✨ $version](bold blue) "
## Dart
-Le module `dart` affiche la version courante installée de Dart. 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. By default the module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier `.dart`
- Le répertoire courant contient un répertoire `.dart_tool`
@@ -606,7 +609,7 @@ Le module `dart` affiche la version courante installée de Dart. By default the
| symbol | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemple
@@ -619,11 +622,11 @@ format = "via [🔰 $version](bold red) "
## Dossier
-Le mode `directory` montre le chemin de votre dossier actuel, tronqué aux 3 dossiers parents. Votre répertoire sera également tronqué à la racine du repo git dans lequel vous vous trouvez actuellement.
+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.
-Quand vous utilisez le style pwd de fish, au lieu de cacher le chemin qui est tronqué, vous verrez un nom raccourci de chaque dossier basé sur le nombre établi pour l'option.
+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.
-Par exemple, donné `~/Dev/Nix/nixpkgs/pkgs` où `nixpkgs` est la racine du repo, et l'option définie à `1`. Vous verrez maintenant `~/D/N/nixpkgs/pkgs`, alors que vous auriez vu `nixpkgs/pkgs` avant.
+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`.
### Options
@@ -640,7 +643,7 @@ Par exemple, donné `~/Dev/Nix/nixpkgs/pkgs` où `nixpkgs` est la racine du repo
| `home_symbol` | `"~"` | The symbol indicating home directory. |
Ce module possède quelques options de configuration avancées qui contrôlent l'affichage du répertoire.
+This module has a few advanced configuration options that control how the directory is displayed.
| Options avancées | Défaut | Description |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -667,7 +670,7 @@ Par exemple, donné `~/Dev/Nix/nixpkgs/pkgs` où `nixpkgs` est la racine du repo
| path | `"D:/Projects"` | Le chemin du répertoire courant |
| style\* | `"black bold dimmed"` | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemple
@@ -704,7 +707,7 @@ The `docker_context` module shows the currently active [Docker context](https://
| symbol | | Reflète la valeur de l'option `symbol` |
| style\* | | Reflète la valeur de l'option `style` |
-\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
+\*: This variable can only be used as a part of a style string
### Exemple
@@ -759,7 +762,7 @@ The module will also show the Target Framework Moniker (
+ alt="Statut du workflow actions GitHub"
+ />
+ alt="Version Crates.io"
+ />
+ alt="Discuter sur Discord"
+ />
+ alt="Suivez @StarshipPrompt sur Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Espagnol"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Versione Crates.io"
+ />
+ alt="Chat su Discord"
+ />
+ alt="Segui @StarshipPrompt su Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="Inglese"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Russo"
+ />
+ alt="Tedesco"
+ />
+ alt="简体中文"
+ />
+ alt="Spagnolo"
+ />
+ alt="Francese"
+ />
+ alt="Tiếng Việt"
+ />
デフォルトでは、システムスワップの合計がゼロ以外の場合、スワップ使用量が表示されます。
+By default the swap usage is displayed if the total system swap is non-zero. -::: tip
+::: tip -このモジュールはデフォルトで無効になっています。
-有効にするには、設定ファイルでdisabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1611,7 +1619,7 @@ style = "bold dimmed green"
## Mercurial ブランチ
-` hg_branch `モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを示します。
+The `hg_branch` module shows the active branch of the repo in your current directory.
### オプション
@@ -1632,7 +1640,7 @@ style = "bold dimmed green"
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1674,7 +1682,7 @@ The `nim` module shows the currently installed version of Nim. By default the mo
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1688,7 +1696,7 @@ symbol = "🎣 "
## Nix-shell
-`nix_shell`モジュールは、nix-shell環境を示しています。 このモジュールは、nixシェル環境内にあるときに表示されます。
+The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment.
### オプション
@@ -1710,7 +1718,7 @@ symbol = "🎣 "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1726,7 +1734,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## NodeJS
-`nodejs`モジュールは、現在インストールされているNodeJSのバージョンを示します。 By default the module will be shown if any of the following conditions are met:
+The `nodejs` module shows the currently installed version of NodeJS. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`package.json`ファイルが含まれている
- The current directory contains a `.node-version` file
@@ -1739,7 +1747,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| オプション | デフォルト | 説明 |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
-| `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. |
+| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
@@ -1755,7 +1763,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1797,7 +1805,7 @@ The `ocaml` module shows the currently installed version of OCaml. By default th
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1830,7 +1838,7 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1845,7 +1853,7 @@ symbol = "☁️ "
## パッケージのバージョン
-`package`モジュールは、現在のディレクトリがパッケージのリポジトリである場合に表示され、現在のバージョンが表示されます。 The module currently supports `npm`, `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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- **npm** – `npm`パッケージバージョンは、現在のディレクトリにある`package.json`から抽出されます
- **cargo** – `cargo`パッケージバージョンは、現在のディレクトリにある`Cargo.toml`から抽出されます。
@@ -1878,7 +1886,7 @@ symbol = "☁️ "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1930,7 +1938,7 @@ format = "via [🦪 $version]($style) "
## PHP
-`php`モジュールは、現在インストールされているPHPのバージョンを示します。 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. By default the module will be shown if any of the following conditions are met:
- カレントディレクトリに`composer.json`ファイルが含まれている
- The current directory contains a `.php-version` file
@@ -1956,7 +1964,7 @@ format = "via [🦪 $version]($style) "
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -1994,7 +2002,7 @@ The `purescript` module shows the currently installed version of PureScript vers
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2007,7 +2015,7 @@ format = "via [$symbol$version](bold white)"
## Python
-`python` モジュールは現在インストールされているPythonのバージョンと アクティブ化されている場合は現在のPython仮想環境を表示します。
+The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
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`.
@@ -2085,7 +2093,7 @@ detect_extensions = []
## Ruby
-By default the `ruby` module shows the currently installed version of Ruby. 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `ruby` module shows the currently installed version of Ruby. The module will be shown if any of the following conditions are met:
- カレントディレクトリに`Gemfile`ファイルが含まれている
- The current directory contains a `.ruby-version` file
@@ -2111,7 +2119,7 @@ By default the `ruby` module shows the currently installed version of Ruby. 次
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2124,7 +2132,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of Rust. 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `rust` module shows the currently installed version of Rust. The module will be shown if any of the following conditions are met:
- カレントディレクトリに`Cargo.toml`ファイルが含まれている
- カレントディレクトリに`.rs`の拡張子のファイルが含まれている
@@ -2149,7 +2157,7 @@ By default the `rust` module shows the currently installed version of Rust. 次
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2160,13 +2168,55 @@ By default the `rust` module shows the currently installed version of Rust. 次
format = "via [⚙️ $version](red bold)"
```
+
+## Scala
+
+The `scala` module shows the currently installed version of Scala. By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
+- The current directory contains a file with the `.scala` or `.sbt` extension
+- The current directory contains a directory named `.metals`
+
+### オプション
+
+
+| オプション | デフォルト | 説明 |
+| ------------------- | ---------------------------------------- | ------------------------------------------------- |
+| `format` | `"via [${symbol}(${version} )]($style)"` | moduleのフォーマットです。 |
+| `detect_extensions` | `["sbt", "scala"]` | Which extensions should trigger this module. |
+| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[".metals"]` | Which folders should trigger this modules. |
+| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
+| `style` | `"red dimmed"` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `scala` module. |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| --------- | -------- | ---------------------- |
+| version | `2.13.5` | The version of `scala` |
+| symbol | | オプション `記号` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
+
+\*: This variable can only be used as a part of a style string
+
+### 設定例
+
+```toml
+# ~/.config/starship.toml
+
+[scala]
+symbol = "🌟 "
+```
+
+
## Shell
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.
:::
@@ -2180,6 +2230,7 @@ The `shell` module shows an indicator for currently used shell.
| `powershell_indicator` | `psh` | A format string used to represent powershell. |
| `ion_indicator` | `ion` | A format string used to represent ion. |
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
+| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `format` | `$indicator` | moduleのフォーマットです。 |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2222,7 +2273,7 @@ The `shlvl` module shows the current SHLVL ("shell level") environment variable,
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2256,7 +2307,7 @@ The `singularity` module shows the current singularity image, if inside a contai
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2273,7 +2324,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.
:::
@@ -2307,7 +2358,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
### 設定例
@@ -2326,7 +2377,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of Swift. 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `swift` module shows the currently installed version of Swift. 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
@@ -2351,7 +2402,7 @@ By default the `swift` module shows the currently installed version of Swift.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2374,7 +2425,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
### オプション
@@ -2398,7 +2449,7 @@ By default the module will be shown if any of the following conditions are met:
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2426,7 +2477,7 @@ The `time` module shows the current **local** time. The `format` configuration v
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2451,7 +2502,7 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
| time | `13:08:10` | The current time. |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2468,12 +2519,12 @@ time_range = "10:00:00-14:00:00"
## Username
-The `username` module shows active user's 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
@@ -2537,7 +2588,7 @@ The `vagrant` module shows the currently installed version of Vagrant. By defaul
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2550,7 +2601,7 @@ format = "via [⍱ $version](bold white) "
## Zig
-By default the the `zig` module shows the currently installed version of Zig. 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the the `zig` module shows the currently installed version of Zig. The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
@@ -2574,7 +2625,7 @@ By default the the `zig` module shows the currently installed version of Zig.
| symbol | | オプション `記号` の値をミラーする |
| style\* | | オプション `style` の値をミラーする |
-\*: この変数はスタイル文字列の一部としてのみ使用できます
+\*: This variable can only be used as a part of a style string
### 設定例
@@ -2638,7 +2689,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/faq/README.md b/docs/ja-JP/faq/README.md
index 724033310..aafcc372d 100644
--- a/docs/ja-JP/faq/README.md
+++ b/docs/ja-JP/faq/README.md
@@ -10,22 +10,22 @@
- **設定**: [matchaiのDotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- **プロンプト**: [Starship](https://starship.rs/)
-## How do I get command completion as shown in the demo GIF?
+## デモのGIFのようにコマンド補完はどうしたら使用できますか?
-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).
+補完サポート、または自動補完は選択したシェルによって提供されます。 デモ中では、デフォルトの[Fish Shell](https://fishshell.com/)によって補完されています。 Z Shell (zsh) を利用しているのであれば、[zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)を照参してください。
-## Do top level `format` and `
LC_ALL`がUTF-8値でない場合、[変更する必要があります](https://www.tecmint.com/set-system-locales-in-linux/)。
-- 絵文字フォントがインストールされています。 ほとんどのシステムにはデフォルトで絵文字フォントが付属していますが、 一部(特にArch Linux) はそうではありません。 通常、システムの パッケージマネージャーからインストールすることができます--[noto emoji](https://www.google.com/get/noto/help/emoji/)は人気な選択肢です。
-- [Nerd Font](https://www.nerdfonts.com/)を使用しています。
+## 私のプロンプトで記号のグリフがないのはなぜですか?
-システムをテストするには、ターミナルで次のコマンドを実行します。
+よくある原因はシステム上での設定ミスです。 いくつかのLinuxディストリビューションの初期設定にフォントサポートがありません。 次のことを確認してください。
+
+- ロケールが、`de_DE.UTF-8`や` ja_JP.UTF-8`などのUTF-8に設定されている。 `LC_ALL`がUTF-8でない場合、[変更する必要があります](https://www.tecmint.com/set-system-locales-in-linux/)。
+- 絵文字フォントがインストールされている。 ほとんどのシステムにはデフォルトで絵文字フォントが付属していますが、 一部 (特にArch Linux) はそうではありません。 通常、システムの パッケージマネージャーからインストールすることができます。--[noto emoji](https://www.google.com/get/noto/help/emoji/)は一般的な選択肢です。
+- [Nerd Font](https://www.nerdfonts.com/)を使用している。
+
+ターミナルで以下のコマンドを実行することでテストできます。
```sh
echo -e "\xf0\x9f\x90\x8d"
echo -e "\xee\x82\xa0"
```
-1行目は[snake emoji](https://emojipedia.org/snake/)を生成し、2行目は[powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs)を生成するはずです。
+一行目は[蛇の絵文字](https://emojipedia.org/snake/)、二行目は[powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs)が表示されるはずです。
-いずれかのシンボルが正しく表示されない場合でも、システムの設定が間違っています。 残念ながら、フォント設定を正しくするのは難しい場合があります。 Discordのユーザーがお役に立てるかもしれません。 両方の記号が正しく表示されているにもかかわらず、まだStarshipに表示されていない場合は、[バグ報告をしてください!](https://github.com/starship/starship/issues/new/choose)
+もし、どちらの記号とも正しく表示されない場合は、システムの設定が間違っています。 不幸にも、正しくフォントを設定するのは難しいものです。 Discordのユーザーが助けてくれるかもしれません! もし記号が正しく表示されているのにもかかわらず、Starshipが正しく表示されていない場合は、[バグの報告](https://github.com/starship/starship/issues/new/choose)をお願いします。
-## Starshipをアンインストールするにはどうすればいいですか?
+## Starshipをアンインストールしたい
-Starshipは、最初の場所にインストールするのと同じくらい簡単にアンインストールできます。
+Starshipのアンインストールはインストールと同じぐらい簡単です。
-1. Starshipを初期化するために使用されるシェル設定の行を削除します(例:`~/.bashrc`)。
+1. Starshipを初期化するために使用した、シェルの設定行を削除します (例:`~/.bashrc`)。
1. Starshipのバイナリを削除します。
-Starship がパッケージマネージャを使用してインストールされている場合は、アンインストール手順については、そのドキュメントを参照してください。
+パッケージマネージャーを使用してStarshipをインストールした場合は、パッケージマネージャーのアンインストールガイドを参照してください。
-Starship が `curl | bash` スクリプトを使用してインストールされた場合、次のコマンドはバイナリを削除します:
+`curl | bash` スクリプトを使用してStarshipをインストールした場合は、以下のコマンドでバイナリを削除してください。
```sh
-# starshipバイナリを見つけて削除します
+# starshipバイナリを見つけて削除
rm "$(which starship)"
```
diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md
index 7643e0567..751c8f541 100644
--- a/docs/ja-JP/guide/README.md
+++ b/docs/ja-JP/guide/README.md
@@ -2,18 +2,21 @@
+ alt="Starship – Cross-shell prompt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="깃헙 액션 워크풀로 상태"
+ />
+ alt="Crates.io 버전"
+ />
+ alt="디스코드에 채팅을 하세요"
+ />
+ alt="트위터에서 @StarshipPrompt를 팔로우 하세요"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="Status do workflow Actions do GitHub"
+ />
+ alt="Versão no Crates.io"
+ />
+ alt="Chat no Discord"
+ />
+ alt="Siga o @StarshipPrompt no Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="Статус GitHub Actions"
+ />
+ alt="Версия Crates.io"
+ />
+ alt="Чат в Discord"
+ />
+ alt="Подпишитесь на @StarshipPrompt в Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />
+ alt="Chat on Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
+ alt="Trạng thái GitHub Actions workflow"
+ />
+ alt="Phiên bản Crates.io"
+ />
+ alt="Trò chuyện trên Discord"
+ />
+ alt="Theo dõi @StarshipPrompt trên Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="Tiếng Anh"
+ />
+ alt="Tiếng Nhật"
+ />
+ alt="Tiếng Trung hiện đại"
+ />
+ alt="Tiếng Nga"
+ />
+ alt="Tiếng Đức"
+ />
+ alt="Tiếng Trung giản thể"
+ />
+ alt="Tiếng Tây Ban Nha"
+ />
+ alt="Thiếng Pháp"
+ />
+ alt="Tiếng Việt"
+ />
starship.toml` 之外做更多工作才能实现某些效果。 此页面详细介绍了一些在 starship 中使用的高级配置技巧。
-::: 警告
+::: warning
本节所述的配置内容可能随 Starship 未来版本的更新而改变。
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index a66118ab0..abacfe431 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -9,8 +9,8 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
Starship 的所有配置都在此 [TOML](https://github.com/toml-lang/toml) 配置文件中完成:
```toml
-# Don't print a new line at the start of the prompt
-add_newline = false
+# Inserts a blank line between shell prompts
+add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
@@ -80,7 +80,7 @@ In the second part, which is enclosed in a `()`, is a [style string](#style-stri
For example:
- `[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.
+- `[⌘ $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.
#### 样式设定
@@ -142,11 +142,11 @@ format = '''
### 配置项
-| Option | 默认值 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `format` | [见下文](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 |
-| `add_newline` | `true` | 在提示符与提示信息间换行。 |
+| Option | 默认值 | 描述 |
+| -------------- | ----------------------------- | ----------------------------------------- |
+| `format` | [见下文](#default-prompt-format) | Configure the format of the prompt. |
+| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
### 示例
@@ -162,7 +162,7 @@ format = """
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 10
-# Disable the newline at the start of the prompt
+# Disable the blank line at the start of the prompt
add_newline = false
```
@@ -207,6 +207,7 @@ $purescript\
$python\
$ruby\
$rust\
+$scala\
$swift\
$terraform\
$vagrant\
@@ -237,15 +238,17 @@ $character"""
When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var.
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
+
### 配置项
-| Option | 默认值 | 描述 |
-| ---------------- | ------------------------------------------------ | ------------------------- |
-| `format` | `'on [$symbol$profile(\($region\))]($style) '` | 组件格式化模板。 |
-| `symbol` | `"☁️ "` | 这个字段的内容会显示在当前 AWS 配置信息之前。 |
-| `region_aliases` | | 地区缩写列表,用来显示在 AWS 主机名之后。 |
-| `style` | `"bold yellow"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `AWS` 组件。 |
+| Option | 默认值 | 描述 |
+| ---------------- | --------------------------------------------------- | ------------------------- |
+| `format` | `'on [$symbol($profile )(\($region\) )]($style)'` | 组件格式化模板。 |
+| `symbol` | `"☁️ "` | 这个字段的内容会显示在当前 AWS 配置信息之前。 |
+| `region_aliases` | | 地区缩写列表,用来显示在 AWS 主机名之后。 |
+| `style` | `"bold yellow"` | 此组件的样式。 |
+| `disabled` | `false` | 禁用 `AWS` 组件。 |
### Variables
@@ -266,7 +269,7 @@ When using [aws-vault](https://github.com/99designs/aws-vault) the profile is re
# ~/.config/starship.toml
[aws]
-format = 'on [$symbol$profile(\($region\))]($style) '
+format = 'on [$symbol($profile )(\($region\) )]($style)'
style = "bold blue"
symbol = "🅰 "
[aws.region_aliases]
@@ -301,7 +304,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%.
### 配置项
@@ -330,7 +333,7 @@ discharging_symbol = "💀"
### Battery 组件的显示
-`display` 选项用于定义电池指示器的显示阈值(threshold)和显示效果(style)。 如果 `display` 没有设置, 默认设置如下:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. 默认设置如下:
```toml
[[battery.display]]
@@ -340,7 +343,7 @@ style = "bold red"
#### 配置项
-`display` 字段的子字段如下:
+The `display` option is an array of the following table.
| Option | 描述 |
| ----------- | ---------------- |
@@ -364,9 +367,9 @@ style = "bold yellow"
## 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 (`❯`/`✖`)
@@ -434,7 +437,7 @@ The `cmake` module shows the currently installed version of CMake. By default th
| Option | 默认值 | 描述 |
| ------------------- | -------------------------------------- | -------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
-| `symbol` | `"喝 "` | The symbol used before the version of cmake. |
+| `symbol` | `"△ "` | The symbol used before the version of cmake. |
| `detect_extensions` | `[]` | Which extensions should trigger this moudle |
| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -453,15 +456,15 @@ The `cmake` module shows the currently installed version of CMake. By default th
## Command Duration
-`cmd_duration` 组件显示上一个命令执行的时间。 此组件只在命令执行时间长于两秒时显示,或者当其 `min_time` 字段被设置时,按此值为执行时间的显示下限。
+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 不要在 Bash 里捕获 DEBUG 信号
+::: warning Do not hook the DEBUG trap in Bash
-如果您正在 `bash` 上使用 Starship,在运行 `eval $(starship)` 后,不要捕获 `DEBUG` 信号,否则此组件**将会**坏掉。
+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 用户可以使用 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只需要在执行 `eval $(starship init $0)` 前简单地定义 `preexec_functions` 和 `precmd_functions` 两个列表,就可以照常运行了。
+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.
### 配置项
@@ -502,11 +505,11 @@ format = "underwent [$duration](bold yellow)"
## Conda
-`conda` 组件在 `$CONDA_DEFAULT_ENV` 被设置时显示当前 conda 环境。
+The `conda` module shows the current conda 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`.
:::
@@ -619,11 +622,11 @@ format = "via [🔰 $version](bold red) "
## 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`.
### 配置项
@@ -640,7 +643,7 @@ format = "via [🔰 $version](bold red) "
| `home_symbol` | `"~"` | The symbol indicating home directory. |
-此组件有几个高级配置选项来控制当前目录路径的显示方式。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | 默认值 | 描述 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -717,7 +720,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-`dotnet` 模块显示与当前目录下使用的 .NET Core SDK 相关联的版本。 如果当前目录已被绑定了一个版本的 SDK,则显示被帮定的版本。 否则此组件将显示最新安装的 SDK 版本。
+The `dotnet` module shows the relevant version of the .NET Core SDK 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:
@@ -733,7 +736,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.
@@ -853,7 +856,7 @@ format = "via [ $version](cyan bold) "
## Environment Variable
-`env_var` 组件显示选定的环境变量的当前值。 此组件只有满足以下条件之一时才会被显示:
+The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
- 设置的 `variable` 是一个已存在的环境变量
- 未定义 `variable`,但定义了 `default`
@@ -988,7 +991,7 @@ asia-northeast1 = "an1"
## Git Branch
-`git_branch` 组件显示当前目录的 git 仓库的活动分支。
+The `git_branch` module shows the active branch of the repo in your current directory.
### 配置项
@@ -1063,7 +1066,7 @@ tag_symbol = "🔖 "
## Git State
-`git_state` 组件会显示当前目录在哪个 git 仓库中,以及正在进行的操作,例如:_REBASING_,_BISECTING_ 等。 进度信息(例如 REBASING 3/10)如果存在则也会被显示。
+The `git_state` module will show in directories which are part of a git repository, and where there is an operation in progress, such as: _REBASING_, _BISECTING_, etc. If there is progress information (e.g., REBASING 3/10), that information will be shown too.
### 配置项
@@ -1103,7 +1106,7 @@ cherry_pick = "[🍒 PICKING](bold red)"
## Git Status
-`git_status`组件通过相应的符号显示您当前目录中 git 仓库的状态。
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### 配置项
@@ -1186,7 +1189,7 @@ behind = "⇣${count}"
## Golang
-`golang` 组件显示当前安装的 Golang 版本。 By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of Golang. By default the module will be shown if any of the following conditions are met:
- 当前目录包含 `go.mod` 文件
- 当前目录包含 `go.sum` 文件
@@ -1268,7 +1271,7 @@ format = "via [⎈ $version](bold white) "
## Hostname
-`hostname` 组件显示系统主机名。
+The `hostname` module shows the system hostname.
### 配置项
@@ -1303,7 +1306,7 @@ disabled = false
## Java
-`java` 组件显示当前安装的 Java 版本。 By default the module will be shown if any of the following conditions are met:
+The `java` module shows the currently installed version of Java. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `.deps.edn`, `project.clj`, or `build.boot` file
- The current directory contains a file with the `.java`, `.class`, `.gradle`, `.jar`, `.clj`, or `.cljc` extension
@@ -1341,7 +1344,13 @@ symbol = "🌟 "
## Jobs
-`jobs` 组件显示当前正在运行的任务数量。 仅当有后台任务运行时,此组件才会显示。 如果有超过 1 个作业,模块将显示正在运行的作业数量,如果配置了 `threshold` 字段,则使用它作为显示作业数量的下限。
+The `jobs` module shows the current number of jobs running. The module will be shown only if there are background jobs running. The module will show the number of jobs running if there is more than 1 job, or more than the `threshold` config value, if it exists.
+
+::: warning
+
+This module is not supported on tcsh.
+
+:::
### 配置项
@@ -1464,7 +1473,7 @@ Displays the current Kubernetes context name and, if set, the namespace from the
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1503,7 +1512,7 @@ disabled = false
## Line Break
-`line_break` 组件将提示分隔为两行。
+The `line_break` module separates the prompt into two lines.
### 配置项
@@ -1562,13 +1571,13 @@ format = "via [🌕 $version](bold blue) "
## Memory Usage
-`memory_usage` 组件显示当前系统内存和交换区使用情况。
+The `memory_usage` module shows current system memory and swap usage.
-默认情况下,如果系统交换区使用不为 0,则会显示交换区使用情况。
+By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1609,7 +1618,7 @@ style = "bold dimmed green"
## Mercurial Branch
-`hg_branch` 组件显示当前目录的 hg 仓库的活动分支。
+The `hg_branch` module shows the active branch of the repo in your current directory.
### 配置项
@@ -1686,7 +1695,7 @@ symbol = "🎣 "
## Nix-shell
-`nix_shell` 组件显示 nix-shell 环境。 当处于一个 nix-shell 环境中时,此组件会被显示。
+The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment.
### 配置项
@@ -1724,7 +1733,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## NodeJS
-`nodejs` 组件显示当前安装的 NodeJS 版本。 By default the module will be shown if any of the following conditions are met:
+The `nodejs` module shows the currently installed version of NodeJS. By default the module will be shown if any of the following conditions are met:
- 当前目录包含 `package.json` 文件
- The current directory contains a `.node-version` file
@@ -1737,7 +1746,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| Option | 默认值 | 描述 |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
-| `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. |
+| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
@@ -1843,7 +1852,7 @@ symbol = "☁️ "
## Package Version
-当前目录是软件包的代码仓库时,将显示 `package` 组件,并显示软件包当前版本。 The module currently supports `npm`, `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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- **npm** —— `npm` 软件包版本从当前目录下的 `package.json` 中得到
- **cargo** —— `cargo` 软件包的版本从当前目录下的 `Cargo.toml` 中得到
@@ -1928,7 +1937,7 @@ format = "via [🦪 $version]($style) "
## PHP
-`php` 组件显示当前安装的 PHP 版本。 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. By default the module will be shown if any of the following conditions are met:
- 当前目录包含一个 `composer.json` 文件
- The current directory contains a `.php-version` file
@@ -2005,9 +2014,9 @@ format = "via [$symbol$version](bold white)"
## Python
-`python` 组件组件展示已经安装了的Python版本以及如果虚拟环境被激活则会显示当前Python虚拟环境
+The `python` module shows the currently installed version of Python and the current Python virtual environment 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:
@@ -2083,7 +2092,7 @@ detect_extensions = []
## Ruby
-By default the `ruby` module shows the currently installed version of Ruby. 此组件将在符合以下任意条件之一时显示:
+By default the `ruby` module shows the currently installed version of Ruby. The module will be shown if any of the following conditions are met:
- 当前目录包含 `Gemfile` 文件
- The current directory contains a `.ruby-version` file
@@ -2122,7 +2131,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of Rust. 此组件将在符合以下任意条件之一时显示:
+By default the `rust` module shows the currently installed version of Rust. The module will be shown if any of the following conditions are met:
- 当前目录包含 `Cargo.toml` 文件
- 当前目录包含一个使用 `.rs` 扩展名的文件
@@ -2158,13 +2167,55 @@ By default the `rust` module shows the currently installed version of Rust. 此
format = "via [⚙️ $version](red bold)"
```
+
+## Scala
+
+The `scala` module shows the currently installed version of Scala. By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
+- The current directory contains a file with the `.scala` or `.sbt` extension
+- The current directory contains a directory named `.metals`
+
+### 配置项
+
+
+| Option | 默认值 | 描述 |
+| ------------------- | ---------------------------------------- | ------------------------------------------------- |
+| `format` | `"via [${symbol}(${version} )]($style)"` | 组件格式化模板。 |
+| `detect_extensions` | `["sbt", "scala"]` | Which extensions should trigger this module. |
+| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[".metals"]` | Which folders should trigger this modules. |
+| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
+| `style` | `"red dimmed"` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `scala` module. |
+
+### Variables
+
+| 字段 | 示例 | 描述 |
+| --------- | -------- | ---------------------- |
+| version | `2.13.5` | The version of `scala` |
+| symbol | | `symbol`对应值 |
+| style\* | | `style`对应值 |
+
+\*: This variable can only be used as a part of a style string
+
+### 示例
+
+```toml
+# ~/.config/starship.toml
+
+[scala]
+symbol = "🌟 "
+```
+
+
## Shell
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.
:::
@@ -2178,6 +2229,7 @@ The `shell` module shows an indicator for currently used shell.
| `powershell_indicator` | `psh` | A format string used to represent powershell. |
| `ion_indicator` | `ion` | A format string used to represent ion. |
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
+| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `format` | `$indicator` | 组件格式化模板。 |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2271,7 +2323,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.
:::
@@ -2324,7 +2376,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of Swift. 此组件将在符合以下任意条件之一时显示:
+By default the `swift` module shows the currently installed version of Swift. 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
@@ -2372,7 +2424,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
### 配置项
@@ -2424,7 +2476,7 @@ The `time` module shows the current **local** time. The `format` configuration v
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2466,12 +2518,12 @@ time_range = "10:00:00-14:00:00"
## Username
-The `username` module shows active user's 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
@@ -2548,7 +2600,7 @@ format = "via [⍱ $version](bold white) "
## Zig
-By default the the `zig` module shows the currently installed version of Zig. 此组件将在符合以下任意条件之一时显示:
+By default the the `zig` module shows the currently installed version of Zig. The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/zh-CN/faq/README.md b/docs/zh-CN/faq/README.md
index ec338c93d..ebb725144 100644
--- a/docs/zh-CN/faq/README.md
+++ b/docs/zh-CN/faq/README.md
@@ -38,7 +38,7 @@ NUM_JOBS=$(jobs -p | wc -l)
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
```
-内置于 Starship 的 [Bash 适配](https://github.com/starship/starship/blob/master/src/init/starship.bash) 稍微复杂一些,实现了像 [命令用时统计组件](https://starship.rs/config/#Command-Duration) 这样的功能,还确保 Starship 能与之前设置的 Bash 配置相兼容。
+The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#command-duration) and to ensure that Starship is compatible with pre-installed Bash configurations.
使用以下命令了解 `starship prompt` 所能接受的所有参数:
@@ -56,6 +56,10 @@ If you get an error like "_version 'GLIBC_2.18' not found (required by starship)
curl -fsSL https://starship.rs/install.sh | bash -s -- --platform unknown-linux-musl
```
+## I see symbols I don't understand or expect, what do they mean?
+
+If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+
## Why don't I see a glyph symbol in my prompt?
The most common cause of this is system misconfiguration. Some Linux distros in particular do not come with font support out-of-the-box. You need to ensure that:
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index b169189e1..73e60e3a9 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -2,18 +2,21 @@
+ alt="Starship – Cross-shell prompt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />

+ alt="加入 Discord"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
@@ -107,7 +121,8 @@
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
alt="使用 iTerm 和 Snazz 主题的 Starship"
width="50%"
- align="right" />
+ align="right"
+ />
**轻量级、反应迅速,可定制的高颜值终端!**
@@ -229,6 +244,17 @@
eval (starship init elvish)
```
+
+ #### Tcsh
+
+ Add the following to the end of `~/.tcshrc`:
+
+ ```sh
+ # ~/.tcshrc
+
+ eval `starship init tcsh`
+ ```
+
## 🤝 贡献
我们一直在寻找贡献者!你都可以参与贡献 ** 不论你的技能如何 **。 如果您希望快速为项目作出贡献,请尝试解决 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)。
diff --git a/docs/zh-CN/installing/README.md b/docs/zh-CN/installing/README.md
index 0426225b1..82e4b0c43 100644
--- a/docs/zh-CN/installing/README.md
+++ b/docs/zh-CN/installing/README.md
@@ -8,13 +8,29 @@ To install starship, you need to do two things:
For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. 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!
-## [termux](https://termux.com)
+
+## [Chocolatey](https://chocolatey.org)
+
### 前置要求
+
+Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
+
+### Installation
+
+```powershell
+choco install starship
+```
+
+## [termux](https://termux.com)
+
+### 前置要求
+
```sh
pkg install getconf
```
### Installation
+
```sh
curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin
```
@@ -31,7 +47,29 @@ nix-env -iA nixos.starship
#### Declarative, single user, via [home-manager](home-manager)
-Add `pkgs.starship` to your `home.packages` in your `home.nix` file, then run
+Enable the `programs.starship` module in your `home.nix` file, and add your settings
+
+```nix
+{
+ programs.starship = {
+ enable = true;
+ enableZshIntegration = true;
+ # Configuration written to ~/.config/starship.toml
+ settings = {
+ # add_newline = false;
+
+ # character = {
+ # success_symbol = "[➜](bold green)";
+ # error_symbol = "[➜](bold red)";
+ # };
+
+ # package.disabled = true;
+ };
+ };
+}
+```
+
+then run
```sh
home-manager switch
@@ -39,18 +77,8 @@ home-manager switch
#### Declarative, system-wide, with NixOS
-Add `pkgs.starship` to `environment.packages` in your `configuration.nix`, then run
+Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
```sh
sudo nixos-rebuild switch
```
-
-### Modifying Init Scripts
-
-#### With Nix and home-manager, using zsh:
-
-Add the following to `programs.zsh.initExtra` in your `home.nix` file, then run
-
-```sh
-home-manager switch
-```
diff --git a/docs/zh-CN/presets/README.md b/docs/zh-CN/presets/README.md
index b97e3888a..0977466db 100644
--- a/docs/zh-CN/presets/README.md
+++ b/docs/zh-CN/presets/README.md
@@ -16,7 +16,7 @@
```toml
[aws]
-symbol = " "
+symbol = " "
[conda]
symbol = " "
@@ -84,6 +84,9 @@ symbol = " "
[rust]
symbol = " "
+[scala]
+symbol = " "
+
[swift]
symbol = "ﯣ "
```
diff --git a/docs/zh-TW/README.md b/docs/zh-TW/README.md
index 10da9cda6..96ccbb568 100644
--- a/docs/zh-TW/README.md
+++ b/docs/zh-TW/README.md
@@ -2,8 +2,8 @@
home: true
heroImage: /logo.svg
heroText:
-tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
-actionText: Get Started →
+tagline: 適合任何 shell 的最小、極速、無限客製化的提示字元!
+actionText: 馬上開始 →
actionLink: ./guide/
features:
-
@@ -17,8 +17,8 @@ features:
details: 任何些微的細節都可以隨你喜愛地客製化,讓你的提示字元可以隨你所欲地最小化或是充滿各種特色。
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
-metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, and PowerShell.
+metaTitle: "Starship:跨 Shell 提示字元"
+description: Starship 是適合任何 shell 的最小、極速、高度客製化的提示字元! 顯示你需要的訊息,同時保持順暢與最小化。 有針對 Bash、Fish、ZSH、Ion 與 Powershell 的快速安裝指南。
---
@@ -33,24 +33,24 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
1. 安裝 **starship** 執行檔:
- #### Install Latest Version
+ #### 安裝最新版本
- With Shell:
+ 使用 Shell 安裝:
```sh
curl -fsSL https://starship.rs/install.sh | bash
```
- #### Install via Package Manager
+ #### 使用套件管理器安裝:
- With [Homebrew](https://brew.sh/):
+ 使用 [Homebrew](https://brew.sh/):
```sh
brew install starship
```
- With [Scoop](https://scoop.sh):
+ 使用 [Scoop](https://scoop.sh):
```powershell
scoop install starship
@@ -94,7 +94,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.
+ 將以下內容放到 `Microsoft.PowerShell_profile.ps1` 的結尾。 你可以藉由在 PowerShell 查詢 `$PROFILE` 變數以取得這個檔案的位置。 一般來說檔案會出現在 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或是在 -Nix 上的話會在 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
```sh
Invoke-Expression (&starship init powershell)
@@ -103,7 +103,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Ion
- Add the following to the end of `~/.config/ion/initrc`:
+ 將以下內容放到 `~/.config/ion/initrc` 的結尾:
```sh
# ~/.config/ion/initrc
@@ -113,9 +113,9 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Elvish
- ::: warning Only elvish v0.15 or higher is supported. :::
+ ::: warning 只有 elvish v0.15 或以上版本才有支援 :::
- Add the following to the end of `~/.elvish/rc.elv`:
+ 將以下內容放到 `~/.elvish/rc.elv` 的結尾:
```sh
# ~/.elvish/rc.elv
@@ -123,3 +123,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval (starship init elvish)
```
+
+ #### Tcsh
+
+ 將以下內容放到 `~/.tcshrc` 的結尾:
+
+ ```sh
+ # ~/.tcshrc
+
+ eval `starship init tcsh`
+ ```
+
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index 36daff26e..487e27bfa 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -9,8 +9,8 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
所有關於 Starship 的設定都在這個 [TOML](https://github.com/toml-lang/toml) 檔案內:
```toml
-# Don't print a new line at the start of the prompt
-add_newline = false
+# Inserts a blank line between shell prompts
+add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
@@ -80,7 +80,7 @@ In the second part, which is enclosed in a `()`, is a [style string](#style-stri
For example:
- `[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.
+- `[⌘ $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.
#### 風格字串
@@ -146,7 +146,7 @@ format = '''
| -------------- | ---------------------------- | ----------------------------------------------------- |
| `format` | [連結](#default-prompt-format) | Configure the format of the prompt. |
| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `add_newline` | `true` | 在提示字元前面加上換行字元。 |
+| `add_newline` | `true` | Inserts blank line between shell prompts. |
### 範例
@@ -162,7 +162,7 @@ format = """
# Wait 10 milliseconds for starship to check files under the current directory.
scan_timeout = 10
-# Disable the newline at the start of the prompt
+# Disable the blank line at the start of the prompt
add_newline = false
```
@@ -207,6 +207,7 @@ $purescript\
$python\
$ruby\
$rust\
+$scala\
$swift\
$terraform\
$vagrant\
@@ -237,15 +238,17 @@ $character"""
從 `AWS_VAULT`讀取而使用 [aws-vault](https://github.com/99designs/aws-vault) 這個設定檔
+When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
+
### 選項
-| Option | 預設 | 說明 |
-| ---------------- | ------------------------------------------------ | -------------------------- |
-| `format` | `'on [$symbol$profile(\($region\))]($style) '` | The format for the module. |
-| `symbol` | `"☁️ "` | 顯示在目前 AWS 配置之前的符號。 |
-| `region_aliases` | | 除了AWS名稱外,顯示區域別名表 |
-| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `AWS` 模組。 |
+| Option | 預設 | 說明 |
+| ---------------- | --------------------------------------------------- | -------------------------- |
+| `format` | `'on [$symbol($profile )(\($region\) )]($style)'` | The format for the module. |
+| `symbol` | `"☁️ "` | 顯示在目前 AWS 配置之前的符號。 |
+| `region_aliases` | | 除了AWS名稱外,顯示區域別名表 |
+| `style` | `"bold yellow"` | 這個模組的風格。 |
+| `disabled` | `false` | 停用 `AWS` 模組。 |
### Variables
@@ -266,7 +269,7 @@ $character"""
# ~/.config/starship.toml
[aws]
-format = 'on [$symbol$profile(\($region\))]($style) '
+format = 'on [$symbol($profile )(\($region\) )]($style)'
style = "bold blue"
symbol = "🅰 "
[aws.region_aliases]
@@ -301,7 +304,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%.
### 選項
@@ -330,7 +333,7 @@ discharging_symbol = "💀"
### 電池顯示
-`display` 設定是用來定義甚麼時候電池指示會顯示出來 (threshold),以及它長甚麼樣子 (style)。 如果沒有提供 `display`。 預設如下:
+The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. 預設如下:
```toml
[[battery.display]]
@@ -340,7 +343,7 @@ style = "bold red"
#### 選項
-`display` 選項是一個下列表格的陣列。
+The `display` option is an array of the following table.
| Option | 說明 |
| ----------- | ----------- |
@@ -364,9 +367,9 @@ style = "bold yellow"
## 字元
-`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 (`❯`/`✖`)
@@ -434,7 +437,7 @@ The `cmake` module shows the currently installed version of CMake. By default th
| Option | 預設 | 說明 |
| ------------------- | -------------------------------------- | -------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"喝 "` | The symbol used before the version of cmake. |
+| `symbol` | `"△ "` | The symbol used before the version of cmake. |
| `detect_extensions` | `[]` | Which extensions should trigger this moudle |
| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -453,15 +456,15 @@ The `cmake` module shows the currently installed version of CMake. By default th
## 指令持續時間
-`cmd_duration` 模組顯示最後一個指令執行所花費的時間。 這個模組只會在指令花費超過兩秒或是有設定 `min_time` 時,超過設定值時出現。
+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 不要在 Bash 中設置 DEBUG trap
+::: warning Do not hook the DEBUG trap in Bash
-如果你在 `bash` 中使用 Starship,不要在執行 `eval $(starship init $0)` 之後設置 `DEBUG` trap,不然這個模組**會**壞掉。
+If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
:::
-想使用類似 preexec 功能的 Bash 使用者可以 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只要在 `eval $(starship init $0)` 之前簡單地定義 `preexec_functions` 與 `precmd_functions` 兩個陣列,然後就可以照常進行。
+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.
### 選項
@@ -502,7 +505,7 @@ format = "underwent [$duration](bold yellow)"
## Conda
-如果有設定 `$CONDA_DEFAULT_ENV` 時,`conda` 模組顯示現在 conda 的環境。
+The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
::: tip
@@ -542,7 +545,7 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-`crystal` 模組顯示現在所安裝的Crystal版本 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. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中含有一個 `shard.yml` 檔案
- 現在資料夾中含有一個`.cr`檔案
@@ -619,11 +622,11 @@ format = "via [🔰 $version](bold red) "
## 資料夾
-`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`.
### 選項
@@ -640,7 +643,7 @@ format = "via [🔰 $version](bold red) "
| `home_symbol` | `"~"` | The symbol indicating home directory. |
-這個模組有些進階設定選項可以控制顯示資料夾。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | 預設 | 說明 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -717,7 +720,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-`dotnet` 模組顯示現在資料夾使用的 .NET Core SDK 的版本。 如果這個資料夾已經選定一個 SDK,則顯示這個 SDK 的版本。 如果沒有的話,則顯示最新安裝的 SDK 版本。
+The `dotnet` module shows the relevant version of the .NET Core SDK 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:
@@ -733,7 +736,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.
@@ -853,7 +856,7 @@ format = "via [ $version](cyan bold) "
## 環境變數
-`env_var`模組顯示一個選擇的環境變數的現在數值。 這個模組只在下列條件其中之一達到時顯示:
+The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met:
- `variable` 設定選項符合一個存在的環境變數。
- 沒有設定 `variable` 選項,但是有設定 `default` 選項。
@@ -988,7 +991,7 @@ asia-northeast1 = "an1"
## Git 分支
-`git_branch` 模組顯示現在的資料夾中使用中的儲存庫的分支。
+The `git_branch` module shows the active branch of the repo in your current directory.
### 選項
@@ -1063,7 +1066,7 @@ tag_symbol = "🔖 "
## Git State
-`git_state` 模組會顯示在 git 儲存庫中的資料夾內,以及會在有作業正在進行時顯示,像是:_REBASING_、_BISECTING_ 等等。 如果有進展的資訊 (像是 REBASING 3/10),也會一併顯示出來。
+The `git_state` module will show in directories which are part of a git repository, and where there is an operation in progress, such as: _REBASING_, _BISECTING_, etc. If there is progress information (e.g., REBASING 3/10), that information will be shown too.
### 選項
@@ -1103,7 +1106,7 @@ cherry_pick = "[🍒 PICKING](bold red)"
## Git Status
-`git_status` 模組顯示用來表示現在資料夾之中儲存庫狀態的符號。
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### 選項
@@ -1186,7 +1189,7 @@ behind = "⇣${count}"
## Golang
-`golang` 模組顯示現在安裝的 Golang 版本。 By default the module will be shown if any of the following conditions are met:
+The `golang` module shows the currently installed version of Golang. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中含有一個 `go.mod` 檔案
- 現在資料夾中含有一個 `go.sum` 檔案
@@ -1268,7 +1271,7 @@ format = "via [⎈ $version](bold white) "
## 主機名稱
-`hostname` 模組顯示系統的主機名稱。
+The `hostname` module shows the system hostname.
### 選項
@@ -1303,7 +1306,7 @@ disabled = false
## Java
-`java` 模組顯示現在安裝的 Java 版本。 By default the module will be shown if any of the following conditions are met:
+The `java` module shows the currently installed version of Java. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `.deps.edn`, `project.clj`, or `build.boot` file
- The current directory contains a file with the `.java`, `.class`, `.gradle`, `.jar`, `.clj`, or `.cljc` extension
@@ -1341,7 +1344,13 @@ symbol = "🌟 "
## 工作
-`jobs` 模組顯示現在正在執行中的工作。 這個模組只會在有背景工作正在執行時顯示。 這個模組會在工作數量超過一個,或者有設定 `threshold` 時且數量超過設定值時,顯示工作的數量。
+The `jobs` module shows the current number of jobs running. The module will be shown only if there are background jobs running. The module will show the number of jobs running if there is more than 1 job, or more than the `threshold` config value, if it exists.
+
+::: warning
+
+This module is not supported on tcsh.
+
+:::
### 選項
@@ -1464,7 +1473,7 @@ Displays the current Kubernetes context name and, if set, the namespace from the
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1503,7 +1512,7 @@ disabled = false
## 換行
-`line_break` 模組將提示字元分成兩行。
+The `line_break` module separates the prompt into two lines.
### 選項
@@ -1562,13 +1571,13 @@ format = "via [🌕 $version](bold blue) "
## 記憶體使用量
-`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.
:::
@@ -1686,7 +1695,7 @@ symbol = "🎣 "
## Nix-shell
-`nix_shell` 模組顯示 nix-shell 環境。 這個模組會在 nix-shell 環境中顯示。
+The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment.
### 選項
@@ -1724,7 +1733,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## NodeJS
-`nodejs` 模組顯示現在安裝的 NodeJS 版本。 By default the module will be shown if any of the following conditions are met:
+The `nodejs` module shows the currently installed version of NodeJS. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `package.json` 檔案
- The current directory contains a `.node-version` file
@@ -1737,7 +1746,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| Option | 預設 | 說明 |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. |
+| `symbol` | `" "` | A format string representing the symbol of NodeJS. |
| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
@@ -1843,7 +1852,7 @@ symbol = "☁️ "
## 套件版本
-The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並顯示他的現在版本。 這個模組目前支援 `npm`、`cargo`、`poetry`、`composer`、`gradle`、`julia`、`mix`, 跟 `helm` 套件
+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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- **npm** – `npm` 套件的版本是從現在資料夾中的 `package.json` 之中擷取出來的
- **cargo** – `cargo` 套件的版本是從現在資料夾中的 `Cargo.toml` 之中擷取出來的
@@ -2083,7 +2092,7 @@ detect_extensions = []
## Ruby
-By default the `ruby` module shows the currently installed version of Ruby. 這個模組在下列其中一個條件達成時顯示:
+By default the `ruby` module shows the currently installed version of Ruby. The module will be shown if any of the following conditions are met:
- 目前資料夾中有一個 `Gemfile` 檔案
- The current directory contains a `.ruby-version` file
@@ -2122,7 +2131,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of Rust. 這個模組在下列其中一個條件達成時顯示:
+By default the `rust` module shows the currently installed version of Rust. The module will be shown if any of the following conditions are met:
- 目前資料夾中有一個 `Cargo.toml` 檔案
- 現在資料夾中包含一個檔案具有 `.rs` 副檔名
@@ -2158,13 +2167,55 @@ By default the `rust` module shows the currently installed version of Rust. 這
format = "via [⚙️ $version](red bold)"
```
+
+## Scala
+
+The `scala` module shows the currently installed version of Scala. By default the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
+- The current directory contains a file with the `.scala` or `.sbt` extension
+- The current directory contains a directory named `.metals`
+
+### 選項
+
+
+| Option | 預設 | 說明 |
+| ------------------- | ---------------------------------------- | ------------------------------------------------- |
+| `format` | `"via [${symbol}(${version} )]($style)"` | The format for the module. |
+| `detect_extensions` | `["sbt", "scala"]` | Which extensions should trigger this module. |
+| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[".metals"]` | Which folders should trigger this modules. |
+| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
+| `style` | `"red dimmed"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `scala` module. |
+
+### Variables
+
+| 變數 | 範例 | 說明 |
+| --------- | -------- | ------------------------------------ |
+| version | `2.13.5` | The version of `scala` |
+| 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
+
+### 範例
+
+```toml
+# ~/.config/starship.toml
+
+[scala]
+symbol = "🌟 "
+```
+
+
## Shell
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.
:::
@@ -2178,6 +2229,7 @@ The `shell` module shows an indicator for currently used shell.
| `powershell_indicator` | `psh` | A format string used to represent powershell. |
| `ion_indicator` | `ion` | A format string used to represent ion. |
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
+| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2271,7 +2323,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.
:::
@@ -2324,7 +2376,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of Swift. 這個模組在下列其中一個條件達成時顯示:
+By default the `swift` module shows the currently installed version of Swift. 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
@@ -2424,7 +2476,7 @@ The `time` module shows the current **local** time. The `format` configuration v
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2466,12 +2518,12 @@ time_range = "10:00:00-14:00:00"
## Username
-The `username` module shows active user's 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
@@ -2548,7 +2600,7 @@ format = "via [⍱ $version](bold white) "
## Zig
-By default the the `zig` module shows the currently installed version of Zig. 這個模組在下列其中一個條件達成時顯示:
+By default the the `zig` module shows the currently installed version of Zig. The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/zh-TW/faq/README.md b/docs/zh-TW/faq/README.md
index 9bb23bf93..d3c6d238c 100644
--- a/docs/zh-TW/faq/README.md
+++ b/docs/zh-TW/faq/README.md
@@ -38,7 +38,7 @@ NUM_JOBS=$(jobs -p | wc -l)
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
```
-The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#Command-Duration) and to ensure that Starship is compatible with pre-installed Bash configurations.
+The [Bash implementation](https://github.com/starship/starship/blob/master/src/init/starship.bash) built into Starship is slightly more complex to allow for advanced features like the [Command Duration module](https://starship.rs/config/#command-duration) and to ensure that Starship is compatible with pre-installed Bash configurations.
For a list of all flags accepted by `starship prompt`, use the following command:
@@ -56,6 +56,10 @@ If you get an error like "_version 'GLIBC_2.18' not found (required by starship)
curl -fsSL https://starship.rs/install.sh | bash -s -- --platform unknown-linux-musl
```
+## I see symbols I don't understand or expect, what do they mean?
+
+If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+
## Why don't I see a glyph symbol in my prompt?
The most common cause of this is system misconfiguration. Some Linux distros in particular do not come with font support out-of-the-box. You need to ensure that:
diff --git a/docs/zh-TW/guide/README.md b/docs/zh-TW/guide/README.md
index 0f3c93caa..a5f629853 100644
--- a/docs/zh-TW/guide/README.md
+++ b/docs/zh-TW/guide/README.md
@@ -2,18 +2,21 @@
+ alt="Starship – Cross-shell prompt"
+ />
+ alt="GitHub Actions workflow status"
+ />
+ alt="Crates.io version"
+ />

+ alt="在 Discord 上聊天"
+ />
+ alt="Follow @StarshipPrompt on Twitter"
+ />
@@ -42,63 +47,72 @@
>
+ alt="English"
+ />
+ alt="日本語"
+ />
+ alt="繁體中文"
+ />
+ alt="Русский"
+ />
+ alt="Deutsch"
+ />
+ alt="简体中文"
+ />
+ alt="Español"
+ />
+ alt="Français"
+ />
+ alt="Tiếng Việt"
+ />
@@ -107,7 +121,8 @@
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
alt="Starship with iTerm2 and the Snazzy theme"
width="50%"
- align="right" />
+ align="right"
+ />
**The minimal, blazing-fast, and infinitely customizable prompt for any shell!**
@@ -157,7 +172,7 @@
```
- ##### With [Scoop](https://scoop.sh):
+ ##### 使用 [Scoop](https://scoop.sh):
```powershell
scoop install starship
@@ -201,7 +216,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.
+ 將以下內容放到 `Microsoft.PowerShell_profile.ps1` 的結尾。 你可以藉由在 PowerShell 查詢 `$PROFILE` 變數以取得這個檔案的位置。 Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
```powershell
Invoke-Expression (&starship init powershell)
@@ -229,6 +244,17 @@
eval (starship init elvish)
```
+
+ #### Tcsh
+
+ Add the following to the end of `~/.tcshrc`:
+
+ ```sh
+ # ~/.tcshrc
+
+ eval `starship init tcsh`
+ ```
+
## 🤝 貢獻
我們歡迎具有**各式各樣能力**的貢獻者! 如果你正在尋找容易加入的方法,試試看標註為「[good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)」的 issue。
diff --git a/docs/zh-TW/installing/README.md b/docs/zh-TW/installing/README.md
index f815b9678..384120654 100644
--- a/docs/zh-TW/installing/README.md
+++ b/docs/zh-TW/installing/README.md
@@ -8,13 +8,29 @@ To install starship, you need to do two things:
For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. 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!
-## [termux](https://termux.com)
+
+## [Chocolatey](https://chocolatey.org)
+
### 先決要求
+
+Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
+
+### Installation
+
+```powershell
+choco install starship
+```
+
+## [termux](https://termux.com)
+
+### 先決要求
+
```sh
pkg install getconf
```
### Installation
+
```sh
curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin
```
@@ -31,7 +47,29 @@ nix-env -iA nixos.starship
#### Declarative, single user, via [home-manager](home-manager)
-Add `pkgs.starship` to your `home.packages` in your `home.nix` file, then run
+Enable the `programs.starship` module in your `home.nix` file, and add your settings
+
+```nix
+{
+ programs.starship = {
+ enable = true;
+ enableZshIntegration = true;
+ # Configuration written to ~/.config/starship.toml
+ settings = {
+ # add_newline = false;
+
+ # character = {
+ # success_symbol = "[➜](bold green)";
+ # error_symbol = "[➜](bold red)";
+ # };
+
+ # package.disabled = true;
+ };
+ };
+}
+```
+
+then run
```sh
home-manager switch
@@ -39,18 +77,8 @@ home-manager switch
#### Declarative, system-wide, with NixOS
-Add `pkgs.starship` to `environment.packages` in your `configuration.nix`, then run
+Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
```sh
sudo nixos-rebuild switch
```
-
-### Modifying Init Scripts
-
-#### With Nix and home-manager, using zsh:
-
-Add the following to `programs.zsh.initExtra` in your `home.nix` file, then run
-
-```sh
-home-manager switch
-```
diff --git a/docs/zh-TW/presets/README.md b/docs/zh-TW/presets/README.md
index a2808a2c9..6692fd169 100644
--- a/docs/zh-TW/presets/README.md
+++ b/docs/zh-TW/presets/README.md
@@ -16,7 +16,7 @@ This preset doesn't change anything except for the symbols used for each module.
```toml
[aws]
-symbol = " "
+symbol = " "
[conda]
symbol = " "
@@ -84,6 +84,9 @@ symbol = " "
[rust]
symbol = " "
+[scala]
+symbol = " "
+
[swift]
symbol = "ﯣ "
```