@@ -116,6 +116,7 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers
eval $(starship init ion)
```
+
#### Elvish
::: warning Seul elvish v0.15 ou supérieur est pris en charge. :::
@@ -139,7 +140,8 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship est une invite minimaliste, ultra-rapide et hautement pers
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/fr-FR/advanced-config/README.md b/docs/fr-FR/advanced-config/README.md
index 04098cca..7558225e 100644
--- a/docs/fr-FR/advanced-config/README.md
+++ b/docs/fr-FR/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Les chaînes de style sont une liste de mots, séparés par des espaces. Les mots ne sont pas sensibles à la casse (c'est-à-dire `gras` et `GrAs` sont considérés comme le même mot). Chaque mot peut être l'un des suivants :
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md
index 704b7417..b33b29e8 100644
--- a/docs/fr-FR/config/README.md
+++ b/docs/fr-FR/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -979,7 +980,7 @@ default = "unknown user"
## Erlang
-Le module `erlang` montre la version actuellement installée de [Erlang/OTP](https://erlang.org/doc/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `erlang` module shows the currently installed version of [Erlang/OTP](https://erlang.org/doc/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `rebar.config`.
- Le répertoire courant contient un fichier `erlang.mk`.
@@ -1018,7 +1019,7 @@ format = "via [e $version](bold red) "
## Google Cloud (`gcloud`)
-Le module `gcloud` affiche la configuration actuelle pour [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. Ceci est basé sur les fichiers `~/.config/gcloud/active_config` et `~/.config/gcloud/configurations/config_{CONFIG NAME}` et la variable d'environnement `CLOUDSDK_CONFIG`.
+The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
### Options
@@ -1079,7 +1080,7 @@ asia-northeast1 = "an1"
## Branche Git
-Le module `git_branch` affiche la branche active du dépôt dans votre répertoire courant.
+The `git_branch` module shows the active branch of the repo in your current directory.
### Options
@@ -1119,19 +1120,19 @@ truncation_symbol = ""
## Commit Git
-Le module `git_commit` affiche le hash du commit actuel ainsi que le tag (le cas échéant) du dépôt dans votre répertoire courant.
+The `git_commit` module shows the current commit hash and also the tag (if any) of the repo in your current directory.
### Options
-| Option | Défaut | Description |
-| -------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------- |
-| `commit_hash_length` | `7` | La longueur du hash affiché du commit git. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | Format du module. |
-| `style` | `"bold green"` | Le style du module. |
-| `only_detached` | `true` | Ne montrer le hash du commit qu'en mode `HEAD` détachée. |
-| `tag_disabled` | `true` | Désactive l'affichage des informations du tag dans le module `git_commit`. |
-| `tag_symbol` | `" 🏷 "` | Symbole préfixant les informations affichées concernant le tag |
-| `disabled` | `false` | Désactive le module `git_commit`. |
+| Option | Défaut | Description |
+| -------------------- | ---------------------------------- | -------------------------------------------------------------------------- |
+| `commit_hash_length` | `7` | La longueur du hash affiché du commit git. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | Format du module. |
+| `style` | `"bold green"` | Le style du module. |
+| `only_detached` | `true` | Ne montrer le hash du commit qu'en mode `HEAD` détachée. |
+| `tag_disabled` | `true` | Désactive l'affichage des informations du tag dans le module `git_commit`. |
+| `tag_symbol` | `" 🏷 "` | Symbole préfixant les informations affichées concernant le tag |
+| `disabled` | `false` | Désactive le module `git_commit`. |
### Variables
@@ -1154,7 +1155,7 @@ tag_symbol = "🔖 "
## État Git
-Le module `git_state` s'affichera dans les répertoires qui font partie d'un dépôt git, dans lesquels une opération est en cours, comme : _REBASING_, _BISECTING_, etc. S'il y a des informations de progression (par exemple, REBASING 3/10), ces informations seront également affichées.
+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.
### Options
@@ -1198,7 +1199,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
::: tip
-Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1234,7 +1235,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
## Statut Git
-Le module `git_status` affiche des symboles représentant l'état du dépôt dans votre répertoire courant.
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### Options
@@ -1245,42 +1246,43 @@ Le module `git_status` affiche des symboles représentant l'état du dépôt dan
| `ahead` | `"⇡"` | Le format de `ahead` |
| `behind` | `"⇣"` | Le format de `behind` |
| `diverged` | `"⇕"` | Le format de `diverged` |
-| `untracked` | `"?"` | Le format de `untracked` |
-| `stashed` | `"$"` | Le format de `stashed` |
-| `modified` | `"!"` | Le format de `modified` |
-| `staged` | `"+"` | Le format de `staged` |
-| `renamed` | `"»"` | Le format de `renamed` |
-| `deleted` | `"✘"` | Le format de `deleted` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
| `style` | `"bold green"` | Le style du module. |
-| `disabled` | `false` | Désactive le module `git_status`. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
-Les variables suivantes peuvent être utilisées pour la valeur de `format`:
+The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | -------------------------------------------------------------------------------------------- |
-| `all_status` | Raccourci pour `$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Affiche la chaîne formatée de `diverged`, `ahead` ou `behind` selon l'état actuel du dépôt |
-| `conflicted` | Affiche `conflicted` lorsque la branche courante a des conflits de fusion. |
-| `untracked` | Affiche `untracked` lorsqu'il y a des fichiers non suivis dans le répertoire de travail. |
-| `stashed` | Affiche `stashed` lorsqu'une remise existe pour le dépôt local. |
-| `modified` | Affiche `modified` lorsqu'il y a des fichiers modifiés dans le répertoire de travail. |
-| `staged` | Affiche `staged` lorsqu'un nouveau fichier a été ajouté à la zone de validation. |
-| `renamed` | Affiche `renamed` lorsqu'un fichier renommé a été ajouté à la zone de validation. |
-| `deleted` | Affiche `deleted` lorsque la suppression d'un fichier a été ajoutée à la zone de validation. |
-| style\* | Reflète la valeur de l'option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Raccourci pour `$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Affiche `conflicted` lorsque la branche courante a des conflits de fusion. |
+| `untracked` | Affiche `untracked` lorsqu'il y a des fichiers non suivis dans le répertoire de travail. |
+| `stashed` | Affiche `stashed` lorsqu'une remise existe pour le dépôt local. |
+| `modified` | Affiche `modified` lorsqu'il y a des fichiers modifiés dans le répertoire de travail. |
+| `staged` | Affiche `staged` lorsqu'un nouveau fichier a été ajouté à la zone de validation. |
+| `renamed` | Affiche `renamed` lorsqu'un fichier renommé a été ajouté à la zone de validation. |
+| `deleted` | Affiche `deleted` lorsque la suppression d'un fichier a été ajoutée à la zone de validation. |
+| 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
-Les variables suivantes peuvent être utilisées pour la valeur de `diverged`:
+The following variables can be used in `diverged`:
| Variable | Description |
| -------------- | ------------------------------------------------- |
| `ahead_count` | Nombre de commits en avance sur la branche suivie |
| `behind_count` | Nombre de commits en retard sur la branche suivie |
-Les variables suivantes peuvent êtres utilisées dans `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` et `deleted`:
+The following variables can be used in `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`:
| Variable | Description |
| -------- | --------------------------------------- |
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1304,7 +1307,7 @@ renamed = "👅"
deleted = "🗑"
```
-Afficher le nombre de commits en avance/en retard par rapport à la branche suivie
+Show ahead/behind count of the branch being tracked
```toml
# ~/.config/starship.toml
@@ -1317,7 +1320,7 @@ behind = "⇣${count}"
## Golang
-Le module `golang` montre la version actuellement installée de [Golang](https://golang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `golang` module shows the currently installed version of [Golang](https://golang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `go.mod`
- Le répertoire courant contient un fichier `go.sum`
@@ -1362,7 +1365,7 @@ format = "via [🏎💨 $version](bold cyan) "
## Helm
-Le module `helm` montre la version actuellement installée de [Helm](https://helm.sh/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `helm` module shows the currently installed version of [Helm](https://helm.sh/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `helmfile.yaml`
- Le répertoire courant contient un fichier `Chart.yml`
@@ -1401,7 +1404,7 @@ format = "via [⎈ $version](bold white) "
## Nom d'hôte
-Le module `hostname` affiche le nom d'hôte du système.
+The `hostname` module shows the system hostname.
### Options
@@ -1436,7 +1439,7 @@ disabled = false
## Java
-Le module `java` affiche la version actuellement installée de [Java](https://www.oracle.com/java/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire actuel contient un fichier `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `.deps.edn`, `project.clj`, ou `build.boot`
- Le répertoire actuel contient un fichier avec l'extension `.java`, `.class`, `. gradle`, `.jar`, `.clj`, ou `.cljc`
@@ -1475,7 +1478,7 @@ symbol = "🌟 "
## Jobs
-Le module `jobs` affiche le nombre de tâches en cours d'exécution. Le module ne sera affiché que s'il y a des tâches de fond. Le module affichera le nombre de tâches en cours d'exécution s'il y a plus d'une tâche, ou plus que la valeur `threshold`, si elle existe. Si `threshold` est définie à 0, alors le module s'affichera également lorsqu'il n'y a pas de tâches de fond en cours.
+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. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
::: warning
@@ -1515,7 +1518,7 @@ threshold = 4
## Julia
-Le module `julia` affiche la version actuellement installée de [Julia](https://julialang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `julia` module shows the currently installed version of [Julia](https://julialang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `Project.toml`
- Le répertoire courant contient un fichier `Manifest.toml`
@@ -1555,7 +1558,7 @@ symbol = "∴ "
## Kotlin
-Le module `kotlin` affiche la version actuellement installée de [Kotlin](https://kotlinlang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `kotlin` module shows the currently installed version of [Kotlin](https://kotlinlang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `.kt` ou `.kts`
@@ -1602,11 +1605,11 @@ kotlin_binary = "kotlinc"
## Kubernetes
-Affiche le nom du [contexte Kubernets](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) actuel et, si défini, l'espace de noms du fichier kubeconfig. L'espace de noms doit être défini dans le fichier kubeconfig, cela peut être fait via `kubectl config set-context starship-cluster --namespace astronaut`. Si la variable d'environnement `$KUBECONFIG` est définie, le module l'utilisera sinon il utilisera le fichier `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
-Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1641,11 +1644,34 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Saut de ligne
-Le module `line_break` sépare l'invite en deux lignes.
+The `line_break` module separates the prompt into two lines.
### Options
@@ -1664,7 +1690,7 @@ disabled = true
## Lua
-Le module `lua` affiche la version actuellement installée de [Lua](http://www.lua.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `lua` module shows the currently installed version of [Lua](http://www.lua.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `.lua-version`
- Le répertoire courant contient un répertoire `lua`
@@ -1705,13 +1731,13 @@ format = "via [🌕 $version](bold blue) "
## Utilisation mémoire
-Le module `memory_usage` affiche la mémoire système actuelle et l'utilisation de swap.
+The `memory_usage` module shows current system memory and swap usage.
-Par défaut, l'utilisation du swap est affichée si le swap total du système n'est pas nul.
+By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1736,7 +1762,7 @@ Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur
| 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 \*\* : Les informations sur le fichier SWAP ne sont affichées que si détectées sur le système actuel
+\*: This variable can only be used as a part of a style string \*\*: The SWAP file information is only displayed if detected on the current system
### Exemple
@@ -1752,7 +1778,7 @@ style = "bold dimmed green"
## Branche Mercurial
-Le module `hg_branch` affiche la branche active du dépôt dans votre répertoire courant.
+The `hg_branch` module shows the active branch of the repo in your current directory.
### Options
@@ -1788,7 +1814,7 @@ truncation_symbol = ""
## Nim
-Le module `nim` affiche la version actuellement installée de [Nim](https://nim-lang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `nim.cfg`
- Le répertoire actuel contient un fichier avec l'extension `.nim`
@@ -1868,7 +1894,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## Node.js
-Le module `nodejs` affiche la version actuellement installée de [Node.js](https://nodejs.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `package.json`
- Le répertoire courant contient un fichier `.node-version`
@@ -1912,7 +1938,7 @@ format = "via [🤖 $version](bold green) "
## OCaml
-Le module `ocaml` affiche la version actuellement installée de [OCaml](https://ocaml.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `ocaml` module shows the currently installed version of [OCaml](https://ocaml.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier avec l'extension `.opam` ou le répertoire `_opam`
- Le répertoire courant contient un répertoire `esy.lock`
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Défaut | Description |
-| ----------------- | --------------------------------- | --------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | Format du module. |
-| `symbol` | `"📦 "` | Le symbole utilisé avant d'afficher la version du paquet. |
-| `style` | `"bold 208"` | Le style du module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Désactive le module `package`. |
+| Option | Défaut | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------------------------ |
+| `format` | `"is [$symbol$version]($style) "` | Format du module. |
+| `symbol` | `"📦 "` | Le symbole utilisé avant d'afficher la version du paquet. |
+| `version_format` | `"v${raw}"` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | Le style du module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2042,7 +2070,7 @@ format = "via [🎁 $version](208 bold) "
## Perl
-Le module `perl` affiche la version actuellement installée de [Perl](https://www.perl.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `Makefile.PL` ou `Build.PL`
- Le répertoire courant contient un fichier `cpanfile` ou `cpanfile.snapshot`
@@ -2082,7 +2110,7 @@ format = "via [🦪 $version]($style) "
## PHP
-Le module `php` affiche la version actuellement installée de [PHP](https://www.php.net/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `php` module shows the currently installed version of [PHP](https://www.php.net/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `composer.json`
- Le répertoire courant contient un fichier `.php-version`
@@ -2122,7 +2150,7 @@ format = "via [🔹 $version](147 bold) "
## PureScript
-Le module `purescript` affiche la version actuellement installée de [PureScript](https://www.purescript.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `spago.dhall`
- Le répertoire actuel contient un fichier avec l'extension `.purs`
@@ -2161,7 +2189,7 @@ format = "via [$symbol$version](bold white)"
## Python
-Le module `python` affiche la version actuellement installée de [Python](https://www.python.org/) ainsi que la version d'[environnement virtuel Python](https://docs.python.org/tutorial/venv.html) si il y en a un d'activé.
+The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
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`.
@@ -2187,7 +2215,7 @@ Par défaut le module sera activé si au moins l'une des conditions suivantes es
| `style` | `"yellow bold"` | Le style du module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Quelles extensions devraient activer ce module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Quels fichiers devraient activer ce module |
| `detect_folders` | `[]` | Quels dossiers devraient activer ce module |
@@ -2225,7 +2253,7 @@ pyenv_version_name = true
# ~/.config/starship.toml
[python]
-# N'utilisez que le binaire `python3` pour obtenir la version.
+# Only use the `python3` binary to get the version.
python_binary = "python3"
```
@@ -2233,7 +2261,7 @@ python_binary = "python3"
# ~/.config/starship.toml
[python]
-# Ne pas déclencher pour les fichiers avec l'extension py
+# Don't trigger for files with the py extension
detect_extensions = []
```
@@ -2241,11 +2269,10 @@ detect_extensions = []
# ~/.config/starship.toml
[python]
-# Affiche la version de python depuis l'intérieur d'un venv local.
+# Display the version of python from inside a local venv.
#
-# Notez que cela ne fonctionnera que lorsque le venv est à l'intérieur du projet,
-# et uniquement lorsque vous vous situez dans le répertoire contenant le dossier du venv
-# mais peut-être que c'est suffisant?
+# Note this will only work when the venv is inside the project and it will only
+# work in the directory that contains the venv dir but maybe this is ok?
python_binary = ["./venv/bin/python", "python", "python3", "python2"]
```
@@ -2293,7 +2320,7 @@ format = "with [📐 $version](blue bold) "
## Red
-Par défaut, le module `red` affiche la version actuellement installée de [Red](https://www.red-lang.org/). Le module est affiché si l'une de ces conditions est remplie :
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- Le répertoire actuel contient un fichier avec l'extension `.red` ou `.reds`
@@ -2331,7 +2358,7 @@ symbol = "🔴 "
## Ruby
-Par défaut, le module `ruby` affiche la version actuellement installée de [Ruby](https://www.ruby-lang.org/). Le module est affiché si l'une de ces conditions est remplie :
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier `Gemfile`
- Le répertoire courant contient un fichier `.ruby-version`
@@ -2371,7 +2398,7 @@ symbol = "🔺 "
## Rust
-Par défaut, le module `rust` affiche la version actuellement installée de [Rust](https://www.rust-lang.org/). Le module est affiché si l'une de ces conditions est remplie :
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier `Cargo.toml`
- Le répertoire actuel contient un fichier avec l'extension `.rs`
@@ -2410,7 +2437,7 @@ format = "via [⚙️ $version](red bold)"
## Scala
-Le module `scala` affiche la version actuellement installée de [Scala](https://www.scala-lang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `build.sbt`, `.scalaenv` ou `.sbtenv`
- Le répertoire actuel contient un fichier avec l'extension `.scala` ou `.sbt`
@@ -2454,7 +2481,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2469,9 +2496,10 @@ Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur
| `ion_indicator` | `ion` | Une chaîne de format utilisée pour représenter ion. |
| `elvish_indicator` | `esh` | Une chaîne de format utilisée pour représenter elvish. |
| `tcsh_indicator` | `tsh` | Une chaîne de format utilisée pour représenter tcsh. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | Format du module. |
-| `disabled` | `true` | Désactive le module `shell`. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -2501,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | Format du module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | Le style du module. |
| `disabled` | `true` | Désactive le module `shlvl`. |
@@ -2565,7 +2593,7 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2573,31 +2601,36 @@ Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur
### Options
-| Option | Défaut | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold green"` | Le style du module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Désactiver le module `status`. |
+| Option | Défaut | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold green"` | Le style du module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Exemple | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Reflète la valeur de l'option `symbol` |
-| style\* | | Reflète la valeur de l'option `style` |
+| Variable | Exemple | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
@@ -2618,7 +2651,7 @@ disabled = false
## Swift
-Par défaut, le module `swift` affiche la version actuellement installée de [Swift](https://swift.org/). Le module est affiché si l'une de ces conditions est remplie :
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier `Package.swift`
- Le répertoire actuel contient un fichier avec l'extension `.swift`
@@ -2696,7 +2729,7 @@ Par défaut le module sera activé si au moins l'une des conditions suivantes es
### Exemple
-#### Avec la version de Terraform
+#### With Terraform Version
```toml
# ~/.config/starship.toml
@@ -2705,7 +2738,7 @@ Par défaut le module sera activé si au moins l'une des conditions suivantes es
format = "[🏎💨 $version$workspace]($style) "
```
-#### Sans la version de Terraform
+#### Without Terraform version
```toml
# ~/.config/starship.toml
@@ -2716,11 +2749,11 @@ format = "[🏎💨 $workspace]($style) "
## Date et Heure
-Le module `time` affiche l'heure actuelle **localement**. La valeur de `format` est utilisée par le package [`chrono`](https://crates.io/crates/chrono) pour contrôler la façon dont l'heure est affichée. Consultez la [doc de chrono strftime](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) pour découvrir les options disponibles.
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur `false` dans votre fichier de configuration.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2736,7 +2769,7 @@ Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur
| `disabled` | `true` | Désactiver le module `time`. |
| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Sinon, il est défini comme `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Variables
@@ -2762,7 +2795,7 @@ time_range = "10:00:00-14:00:00"
## Nom d'utilisateur
-Le module `username` affiche le nom d'utilisateur de l'utilisateur actif. Le module est affiché si l'une de ces conditions est remplie :
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- L'utilisateur courant est root
- L'utilisateur courant est différent de celui connecté
@@ -2807,7 +2840,7 @@ show_always = true
## Vagrant
-Le module `vagrant` affiche la version actuellement installée de [Vagrant](https://www.vagrantup.com/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
+The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Par défaut le module sera activé si au moins l'une des conditions suivantes est remplie:
- Le répertoire courant contient un fichier `Vagrantfile`
@@ -2845,7 +2878,7 @@ format = "via [⍱ $version](bold white) "
## VLang
-Le module `vlang` vous montre votre version de V actuellement installée. Par défaut, le module sera affiché si l'une des conditions suivantes est remplie :
+The `vlang` module shows you your currently installed version of V. By default the module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier avec l'extension `.v`
- Le répertoire courant contient un fichier `v.mod`, `vpkg.json` ou `.vpkg-lock.json`
@@ -2911,7 +2944,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-Par défaut, le module `zig` affiche la version actuellement installée de [Zig](https://ziglang.org/). Le module est affiché si l'une de ces conditions est remplie :
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- Le répertoire courant contient un fichier `.zig`
@@ -3004,9 +3037,9 @@ The order in which custom modules are shown can be individually set by including
\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style
-#### Commandes shell personnalisées
+#### Custom command shell
-`shell` accepte une liste de chaînes non vide, où:
+`shell` accepts a non-empty list of strings, where:
- La première chaîne est le chemin vers le shell à utiliser pour exécuter la commande.
- Other following arguments are passed to the shell.
@@ -3039,8 +3072,8 @@ Automatic detection of shells and proper parameters addition are currently imple
# ~/.config/starship.toml
[custom.foo]
-command = "echo foo" # affiche la sortie de la commande
-files = ["foo"] # ajoute un filtre
+command = "echo foo" # shows output of command
+files = ["foo"] # can specify filters
when = """ test "$HOME" == "$PWD" """
format = " transcending [$output]($style)"
diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md
index 6c59b174..fb6783b5 100644
--- a/docs/fr-FR/guide/README.md
+++ b/docs/fr-FR/guide/README.md
@@ -264,9 +264,20 @@
```
+ #### Xonsh
+
+ Ajouter ce qui suit à la fin de `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **Avertissement** Cela changera dans le futur. Seule la version nu v0.33 ou supérieure est prise en charge. Ajoutez ce qui suit à votre fichier de configuration 'nu'. Vous pouvez vérifier l'emplacement de ce fichier en exécutant `config path` dans 'nu'.
```toml
startup = [
diff --git a/docs/fr-FR/presets/README.md b/docs/fr-FR/presets/README.md
index 87e5a2d3..457e4f7d 100644
--- a/docs/fr-FR/presets/README.md
+++ b/docs/fr-FR/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Configuration
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/it-IT/README.md b/docs/it-IT/README.md
index 65a741eb..3c3fc90b 100644
--- a/docs/it-IT/README.md
+++ b/docs/it-IT/README.md
@@ -18,7 +18,7 @@ features:
footer: Licenza ISC | Copyright © 2019-present Starship Collaboratori
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Installazione rapida disponibile per Bash, Fish, ZSH, Ion e PowerShell.
+description: Starship è il prompt minimalista, super veloce ed estremamente personalizzabile per qualsiasi shell! Mostra le informazioni di cui hai bisogno, rimanendo elegante e minimale. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
eval $(starship init ion)
```
+
#### Elvish
::: warning È supportato solo elvish v0.15 o superiore. :::
@@ -139,7 +140,8 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship è il prompt minimalista, super veloce ed estremamente per
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/it-IT/advanced-config/README.md b/docs/it-IT/advanced-config/README.md
index 9308baa5..6e74418c 100644
--- a/docs/it-IT/advanced-config/README.md
+++ b/docs/it-IT/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Le stringhe di stile sono un elenco di parole, separate da spazi bianchi. Le parole non sono sensibili alle maiuscole (cioè `grassetto` e `BoLd` sono considerate la stessa stringa). Ogni parola può essere una delle seguenti:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/it-IT/config/README.md b/docs/it-IT/config/README.md
index 4a272c9e..59aa29bf 100644
--- a/docs/it-IT/config/README.md
+++ b/docs/it-IT/config/README.md
@@ -51,33 +51,33 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
**Modulo**: Un componente nel prompt che dà informazioni basate su informazioni contestuali dal tuo sistema operativo. Ad esempio, il modulo "nodejs" mostra la versione di Node.js attualmente installata sul computer, se la directory corrente è un progetto Node.js.
-**Variable**: Sotto-componenti più piccoli che contengono informazioni fornite dal modulo. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
+**Variable**: Sotto-componenti più piccoli che contengono informazioni fornite dal modulo. Per esempio, la variabile "version" nel modulo "nodejs" contiene la versione corrente di Node.js.
-By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix.
+Per convenzione, la maggior parte dei moduli ha un prefisso di colore predefinito del terminale (ad esempio `via` in "nodejs") e uno spazio vuoto come suffisso.
-### Format Strings
+### Formato Stringhe
-Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string.
+Le stringhe di formato sono il formato con cui un modulo stampa tutte le sue variabili. La maggior parte dei moduli ha una voce chiamata `formato` che configura il formato di visualizzazione del modulo. È possibile utilizzare testi, variabili e gruppi di testo in una stringa di formato.
#### Variable
-A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`.
+Una variabile contiene un simbolo `$` seguito dal nome della variabile. Il nome di una variabile contiene solo lettere, numeri e `_`.
-For example:
+Per esempio:
- `$version` is a format string with a variable named `version`.
- `$git_branch$git_commit` is a format string with two variables named `git_branch` and `git_commit`.
- `$git_branch $git_commit` has the two variables separated with a space.
-#### Text Group
+#### Gruppo Testo
-A text group is made up of two different parts.
+Un gruppo di testo è composto da due parti diverse.
-The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
+La prima parte, che è racchiusa tra `[]`, è una [format string](#format-strings). È possibile aggiungere testi, variabili o anche gruppi annidati di testo.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+Nella seconda parte, che è racchiusa tra `()`, è un [style string](#style-strings). Questo può essere usato stile la prima parte.
-For example:
+Per esempio:
- `[on](red bold)` will print a string `on` with bold text colored red.
- `[⌘ $version](bold green)` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
@@ -100,7 +100,7 @@ Note that what styling looks like will be controlled by your terminal emulator.
A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty.
-For example:
+Per esempio:
- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
- `(some text)` will always show nothing since there are no variables wrapped in the braces.
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Options
-| Option | Default | Description |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | The style for the module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | Default | Description |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | The style for the module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1245,6 +1246,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1258,18 +1260,18 @@ The `git_status` module shows symbols representing the state of the repo in your
The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Default | Description |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | The style for the module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Option | Default | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | The style for the module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | The style for the module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2468,6 +2496,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2572,31 +2601,36 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | The style for the module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | Default | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | The style for the module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Example | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
diff --git a/docs/it-IT/guide/README.md b/docs/it-IT/guide/README.md
index 691d9167..28a8172e 100644
--- a/docs/it-IT/guide/README.md
+++ b/docs/it-IT/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/it-IT/presets/README.md b/docs/it-IT/presets/README.md
index 2b75c59d..21a8d714 100644
--- a/docs/it-IT/presets/README.md
+++ b/docs/it-IT/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Configurazione
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/ja-JP/README.md b/docs/ja-JP/README.md
index a55d42fa..9785d7dc 100644
--- a/docs/ja-JP/README.md
+++ b/docs/ja-JP/README.md
@@ -18,7 +18,7 @@ features:
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Bash, Fish, ZSH, Ion, PowerShellへ簡単にインストール出来ます。
+description: Starship はミニマルで、非常に高速で、カスタマイズ性の高い、あらゆるシェルのためのプロンプトです! ミニマルかつ洗練された形で、あなたに必要な情報を表示します。 Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
eval $(starship init ion)
```
+
#### Elvish
::: warning elvish v0.15以上のみサポートされています。 :::
@@ -139,7 +140,8 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/ja-JP/advanced-config/README.md b/docs/ja-JP/advanced-config/README.md
index 19c32d78..cb6ea0c5 100644
--- a/docs/ja-JP/advanced-config/README.md
+++ b/docs/ja-JP/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
スタイル文字列は空白で区切られた単語のリストです。 大文字小文字を区別しません(例えば、 `bold` と`BoLd` は同じだとみなされます)。 それぞれ以下のいずれか一つが該当します。
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md
index acdac879..195372cd 100644
--- a/docs/ja-JP/config/README.md
+++ b/docs/ja-JP/config/README.md
@@ -936,6 +936,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### オプション
@@ -1019,7 +1020,7 @@ format = "via [e $version](bold red) "
## Google Cloud (`gcloud`)
-`gcloud` モジュールは、 [`gcloud`](https://cloud.google.com/sdk/gcloud) CLIの現在の設定が表示されます。 これは `~/.config/gcloud/active_config` ファイルと `~/.config/gcloud/configurations/config_{CONFIG NAME}` ファイルと `CLOUDSDK_CONFIG` 環境変数に基づきます。
+The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
### オプション
@@ -1080,7 +1081,7 @@ asia-northeast1 = "an1"
## Git Branch
-`git_branch`モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを表示します。
+The `git_branch` module shows the active branch of the repo in your current directory.
### オプション
@@ -1120,19 +1121,19 @@ truncation_symbol = ""
## Git Commit
-`git_commit` モジュールは、カレントディレクトリのリポジトリの現在のコミットハッシュとタグ (もしあれば) を表示します。
+The `git_commit` module shows the current commit hash and also the tag (if any) of the repo in your current directory.
### オプション
-| オプション | デフォルト | 説明 |
-| -------------------- | ------------------------------------------------------ | ----------------------------------------- |
-| `commit_hash_length` | `7` | 表示される git コミットハッシュの長さ。 |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | moduleのフォーマットです。 |
-| `style` | `"bold green"` | モジュールのスタイルです。 |
-| `only_detached` | `true` | detached `HEAD` 状態のときのみ git コミットハッシュを表示する |
-| `tag_disabled` | `true` | `git_commit` モジュールのタグ情報の表示を無効にする。 |
-| `tag_symbol` | `" 🏷 "` | 表示される情報の前に追加されるタグシンボル |
-| `disabled` | `false` | `git_commit` モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| -------------------- | ---------------------------------- | ----------------------------------------- |
+| `commit_hash_length` | `7` | 表示される git コミットハッシュの長さ。 |
+| `format` | `"[\\($hash$tag\\)]($style) "` | moduleのフォーマットです。 |
+| `style` | `"bold green"` | モジュールのスタイルです。 |
+| `only_detached` | `true` | detached `HEAD` 状態のときのみ git コミットハッシュを表示する |
+| `tag_disabled` | `true` | `git_commit` モジュールのタグ情報の表示を無効にする。 |
+| `tag_symbol` | `" 🏷 "` | 表示される情報の前に追加されるタグシンボル |
+| `disabled` | `false` | `git_commit` モジュールを無効にします。 |
### 変数
@@ -1155,7 +1156,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.
### オプション
@@ -1199,7 +1200,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1235,42 +1236,43 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
## Git Status
-`git_status`モジュールは、現在のディレクトリのリポジトリの状態を表すシンボルを表示します。
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### オプション
-| オプション | デフォルト | 説明 |
-| ------------ | ----------------------------------------------- | ------------------------- |
-| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | `git_status` のデフォルトフォーマット |
-| `conflicted` | `"="` | このブランチにはマージの競合があります。 |
-| `ahead` | `"⇡"` | `ahead`のフォーマット |
-| `behind` | `"⇣"` | `behind`のフォーマット |
-| `diverged` | `"⇕"` | `diverged`のフォーマット |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"»"` | The format of `renamed` |
-| `deleted` | `"✘"` | The format of `deleted` |
-| `style` | `"bold red"` | モジュールのスタイルです。 |
-| `disabled` | `false` | `git_status`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------ | ----------------------------------------------- | --------------------------------- |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | `git_status` のデフォルトフォーマット |
+| `conflicted` | `"="` | このブランチにはマージの競合があります。 |
+| `ahead` | `"⇡"` | `ahead`のフォーマット |
+| `behind` | `"⇣"` | `behind`のフォーマット |
+| `diverged` | `"⇕"` | `diverged`のフォーマット |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
+| `style` | `"bold red"` | モジュールのスタイルです。 |
+| `disabled` | `false` | Disables the `git_status` module. |
### 変数
-` format` 内では以下の変数が利用できます。
+The following variables can be used in `format`:
-| 変数 | 説明 |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | オプション `style` の値をミラーする |
+| 変数 | 説明 |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
@@ -1297,6 +1299,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1402,7 +1405,7 @@ format = "via [⎈ $version](bold white) "
## Hostname
-`hostname`モジュールには、システムのホスト名が表示されます。
+The `hostname` module shows the system hostname.
### オプション
@@ -1476,7 +1479,7 @@ symbol = "🌟 "
## ジョブ
-`jobs`モジュールには、実行中のジョブの現在の数が表示されます。 このモジュールは、実行中のバックグラウンドジョブがある場合にのみ表示されます。 1つ以上のジョブがある、または`threshold`に指定した値以上にジョブがある場合は実行中のジョブの数を表示します。 If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
+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. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
::: warning
@@ -1556,7 +1559,7 @@ symbol = "∴ "
## Kotlin
-`kotlin`モジュールは、現在インストールされている[Kotlin](https://kotlinlang.org/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+The `kotlin` module shows the currently installed version of [Kotlin](https://kotlinlang.org/). デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
- カレントディレクトリに`.kt`もしくは`.kts`ファイルが含まれている
@@ -1603,11 +1606,11 @@ kotlin_binary = "kotlinc"
## Kubernetes
-Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. namespace は kubconfigで設定する必要があります。設定は、`kubectl config set-context starship-cluster --namespace astronaut` といったコマンド行えます。 `$KUBECONFIG` 環境変数が設定されている場合、このモジュールは環境変数を優先して使用し、`~/.kube/config` は使用しません。
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1642,11 +1645,34 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
-`line_break`モジュールは、プロンプトを2行に分割します。
+The `line_break` module separates the prompt into two lines.
### オプション
@@ -1706,13 +1732,13 @@ format = "via [🌕 $version](bold blue) "
## メモリ使用量
-`memory_usage` モジュールは、現在のシステムメモリとスワップ使用量を示します。
+The `memory_usage` module shows current system memory and swap usage.
-デフォルトでは、システムスワップの合計がゼロ以外の場合、スワップ使用量が表示されます。
+By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1753,7 +1779,7 @@ style = "bold dimmed green"
## Mercurial Branch
-` hg_branch `モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを示します。
+The `hg_branch` module shows the active branch of the repo in your current directory.
### オプション
@@ -1831,7 +1857,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. このモジュールは、nixシェル環境内にあるときに表示されます。
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### オプション
@@ -1995,12 +2021,13 @@ symbol = "☁️ "
## パッケージのバージョン
-`package`モジュールは、現在のディレクトリがパッケージのリポジトリである場合に表示され、現在のバージョンが表示されます。 The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2018,9 +2045,10 @@ symbol = "☁️ "
| ----------------- | --------------------------------- | --------------------------------------------------------- |
| `format` | `"is [$symbol$version]($style) "` | moduleのフォーマットです。 |
| `symbol` | `"📦 "` | パッケージのバージョンを表示する前に使用される記号です。 |
+| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
| `style` | `"bold 208"` | モジュールのスタイルです。 |
| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | `package`モジュールを無効にします。 |
+| `disabled` | `false` | Disables the `package` module. |
### 変数
@@ -2164,7 +2192,7 @@ format = "via [$symbol$version](bold white)"
The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
-`pyenvversionname` が `true` に設定されている場合 、pyenv でのバージョン名が表示されます 。 そうでなければ、`python --version` を元にバージョン番号を表示します。
+If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
@@ -2188,7 +2216,7 @@ The `python` module shows the currently installed version of [Python](https://ww
| `style` | `"yellow bold"` | モジュールのスタイルです。 |
| `pyenv_version_name` | `false` | pyenvを使用してPythonバージョンを取得します |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
@@ -2293,7 +2321,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2331,7 +2359,7 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- カレントディレクトリに`Gemfile`ファイルが含まれている
- The current directory contains a `.ruby-version` file
@@ -2371,7 +2399,7 @@ symbol = "🔺 "
## Rust
-デフォルトでは`rust`モジュールは現在インストールされている[Rust](https://www.rust-lang.org/)のバージョンを表示します。 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- カレントディレクトリに`Cargo.toml`ファイルが含まれている
- カレントディレクトリに`.rs`の拡張子のファイルが含まれている
@@ -2454,7 +2482,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2469,6 +2497,7 @@ The `shell` module shows an indicator for currently used shell.
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | moduleのフォーマットです。 |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2501,7 +2530,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | moduleのフォーマットです。 |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | モジュールのスタイルです。 |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2565,7 +2594,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.
:::
@@ -2573,31 +2602,36 @@ The `status` module displays the exit code of the previous command. The module w
### オプション
-| オプション | デフォルト | 説明 |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | モジュールのスタイルです。 |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| オプション | デフォルト | 説明 |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | モジュールのスタイルです。 |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### 変数
-| 変数 | 設定例 | 説明 |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | オプション `記号` の値をミラーする |
-| style\* | | オプション `style` の値をミラーする |
+| 変数 | 設定例 | 説明 |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| symbol | | オプション `記号` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
\*: この変数はスタイル文字列の一部としてのみ使用できます
@@ -2618,7 +2652,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2716,11 +2750,11 @@ format = "[🏎💨 $workspace]($style) "
## Time
-`time`モジュールは、現在の**現地**時間を示します。 `format`設定は、時間の表示方法を制御するために[`chrono`](https://crates.io/crates/chrono)クレートによって使用されます。 使用可能なオプションを確認するには、[chrono strftimeのドキュメント](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)をご覧ください。
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2736,7 +2770,7 @@ format = "[🏎💨 $workspace]($style) "
| `disabled` | `true` | `time`モジュールを無効にします。 |
| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. それ以外の場合、デフォルトは`"%T"`です。 Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### 変数
@@ -2762,7 +2796,7 @@ time_range = "10:00:00-14:00:00"
## ユーザー名
-`username`モジュールには、アクティブなユーザーのユーザー名が表示されます。 次の条件のいずれかが満たされると、モジュールが表示されます。
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- カレントユーザーがroot
- カレントユーザーが、ログインしているユーザーとは異なる
@@ -2911,7 +2945,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます。
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md
index 1fa76d2e..ce701531 100644
--- a/docs/ja-JP/guide/README.md
+++ b/docs/ja-JP/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/ja-JP/presets/README.md b/docs/ja-JP/presets/README.md
index 862d0dc7..6c3c4590 100644
--- a/docs/ja-JP/presets/README.md
+++ b/docs/ja-JP/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### 設定
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/ko-KR/README.md b/docs/ko-KR/README.md
index c6f9702f..b4a56a12 100644
--- a/docs/ko-KR/README.md
+++ b/docs/ko-KR/README.md
@@ -18,7 +18,7 @@ features:
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.
+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, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
+
#### Elvish
::: 주의 elvish v0.15 이상만 지원. :::
@@ -139,7 +140,8 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/ko-KR/advanced-config/README.md b/docs/ko-KR/advanced-config/README.md
index 28b9845d..0d59c601 100644
--- a/docs/ko-KR/advanced-config/README.md
+++ b/docs/ko-KR/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md
index 55ecbba6..49d98bc4 100644
--- a/docs/ko-KR/config/README.md
+++ b/docs/ko-KR/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Options
-| Option | Default | Description |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | The style for the module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | Default | Description |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | The style for the module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1245,6 +1246,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1258,18 +1260,18 @@ The `git_status` module shows symbols representing the state of the repo in your
The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Default | Description |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | The style for the module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Option | Default | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | The style for the module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | The style for the module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2468,6 +2496,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2572,31 +2601,36 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | The style for the module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | Default | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | The style for the module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Example | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
diff --git a/docs/ko-KR/guide/README.md b/docs/ko-KR/guide/README.md
index 04513ac1..64eab34f 100644
--- a/docs/ko-KR/guide/README.md
+++ b/docs/ko-KR/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/ko-KR/presets/README.md b/docs/ko-KR/presets/README.md
index 123974b2..c6cc6f60 100644
--- a/docs/ko-KR/presets/README.md
+++ b/docs/ko-KR/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Configuration
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/nl-NL/README.md b/docs/nl-NL/README.md
index 6479d20d..6b4bbaef 100644
--- a/docs/nl-NL/README.md
+++ b/docs/nl-NL/README.md
@@ -18,7 +18,7 @@ features:
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.
+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, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
+
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
@@ -139,7 +140,8 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/nl-NL/advanced-config/README.md b/docs/nl-NL/advanced-config/README.md
index 28b9845d..0d59c601 100644
--- a/docs/nl-NL/advanced-config/README.md
+++ b/docs/nl-NL/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md
index 55ecbba6..49d98bc4 100644
--- a/docs/nl-NL/config/README.md
+++ b/docs/nl-NL/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Options
-| Option | Default | Description |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | The style for the module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | Default | Description |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | The style for the module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1245,6 +1246,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1258,18 +1260,18 @@ The `git_status` module shows symbols representing the state of the repo in your
The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Default | Description |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | The style for the module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Option | Default | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | The style for the module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | The style for the module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2468,6 +2496,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2572,31 +2601,36 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | The style for the module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | Default | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | The style for the module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Example | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
diff --git a/docs/nl-NL/guide/README.md b/docs/nl-NL/guide/README.md
index a89e9e59..5641182f 100644
--- a/docs/nl-NL/guide/README.md
+++ b/docs/nl-NL/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/nl-NL/presets/README.md b/docs/nl-NL/presets/README.md
index 123974b2..c6cc6f60 100644
--- a/docs/nl-NL/presets/README.md
+++ b/docs/nl-NL/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Configuration
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/pl-PL/README.md b/docs/pl-PL/README.md
index 6479d20d..6b4bbaef 100644
--- a/docs/pl-PL/README.md
+++ b/docs/pl-PL/README.md
@@ -18,7 +18,7 @@ features:
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.
+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, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
+
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
@@ -139,7 +140,8 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/pl-PL/advanced-config/README.md b/docs/pl-PL/advanced-config/README.md
index 28b9845d..0d59c601 100644
--- a/docs/pl-PL/advanced-config/README.md
+++ b/docs/pl-PL/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md
index 55ecbba6..49d98bc4 100644
--- a/docs/pl-PL/config/README.md
+++ b/docs/pl-PL/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Options
-| Option | Default | Description |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | The style for the module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | Default | Description |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | The style for the module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1245,6 +1246,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1258,18 +1260,18 @@ The `git_status` module shows symbols representing the state of the repo in your
The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Default | Description |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | The style for the module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Option | Default | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | The style for the module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | The style for the module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2468,6 +2496,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2572,31 +2601,36 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | The style for the module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | Default | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | The style for the module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Example | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
diff --git a/docs/pl-PL/guide/README.md b/docs/pl-PL/guide/README.md
index a89e9e59..5641182f 100644
--- a/docs/pl-PL/guide/README.md
+++ b/docs/pl-PL/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/pl-PL/presets/README.md b/docs/pl-PL/presets/README.md
index 123974b2..c6cc6f60 100644
--- a/docs/pl-PL/presets/README.md
+++ b/docs/pl-PL/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Configuration
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/pt-BR/README.md b/docs/pt-BR/README.md
index b4681948..1ffda297 100644
--- a/docs/pt-BR/README.md
+++ b/docs/pt-BR/README.md
@@ -18,7 +18,7 @@ features:
footer: Licenciado pelo ISC | Todos os direitos reservados © 2019-Presente | Contribuidores Starship
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
-description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, Ion e Powershell.
+description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, ION, Tcsh, Elvish, Nu, Xonsh and PowerShell.
---
@@ -116,6 +116,7 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
eval $(starship init ion)
```
+
#### Elvish
::: Atenção Apenas a versão v0.15 ou superior do elvish é suportada. :::
@@ -139,9 +140,10 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
eval `starship init tcsh`
```
- #### Nushell
- ::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ #### Nushell
+
+ ::: Atenção Isto vai mudar no futuro. Apenas a versão v0.33 do nu ou superior é suportada. Adicione o seguinte no seu arquivo de configuração nu. Você pode verificar o local deste arquivo rodando `config path` in nu.
```toml
startup = [
@@ -151,3 +153,14 @@ description: O Starship é o prompt minimalista, extremamente rápido e extremam
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Adicione o seguinte ao final do arquivo `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/pt-BR/advanced-config/README.md b/docs/pt-BR/advanced-config/README.md
index d2fef91d..b1df7aca 100644
--- a/docs/pt-BR/advanced-config/README.md
+++ b/docs/pt-BR/advanced-config/README.md
@@ -12,7 +12,7 @@ As configurações nesta seção estão sujeitas a alterações em futuras vers
O Bash não possui uma estrutura formal para os hooks preexec/precmd como a maioria dos outros shells. Por esse motivo, é difícil fornecer hooks totalmente customizáveis no `bash`. No entanto, Starship te oferece uma capacidade limitada de inserir suas próprias funções na processo de prompt-rendering:
-- To run a custom function right before the prompt is drawn, define a new function and then assign its name to `starship_precmd_user_func`. For example, to draw a rocket before the prompt, you would do
+- Para rodar uma função personalizada antes do prompt iniciar, defina uma nova função e atribua seu nome para `starship_precmd_user_func`. Por exemplo, para desenhar um foguete antes do prompt iniciar você faria
```bash
function blastoff(){
@@ -21,7 +21,7 @@ function blastoff(){
starship_precmd_user_func="blastoff"
```
-- To run a custom function right before a command runs, you can use the [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). However, you **must** trap the DEBUG signal *before* initializing Starship! Starship can preserve the value of the DEBUG trap, but if the trap is overwritten after starship starts up, some functionality will break.
+- Para rodar uma função personalizada antes que um comando seja executado, você pode usar [`DEBUG` como mecanismo de armadilha](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). No entanto, você **deve** prender o sinal de DEBUG *antes* de inicializar o Starship! O Starship consegue preservar o valor da armadilha DEBUG, mas se a armadilha for substituída depois do starship iniciar, algumas funções iram quebrar.
```bash
function blastoff(){
@@ -33,9 +33,9 @@ eval $(starship init bash)
## Altera o título da janela
-Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish faz isso por padrão. Starship does not do this, but it's fairly straightforward to add this functionality to `bash` or `zsh`.
+Alguns shell prompts iram alterar o titulo da janela automaticamente para você (e.x: para espelhar o diretório atual). Fish faz isso por padrão. Starship não faz isso, mas é bastante simples adicionar esta funcionalidade ao `bash` ou `zsh`.
-First, define a window title change function (identical in bash and zsh):
+Primeiro, defina uma função de alteração de titulo de janela (é o mesmo para bash e zsh):
```bash
function set_win_title(){
@@ -43,23 +43,23 @@ function set_win_title(){
}
```
-You can use variables to customize this title (`$USER`, `$HOSTNAME`, and `$PWD` are popular choices).
+Você pode usar variáveis para customizar o titulo (`$USER`, `$HOSTNAME`, e `$PWD` são escolhas populares).
-In `bash`, set this function to be the precmd starship function:
+No `bash`, defina esta função como a precedente da função starship:
```bash
starship_precmd_user_func="set_win_title"
```
-In `zsh`, add this to the `precmd_functions` array:
+No `zsh`, adicione no array `precmd_functions`:
```bash
precmd_functions+=(set_win_title)
```
-If you like the result, add these lines to your shell configuration file (`~/.bashrc` or `~/.zshrc`) to make it permanent.
+Se você gostar do resultado, adicione esta linha ao seu arquivo de configuração de shell (`~/.bashrc` or `~/.zshrc`) para torna-lo permanente.
-For example, if you want to display your current directory in your terminal tab title, add the following snippet to your `~/.bashrc` or `~/.zshrc`:
+Por exemplo, se você quiser exibir seu diretório atual no seu titulo de aba do terminal, adicione o seguinte snippet ao seu `~/.bashrc` ou `~/.zshrc`:
```bash
function set_win_title(){
@@ -70,9 +70,10 @@ starship_precmd_user_func="set_win_title"
## Estilo dos textos
-Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Cada palavra pode ser uma das seguintes:
+Estilo de strings são uma lista de palavras, separadas por espaço. As palavras não são case sensitive (ou seja `bold` e `BoLd` são consideradas iguais). Cada palavra pode ser uma das seguintes:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
@@ -81,14 +82,14 @@ Style strings are a list of words, separated by whitespace. The words are not ca
- `
`
- `none`
-where `` is a color specifier (discussed below). `fg:` and `` currently do the same thing, though this may change in the future. `inverted` swaps the background and foreground colors. The order of words in the string does not matter.
+onde `` é uma especialista de cores (discutido abaixo). `fg:` e `` atualmente fazem a mesma coisa, isto deve mudar no futuro. `inverted` troca as cores de background e foreground. A ordem de palavras na string não importa.
-The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. It may become an error to use `none` in conjunction with other tokens in the future.
+O token `none` substitui todos os outros tokens na string se ele não fizer parte de um `bg:` especificado que seja, por exemplo `fg:red none fg:blue` ainda criará uma string sem estilo. `bg:none` define a cor padrão de background então `fg:red bg:none` é equivalente a `red` ou `fg:red` e `bg:green fg:red bg:none` é equivalente a `fg:red` ou`red`. Pode se transformar em um erro ao usar `none` em um conjunto de outros tokens no futuro.
-A color specifier can be one of the following:
+Um especialista em cores pode ser um dos seguintes:
- - One of the standard terminal colors: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
- - A `#` followed by a six-digit hexadecimal number. This specifies an [RGB color hex code](https://www.w3schools.com/colors/colors_hexadecimal.asp).
+ - Um dos padrões de cores no terminal: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. Você pode de forma opcional prefixar com `bright-` para obter uma versão mais brilhante/clara (ex `bright-white`).
+ - Um `#` seguido por um número de seis dígitos hexadecimais. Isto especifica um [Código RGB em formato hexadecimal](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- Um número entre 0-255. Este especifica um [Código de Cor ANSI 8 bits](https://i.stack.imgur.com/KTSQa.png).
-If multiple colors are specified for foreground/background, the last one in the string will take priority.
+Se múltiplas cores forem especificadas para foreground/background, a ultima da string que terá prioridade.
diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md
index c52f2305..b64d11e1 100644
--- a/docs/pt-BR/config/README.md
+++ b/docs/pt-BR/config/README.md
@@ -9,19 +9,19 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
Todas as configurações do starship são feitas neste arquivo [TOML](https://github.com/toml-lang/toml):
```toml
-# Inserts a blank line between shell prompts
+#Insere uma linha vazia entre os prompts
add_newline = true
-# 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"
+# Substitui o simbolo "❯" do prompt por "➜"
+[character] # O nome do módulo que nos estamos configurando é "character"
+success_symbol = "[➜](bold green)" # O seguimento do "success_symbol" é alterado para "➜" com a cor "bold green"
-# Disable the package module, hiding it from the prompt completely
+# Desabilita o módulo de package, ocultando completamente do prompt
[package]
disabled = true
```
-You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
+Você pode alterar o caminho padrão do arquivo de configuração com a variável de ambiente `STARSHIP_CONFIG`:
```sh
export STARSHIP_CONFIG=~/.starship/config.toml
@@ -35,7 +35,7 @@ $ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
### Logging
-By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to a instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable:
+Por padrão o starship grava logs de erros e warnings dentro de um arquivo chamado `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, onde a session key corresponde a instancia do seu terminal. Isto, no entanto pode ser alterado usando a variável de ambiente `STARSHIP_CACHE`:
```sh
export STARSHIP_CACHE=~/.starship/cache
@@ -49,39 +49,39 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
### Terminologia
-**Módulo**: Um componente no prompt que fornece informações baseado no contexto do seu SO. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
+**Módulo**: Um componente no prompt que fornece informações baseado no contexto do seu SO. Por exemplo, o "nodejs"módulo exibe a versão do Node.js que está instalada no computador, se o diretório atual for um projeto Node.js.
-**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
+**Variável**: Um pequeno subcomponente que contem informações fornecidas pelo módulo. Por exemplo, a variável "version" no módulo "nodejs"contem a versão atual do Node.js.
-By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix.
+Por convenção, a maioria dos módulos tem um prefixo de cor (e.x. `via` no "nodejs") e um espaço vazio para sufixo.
-### Format Strings
+### Formatação de Strings
-Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string.
+Formatar uma string é a forma de como o módulo ira imprimir suas variáveis. A maioria dos módulos tem uma entrada chamada `format` que configura o formato que o módulo é exibido. Você pode usar textos, variáveis e grupo de textos em uma formatação de string.
#### Variável
-A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`.
+Uma variável contem um simbolo `$` seguido pelo nome da variável. O nome da variável contem apenas letras, números e `_`.
-For example:
+Por exemplo:
-- `$version` is a format string with a variable named `version`.
-- `$git_branch$git_commit` is a format string with two variables named `git_branch` and `git_commit`.
-- `$git_branch $git_commit` has the two variables separated with a space.
+- `$version` é uma formatação de string com uma variável chamada `version`.
+- `$git_branch$git_commit` é uma formatação de string com duas variáveis chamadas `git_branch` e `git_commit`.
+- `$git_branch $git_commit` Tem as duas variáveis separadas por espaço.
-#### Text Group
+#### Grupo de Texto
-A text group is made up of two different parts.
+Um grupo de texto é composto por duas partes diferentes.
-The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it.
+A primeira parte, é contida em um `[]`, é uma [formatação de string](#format-strings). Você pode adicionar textos, variáveis ou até mesmos grupo de textos aninhados.
-In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part.
+Na segunda parte, é composta por um `()`, é uma [estilização de string](#style-strings). Este pode ser usado para estilizar a primeira parte.
-For example:
+Por exemplo:
-- `[on](red bold)` will print a string `on` with bold text colored red.
-- `[⌘ $version](bold green)` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green.
-- `[a [b](red) c](green)` will print `a b c` with `b` red, and `a` and `c` green.
+- `[on](red bold)` vai imprimir uma string `on` com texto em negrito e com a cor vermelha.
+- `[⌘ $version](bold green)` vai imprimir o simbolo `⌘` seguido pela variável `version`, com o texto em negrito e na cor verde.
+- `[a [b](red) c](green)` vai imprimir `a b c` com `b` vermelho, e `a` e `c` verde.
#### Estilo dos textos
@@ -96,19 +96,19 @@ A maioria dos módulos do starship permite que você configure o estilo de exibi
Note que a aparência do estilo será controlado pelo seu terminal. Por exemplo, alguns terminais deixarão as cores mais brilhantes ao invés de deixar o texto em negrito, ou alguns temas podem usar as mesmas cores para cores brilhantes e normais. Além disso, para textos em itálico, o terminal precisa ter suporte.
-#### Conditional Format Strings
+#### Formatação de String Condicional
-A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty.
+Uma formatação condicional de string é envolto por `(` e `)` não vai ser exibido caso a variável dentro esteja vazia.
-For example:
+Por exemplo:
-- `(@$region)` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region.
-- `(some text)` will always show nothing since there are no variables wrapped in the braces.
-- When `$all` is a shortcut for `\[$a$b\]`, `($all)` will show nothing only if `$a` and `$b` are both `None`. This works the same as `(\[$a$b\] )`.
+- `(@$region)` não vai exibir nada caso a variável `region` seja `None` ou vazia, caso contrario vai exibir `@` seguido pelo valor da variável region.
+- `(texto qualquer)` não vai exibir nada sempre, pois não existe variável entre os parenteses.
+- Quando usar `$all` é um atalho para `\[$a$b\]`, `($all)` vai exibir nada somente quando `$a` e `$b` são `None`. Isto funciona da mesma forma que `(\[$a$b\] )`.
-#### Escapable characters
+#### Caractere de escape
-The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`).
+Os símbolos a seguir tem uso especial em uma formatação de string. Se você quer imprimir os símbolos a seguir você deve adicionar uma barra invertida (`\`).
- \$
- \\
@@ -117,20 +117,20 @@ The following symbols have special usage in a format string. If you want to prin
- (
- )
-Note that `toml` has [its own escape syntax](https://github.com/toml-lang/toml#user-content-string). It is recommended to use a literal string (`''`) in your config. If you want to use a basic string (`""`), pay attention to escape the backslash `\`.
+Observe que `toml` tem [sua própria sintaxe de escape](https://github.com/toml-lang/toml#user-content-string). É recomendado usar uma string literal (`''`) no seu arquivo de configuração. Se você quer usar uma string básica (`""`), preste atenção ao usar a barra invertida `\`.
-For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent:
+Por exemplo, quando você quer imprimir um simbolo `$` em uma nova linha, as configurações de `format` a seguir são equivalentes:
```toml
-# with basic string
+# com string básica
format = "\n\\$"
-# with multiline basic string
+# com múltiplas linhas de string básica
format = """
\\$"""
-# with literal string
+# com string literal
format = '''
\$'''
@@ -138,43 +138,43 @@ format = '''
## Prompt de Comando
-This is the list of prompt-wide configuration options.
+Está é a lista de opções de configuração de prompt.
### Opções
-| Opções | Padrão | Descrição |
-| ----------------- | ------------------------------ | ------------------------------------------------------------ |
-| `format` | [link](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Opções | Padrão | Descrição |
+| ----------------- | ------------------------------ | ---------------------------------------------------------------------- |
+| `format` | [link](#default-prompt-format) | Configura o formato do prompt. |
+| `scan_timeout` | `30` | Tempo limite para escanear arquivos (em milissegundos). |
+| `command_timeout` | `500` | Tempo limite de execução de comandos pelo starship (em milissegundos). |
+| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. |
### Exemplo
```toml
# ~/.config/starship.toml
-# Use custom format
+# Usa um format customizado
format = """
[┌───────────────────>](bold green)
[│](bold green)$directory$rust$package
[└─>](bold green) """
-# Wait 10 milliseconds for starship to check files under the current directory.
+#Espera 10 milissegundos para que o starship check os arquivos do diretório atual.
scan_timeout = 10
-# Disable the blank line at the start of the prompt
+# Desabilita uma nova linha no inicio do prompt
add_newline = false
```
-### Default Prompt Format
+### Format de Prompt Padrão
O `formato` padrão é usado para definir o formato do prompt, se um valor vazio ou não `formatado` for informado. Os valores padrão são os seguintes:
```toml
format = "$all"
-# Which is equivalent to
+# Que é equivalente a
format = """
$username\
$hostname\
@@ -240,13 +240,13 @@ $character"""
## AWS
-The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. This module also shows an expiration timer when using temporary credentials.
+O módulo `aws` exibi a região e perfil atual do AWS. Isto é baseado nas variáveis de env `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` contidas no arquivo `~/.aws/config`. Este modulo exibi também tempo de expiração de credenciais temporarias.
-When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var and the credentials expiration date is read from the `AWS_SESSION_EXPIRATION` env var.
+Quando usar [aws-vault](https://github.com/99designs/aws-vault) o perfil é lido da variável `AWS_VAULT` e o tempo de expiração de credenciais é lida da variável de env `AWS_SESSION_EXPIRATION`.
-When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from the `AWSU_PROFILE` env var.
+Quando usar [awsu](https://github.com/kreuzwerker/awsu) o perfil é lido da varável de env `AWSU_PROFILE`.
-When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFILE` env var and the credentials expiration date is read from the `AWSUME_EXPIRATION` env var.
+Quando usar [AWSume](https://awsu.me) o perfil é lido da variável `AWSUME_PROFILE` e o tempo de expiração de credenciais é lida da variável de env `AWSUME_EXPIRATION`.
### Opções
@@ -259,21 +259,21 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
| `expiration_symbol` | `X` | O simbolo exibido quando as credenciais temporárias estão expiradas. |
| `disabled` | `false` | Desabilita o modulo `AWS`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ---------------- | ------------------------------------------- |
-| region | `ap-northeast-1` | The current AWS region |
-| profile | `astronauts` | The current AWS profile |
-| duration | `2h27m20s` | The temporary credentials validity duration |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ---------------- | ------------------------------------ |
+| region | `ap-northeast-1` | A região atual do AWS |
+| profile | `astronauts` | O perfil atual do AWS |
+| duration | `2h27m20s` | A duração temporária das credenciais |
+| symbol | | Espelha o valor da opção `símbolo` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
-### Examples
+### Exemplos
-#### Display everything
+#### Exibir tudo
```toml
# ~/.config/starship.toml
@@ -287,7 +287,7 @@ ap-southeast-2 = "au"
us-east-1 = "va"
```
-#### Display region
+#### Exibir região
```toml
# ~/.config/starship.toml
@@ -301,7 +301,7 @@ ap-southeast-2 = "au"
us-east-1 = "va"
```
-#### Display profile
+#### Exibir perfil
```toml
# ~/.config/starship.toml
@@ -314,20 +314,20 @@ symbol = "🅰 "
## Bateria
-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%.
+O módulo `battery` exibe o quanto a bateria do dispositivo está carregada e o estado atual de carregamento. O módulo é visível somente quando a bateria está abaixo de 10%.
### Opções
-| Opções | Padrão | Descrição |
-| -------------------- | --------------------------------- | --------------------------------------------------- |
-| `full_symbol` | `" "` | The symbol shown when the battery is full. |
-| `charging_symbol` | `" "` | The symbol shown when the battery is charging. |
-| `discharging_symbol` | `" "` | The symbol shown when the battery is discharging. |
-| `unknown_symbol` | `" "` | The symbol shown when the battery state is unknown. |
-| `empty_symbol` | `" "` | The symbol shown when the battery state is empty. |
-| `format` | `"[$symbol$percentage]($style) "` | O formato do módulo. |
-| `display` | [link](#battery-display) | Display threshold and style for the module. |
-| `disabled` | `false` | Disables the `battery` module. |
+| Opções | Padrão | Descrição |
+| -------------------- | --------------------------------- | ------------------------------------------------------------ |
+| `full_symbol` | `" "` | O simbolo exibido quando a bateria estiver cheia. |
+| `charging_symbol` | `" "` | O simbolo exibido quando a bateria está carregando. |
+| `discharging_symbol` | `" "` | O simbolo exibido quando a bateria está descarregando. |
+| `unknown_symbol` | `" "` | O simbolo exibido quando o estado da bateria é desconhecido. |
+| `empty_symbol` | `" "` | O simbolo exibido quando o estado da bateria é vazio. |
+| `format` | `"[$symbol$percentage]($style) "` | O formato do módulo. |
+| `display` | [link](#battery-display) | Limite de exibição e estilo para o módulo. |
+| `disabled` | `false` | Desabilita o módulo `battery`. |
### Exemplo
@@ -342,7 +342,7 @@ discharging_symbol = "💀 "
### Indicador de bateria
-The `display` configuration option is used to define when the battery indicator should be shown (threshold), which symbol would be used (symbol), and what it would like (style). If no `display` is provided. Os valores padrão são os seguintes:
+A configuração `display` é usada para definir quando o indicador de bateria deve ser exibido (threshold), qual deve ser o simbolo(symbol) e como você gostaria de exibir (style). Se nenhum `display` for fornecido. Os valores padrão são os seguintes:
```toml
[[battery.display]]
@@ -350,77 +350,77 @@ threshold = 10
style = "bold red"
```
-The default value for the `charging_symbol` and `discharging_symbol` option is respectively the value of `battery`'s `charging_symbol` and `discharging_symbol` option.
+O valor padrão das opções `charging_symbol` e `discharging_symbol`é respectivamente o valor das opções `battery`'s `charging_symbol` e `discharging_symbol`.
#### Opções
-The `display` option is an array of the following table.
+A opção `display` é um array da seguinte tabela.
-| Opções | Padrão | Descrição |
-| -------------------- | ---------- | --------------------------------------------------------------------------------------------------------- |
-| `threshold` | `10` | The upper bound for the display option. |
-| `style` | `bold red` | The style used if the display option is in use. |
-| `charging_symbol` | `-` | Optional symbol displayed if display option is in use, defaults to battery's `charging_symbol` option. |
-| `discharging_symbol` | `-` | Optional symbol displayed if display option is in use, defaults to battery's `discharging_symbol` option. |
+| Opções | Padrão | Descrição |
+| -------------------- | ---------- | -------------------------------------------------------------------------------------------------- |
+| `threshold` | `10` | O limite superior para exibição. |
+| `style` | `bold red` | O estilo usado para exibir quando estiver em uso. |
+| `charging_symbol` | `-` | Simbolo opcional, mostrado quando a opção estiver em uso, o simbolo padrão é `charging_symbol`. |
+| `discharging_symbol` | `-` | Simbolo opcional, mostrado quando a opção estiver em uso, o simbolo padrão é `discharging_symbol`. |
#### Exemplo
```toml
-[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
+[[battery.display]] # "bold red" é estilo e o simbolo discharging_symbol serão usados quando a capacidade estiver entre 0% e 10%
threshold = 10
style = "bold red"
-[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
+[[battery.display]] # "bold yellow" é estilo e o simbolo 💦 serão usados quando a capacidade estiver entre 10% e 30%
threshold = 30
style = "bold yellow"
discharging_symbol = 💦
-# when capacity is over 30%, the battery indicator will not be displayed
+# Quando a capcidade for maior que 30%, o indicador de bateria não sera mostrado
```
## Caractere
-The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal.
+O módulo `character` exibe um caracter (normalmente uma seta) ao lado de onde o texto começa a ser inserido no terminal.
-The character will tell you whether the last command was successful or not. It can do this in two ways:
+O caractere vai te dizer se o ultimo comando foi bem sucedido ou não. Você pode fazer isto de duas maneiras:
-- changing color (`red`/`green`)
-- changing shape (`❯`/`✖`)
+- alterando a cor (`red`/`green`)
+- alterando a forma (`❯`/`✖`)
-By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
+Por padrão ele apenas muda de cor. Se você deseja alterar o formato de uma olhada [neste exemplo](#with-custom-error-shape).
::: warning
-`error_symbol` is not supported on elvish and nu shell.
+`error_symbol` não é suportado no elvish e nu shell.
:::
::: warning
-`vicmd_symbol` is only supported in fish and zsh.
+`vicmd_symbol` é suportado apenas no fish e zsh.
:::
### Opções
-| Opções | Padrão | Descrição |
-| ---------------- | ------------------- | -------------------------------------------------------------------------------- |
-| `format` | `"$symbol "` | The format string used before the text input. |
-| `success_symbol` | `"[❯](bold green)"` | The format string used before the text input if the previous command succeeded. |
-| `error_symbol` | `"[❯](bold red)"` | The format string used before the text input if the previous command failed. |
-| `vicmd_symbol` | `"[❮](bold green)"` | The format string used before the text input if the shell is in vim normal mode. |
-| `disabled` | `false` | Desabilita o módulo `character`. |
+| Opções | Padrão | Descrição |
+| ---------------- | ------------------- | ------------------------------------------------------------------------------------------- |
+| `format` | `"$symbol"` | O formato da string usado antes da entrada dos textos. |
+| `success_symbol` | `"[❯](bold green)"` | O formato da string usado antes da entrada de texto se o comando anterior for bem-sucedido. |
+| `error_symbol` | `"[❯](bold red)"` | O formato de string usado antes da entrada de texto se o comando anterior tiver falhado. |
+| `vicmd_symbol` | `"[❮](bold green)"` | O fromato de string usado antes da entrada de texto se o shell esta no vim normal mode. |
+| `disabled` | `false` | Desabilita o módulo `character`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| -------- | ------- | --------------------------------------------------------------------- |
-| symbol | | A mirror of either `success_symbol`, `error_symbol` or `vicmd_symbol` |
+| Variável | Exemplo | Descrição |
+| -------- | ------- | ---------------------------------------------------------------- |
+| symbol | | Um espelho de `success_symbol`, `error_symbol` ou `vicmd_symbol` |
-### Examples
+### Exemplos
-#### With custom error shape
+#### Com formas customizadas de erro
```toml
# ~/.config/starship.toml
@@ -430,7 +430,7 @@ success_symbol = "[➜](bold green) "
error_symbol = "[✗](bold red) "
```
-#### Without custom error shape
+#### Sem formas customizadas de erro
```toml
# ~/.config/starship.toml
@@ -440,7 +440,7 @@ success_symbol = "[➜](bold green) "
error_symbol = "[➜](bold red) "
```
-#### With custom vim shape
+#### Com formas customizadas no vim
```toml
# ~/.config/starship.toml
@@ -451,72 +451,72 @@ vicmd_symbol = "[V](bold green) "
## CMake
-The `cmake` module shows the currently installed version of [CMake](https://cmake.org/). By default the module will be activated if any of the following conditions are met:
+O módulo `cmake` exibe a versão instalada do [CMake](https://cmake.org/). Por padrão o módulo será ativo se qualquer das condições a seguir for atendida:
-- The current directory contains a `CMakeLists.txt` file
-- The current directory contains a `CMakeCache.txt` file
+- O diretorio atual cotem um arquivo `CMakeLists.txt`
+- O diretorio atual tem um arquivo `CMakeCache.txt`
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"△ "` | The symbol used before the version of cmake. |
-| `detect_extensions` | `[]` | Which extensions should trigger this module |
-| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
-| `detect_folders` | `[]` | Which folders should trigger this module |
-| `style` | `"bold blue"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `cmake` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------- | ------------------------------------------------------------------------------------ |
+| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"△ "` | O simbolo usado antes da versão do cmake. |
+| `detect_extensions` | `[]` | Quais extensões devem acionar este módulo |
+| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | [] |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo |
+| `style` | `"bold blue"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `cmake`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | --------- | ------------------------------------ |
-| version | `v3.17.3` | The version of cmake |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | --------- | --------------------------------- |
+| version | `v3.17.3` | A versão do cmake |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
## Tempo de execução do comando
-The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists.
+O módulo `cmd_duration` exibi o tempo que o ultimo comando levou para executar. O módulo vai exibir somente se o comando levar mais de dois segundos, ou o valor de configuração `min_time` existir.
::: warning Não utilize o DEBUG-trap no Bash
-If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break.
+Se você esta rodando o Starship no `bash`, você não deve ativar a armadilha `DEBUG` após rodar `eval $(starship init $0)`, ou este módulo **vai** quebrar.
:::
-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.
+Usuários do bash que precisam de funções pre-executadas podem usar [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simplesmente defina os arrays `preexec_functions` e `precmd_functions` antes de rodar `eval $(starship init $0)`, e depois pode proceder normalmente.
### Opções
-| Opções | Padrão | Descrição |
-| -------------------- | ----------------------------- | ---------------------------------------------------------- |
-| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
-| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
-| `format` | `"took [$duration]($style) "` | O formato do módulo. |
-| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `cmd_duration` module. |
-| `show_notifications` | `false` | Show desktop notifications when command completes. |
-| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
+| Opções | Padrão | Descrição |
+| -------------------- | ----------------------------- | ------------------------------------------------------------- |
+| `min_time` | `2_000` | Duração mais curta para exibir o tempo (em milissegundos). |
+| `show_milliseconds` | `false` | Exibir milissegundos ou invés de segundos para duração. |
+| `format` | `"took [$duration]($style) "` | O formato do módulo. |
+| `style` | `"bold yellow"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `cmd_duration`. |
+| `show_notifications` | `false` | Exibi notificações no desktop quando o comando for concluído. |
+| `min_time_to_notify` | `45_000` | Tempo minimo para notificação (em milissegundos). |
::: tip
-Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
+Para exibir notificações requer que o starship seja construído com suporte para `rust-notify`. Você consegue verificar se seu starship suporta notificações rodando `STARSHIP_LOG=debug starship module cmd_duration -d 60000` quando `show_notifications` é definido como `true`.
:::
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | --------------------------------------- |
-| duration | `16m40s` | The time it took to execute the command |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | ----------------------------------------- |
+| duration | `16m40s` | O tempo que levou para executar o comando |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -530,34 +530,34 @@ format = "underwent [$duration](bold yellow)"
## Conda
-The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set.
+O módulo `conda` exibe o environment atual do conda, se `$CONDA_DEFAULT_ENV` é definido.
::: tip
-This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`.
+Isso não suprime o modificador de prompt do conda, você pode executar `conda config --set changeps1 False`.
:::
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
-| `symbol` | `"🅒 "` | The symbol used before the environment name. |
-| `style` | `"bold green"` | O estilo do módulo. |
-| `format` | `"via [$symbol$environment]($style) "` | O formato do módulo. |
-| `ignore_base` | `true` | Ignores `base` environment when activated. |
-| `disabled` | `false` | Disables the `conda` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `truncation_length` | `1` | O número de diretórios do envirionment path deve ser truncado, se o environment foi criado via `conda create -p [path]`. `0` quer dizer sem truncação. Também consulte o módulo [`directory`](#directory). |
+| `symbol` | `"🅒 "` | O simbolo usado antes do nome do environment. |
+| `style` | `"bold green"` | O estilo do módulo. |
+| `format` | `"via [$symbol$environment]($style) "` | O formato do módulo. |
+| `ignore_base` | `true` | Ignora o environment `base` quando ativado. |
+| `disabled` | `false` | Desabilita o módulo `conda`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| ----------- | ------------ | ------------------------------------ |
-| environment | `astronauts` | The current conda environment |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| ----------- | ------------ | --------------------------------- |
+| environment | `astronauts` | O environment atual do conda |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -570,33 +570,33 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-The `crystal` module shows the currently installed version of [Crystal](https://crystal-lang.org/). By default the module will be shown if any of the following conditions are met:
+O módulo `crystal` exibe a versão instalada atual do [Crystal](https://crystal-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a `shard.yml` file
-- The current directory contains a `.cr` file
+- O diretório atual contem um arquivo `shard.yml`
+- O diretório atual contem um arquivo `.cr`
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `style` | `"bold red"` | O estilo do módulo. |
-| `detect_extensions` | `["cr"]` | Which extensions should trigger this module. |
-| `detect_files` | `["shard.yml"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `disabled` | `false` | Disables the `crystal` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
+| `symbol` | `"🔮 "` | O simbolo usado antes de exibir a versão do crystal. |
+| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold red"` | O estilo do módulo. |
+| `detect_extensions` | `["cr"]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `["shard.yml"]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `disabled` | `false` | Desabilita o módulo `crystal`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | --------- | ------------------------------------ |
-| version | `v0.32.1` | The version of `crystal` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | --------- | --------------------------------- |
+| version | `v0.32.1` | A versão do `crystal` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -609,34 +609,34 @@ format = "via [✨ $version](bold blue) "
## Dart
-The `dart` module shows the currently installed version of [Dart](https://dart.dev/). By default the module will be shown if any of the following conditions are met:
+O módulo `dart` exibe a versão atual instalada do [Dart](https://dart.dev/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a file with `.dart` extension
-- The current directory contains a `.dart_tool` directory
-- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
+- O diretório atual contem algum arquivo com extensão `.dart`
+- O diretório atual contem um diretório `.dart_tool`
+- O diretório atual contem um arquivo `pubspec.yaml`, `pubspec.yml` ou `pubspec.lock`
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
-| `detect_extensions` | `["dart"]` | Which extensions should trigger this module. |
-| `detect_files` | `["pubspec.yaml", "pubspec.yml", "pubspec.lock"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".dart_tool"]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `dart` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------ |
+| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"🎯 "` | Um formato de string que representa o simbolo do Dart |
+| `detect_extensions` | `["dart"]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `["pubspec.yaml", "pubspec.yml", "pubspec.lock"]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[".dart_tool"]` | Quais pastas devem ativar este módulo. |
+| `style` | `"bold blue"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `dart`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v2.8.4` | The version of `dart` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v2.8.4` | The version of `dart` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -649,29 +649,29 @@ format = "via [🔰 $version](bold red) "
## Deno
-The `deno` module shows you your currently installed version of [Deno](https://deno.land/). By default the module will be shown if any of the following conditions are met:
-- The current directory contains a `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
+O módulo `deno` exibe a versão instalada atual do [Deno](https://deno.land/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+- O diretório contem um arquivo `mod.ts`, `mod.js`, `deps.ts` ou `deps.js`
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🦕 "` | A format string representing the symbol of Deno |
-| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `["mod.ts", "mod.js", "deps.ts", "deps.js"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"green bold"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `deno` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------ |
+| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"🦕 "` | Um formato de string que representa o simbolo do Deno |
+| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `["mod.ts", "mod.js", "deps.ts", "deps.js"]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `style` | `"green bold"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `deno`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v1.8.3` | The version of `deno` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v1.8.3` | A versão do `deno` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
### Exemplo
@@ -684,28 +684,28 @@ format = "via [🦕 $version](green bold) "
## Diretório
-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.
+O módulo `directory` exibe o caminho do diretório atual, truncando as três pastas pai. Seu diretório será truncando na raiz do repositório git que você estiver atualmente.
-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.
+Quando usar a opção de estilo fish pwd, ao invés de esconder o caminho que é truncado, você vai ver um nome encurtado de cada diretório baseado no número que você habilitar para a opção.
-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`.
+Por exemplo, dado `~/Dev/Nix/nixpkgs/pkgs` onde `nixpkgs` é o repositório raiz e a opção esta definida para `1`. Você verá `~/D/N/nixpkgs/pkgs`, enquanto antes seria `nixpkgs/pkgs`.
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
-| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
-| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | O formato do módulo. |
-| `style` | `"bold cyan"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `directory` module. |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
-| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------ |
+| `truncation_length` | `3` | O número de pastas pais do diretório atual que serão truncadas. |
+| `truncate_to_repo` | `true` | Seu diretório será truncado ou não para a raiz do repositório git atual. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | O formato do módulo. |
+| `style` | `"bold cyan"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `directory`. |
+| `read_only` | `"🔒"` | O simbolo que indica que o diretório atual é somente leitura. |
+| `read_only_style` | `"red"` | O estilo para o simbolo de somente leitura. |
+| `truncation_symbol` | `""` | O simbolo para prefixo de caminhos truncados. ex: "…/" |
+| `home_symbol` | `"~"` | O simbolo para indicar o diretório home. |
-This module has a few advanced configuration options that control how the directory is displayed.
+Este módulo tem algumas configurações avançadas que controlam como o diretório é exibido.
| Advanced Option | Padrão | Descrição |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -725,14 +725,14 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | --------------------- | ----------------------------------- |
-| path | `"D:/Projects"` | The current directory path |
-| style\* | `"black bold dimmed"` | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | --------------------- | -------------------------------- |
+| path | `"D:/Projects"` | O caminho do diretório atual |
+| style\* | `"black bold dimmed"` | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -746,30 +746,30 @@ truncation_symbol = "…/"
## Docker Context
-The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
+O módulo `docker_context` exibe o [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) atual se não estiver definido como `default` ou se as variáveis de ambiente `DOCKER_HOST` ou `DOCKER_CONTEXT` estiverem definidas (se destinam a sobrescrever o contexto atual).
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol$context]($style) "` | O formato do módulo. |
-| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
-| `only_with_files` | `true` | Only show when there's a match |
-| `detect_extensions` | `[]` | Which extensions should trigger this module (needs `only_with_files` to be true). |
-| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Which filenames should trigger this module (needs `only_with_files` to be true). |
-| `detect_folders` | `[]` | Which folders should trigger this module (needs `only_with_files` to be true). |
-| `style` | `"blue bold"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `docker_context` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
+| `format` | `"via [$symbol$context]($style) "` | O formato do módulo. |
+| `symbol` | `"🐳 "` | O simbolo usado antes de exibir a versão do contexto docker. |
+| `only_with_files` | `true` | Exibe somente quando houver um arquivo |
+| `detect_extensions` | `[]` | Quais extensões devem acionar este módulo (precisa que `only_with_files` seja true). |
+| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Quais arquivos devem acionar este módulo (precisa que `only_with_files` seja true). |
+| `detect_folders` | `[]` | Quais pastas devem acionar este módulo (precisa que `only_with_files` seja true). |
+| `style` | `"blue bold"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `docker_context`. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------------- | ------------------------------------ |
-| context | `test_context` | The current docker context |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------------- | --------------------------------- |
+| context | `test_context` | O contexto atual do docker |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -815,16 +815,16 @@ The module will also show the Target Framework Moniker ([\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Quebra de linha
@@ -1664,7 +1690,7 @@ disabled = true
## Lua
-The `lua` module shows the currently installed version of [Lua](http://www.lua.org/). By default the module will be shown if any of the following conditions are met:
+The `lua` module shows the currently installed version of [Lua](http://www.lua.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `.lua-version` file
- The current directory contains a `lua` directory
@@ -1684,15 +1710,15 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
| `lua_binary` | `"lua"` | Configures the lua binary that Starship executes when getting the version. |
| `disabled` | `false` | Disables the `lua` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v5.4.0` | The version of `lua` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v5.4.0` | The version of `lua` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -1725,7 +1751,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `style` | `"bold dimmed white"` | O estilo do módulo. |
| `disabled` | `true` | Disables the `memory_usage` module. |
-### Variables
+### Variáveis
| Variável | Exemplo | Descrição |
| ---------------- | ------------- | ------------------------------------------------------------------ |
@@ -1733,8 +1759,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| ram_pct | `48%` | The percentage of the current system memory. |
| swap\*\* | `1GiB/4GiB` | The swap memory size of the current system swap memory file. |
| swap_pct\*\* | `77%` | The swap memory percentage of the current system swap memory file. |
-| symbol | `🐏` | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| symbol | `🐏` | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
\*: This variable can only be used as a part of a style string \*\*: The SWAP file information is only displayed if detected on the current system
@@ -1765,15 +1791,15 @@ The `hg_branch` module shows the active branch of the repo in your current direc
| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. |
| `disabled` | `true` | Disables the `hg_branch` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| branch | `master` | The active mercurial branch |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| branch | `master` | The active mercurial branch |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -1788,7 +1814,7 @@ truncation_symbol = ""
## Nim
-The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). By default the module will be shown if any of the following conditions are met:
+The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `nim.cfg` file
- The current directory contains a file with the `.nim` extension
@@ -1808,15 +1834,15 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| `style` | `"bold yellow"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `nim` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v1.2.0` | The version of `nimc` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v1.2.0` | The version of `nimc` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -1843,16 +1869,16 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| `pure_msg` | `"pure"` | A format string shown when the shell is pure. |
| `disabled` | `false` | Disables the `nix_shell` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ------- | ------------------------------------ |
-| state | `pure` | The state of the nix-shell |
-| name | `lorri` | The name of the nix-shell |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ------- | --------------------------------- |
+| state | `pure` | The state of the nix-shell |
+| name | `lorri` | The name of the nix-shell |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -1868,7 +1894,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## Node.js
-The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). By default the module will be shown if any of the following conditions are met:
+The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `package.json` file
- The current directory contains a `.node-version` file
@@ -1891,15 +1917,15 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `disabled` | `false` | Disables the `nodejs` module. |
| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ---------- | ------------------------------------ |
-| version | `v13.12.0` | The version of `node` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ---------- | --------------------------------- |
+| version | `v13.12.0` | The version of `node` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -1912,7 +1938,7 @@ format = "via [🤖 $version](bold green) "
## OCaml
-The `ocaml` module shows the currently installed version of [OCaml](https://ocaml.org/). By default the module will be shown if any of the following conditions are met:
+The `ocaml` module shows the currently installed version of [OCaml](https://ocaml.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a file with `.opam` extension or `_opam` directory
- The current directory contains a `esy.lock` directory
@@ -1936,17 +1962,17 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
| `style` | `"bold yellow"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `ocaml` module. |
-### Variables
+### Variáveis
| Variável | Exemplo | Descrição |
| ---------------- | ------------ | ----------------------------------------------------------------- |
| version | `v4.10.0` | The version of `ocaml` |
| switch_name | `my-project` | The active OPAM switch |
| switch_indicator | | Mirrors the value of `indicator` for currently active OPAM switch |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -1970,16 +1996,16 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| `style` | `"bold yellow"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `openstack` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ------- | ------------------------------------ |
-| cloud | `corp` | The current OpenStack cloud |
-| project | `dev` | The current OpenStack project |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ------- | --------------------------------- |
+| cloud | `corp` | The current OpenStack cloud |
+| project | `dev` | The current OpenStack project |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,23 +2040,24 @@ The `package` module is shown when the current directory is the repository for a
### Opções
-| Opções | Padrão | Descrição |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | O formato do módulo. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | O estilo do módulo. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Opções | Padrão | Descrição |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | O formato do módulo. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | O estilo do módulo. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v1.0.0` | The version of your package |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v1.0.0` | The version of your package |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2042,7 +2070,7 @@ format = "via [🎁 $version](208 bold) "
## Perl
-The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). By default the module will be shown if any of the following conditions are met:
+The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `Makefile.PL` or `Build.PL` file
- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
@@ -2063,13 +2091,13 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
| `style` | `"bold 149"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `perl` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | --------- | ------------------------------------ |
-| version | `v5.26.1` | The version of `perl` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | --------- | --------------------------------- |
+| version | `v5.26.1` | The version of `perl` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
### Exemplo
@@ -2082,7 +2110,7 @@ format = "via [🦪 $version]($style) "
## PHP
-The `php` module shows the currently installed version of [PHP](https://www.php.net/). By default the module will be shown if any of the following conditions are met:
+The `php` module shows the currently installed version of [PHP](https://www.php.net/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `composer.json` file
- The current directory contains a `.php-version` file
@@ -2101,15 +2129,15 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| `style` | `"147 bold"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `php` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v7.3.8` | The version of `php` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v7.3.8` | The version of `php` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2122,7 +2150,7 @@ format = "via [🔹 $version](147 bold) "
## PureScript
-The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. By default the module will be shown if any of the following conditions are met:
+The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `spago.dhall` file
- The current directory contains a file with the `.purs` extension
@@ -2140,15 +2168,15 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| `style` | `"bold white"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `purescript` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `0.13.5` | The version of `purescript` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `0.13.5` | The version of `purescript` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2165,7 +2193,7 @@ The `python` module shows the currently installed version of [Python](https://ww
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
-By default the module will be shown if any of the following conditions are met:
+Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `.python-version` file
- The current directory contains a `Pipfile` file
@@ -2187,10 +2215,10 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | O estilo do módulo. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
-| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
-| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
-| `detect_folders` | `[]` | Which folders should trigger this module |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `detect_extensions` | `["py"]` | Quais extensões devem acionar este módulo |
+| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | [] |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo |
| `disabled` | `false` | Disables the `python` module. |
::: tip
@@ -2201,13 +2229,13 @@ The default values and order for `python_binary` was chosen to first identify th
:::
-### Variables
+### Variáveis
| Variável | Exemplo | Descrição |
| ------------ | --------------- | ------------------------------------------ |
| version | `"v3.8.1"` | The version of `python` |
-| symbol | `"🐍 "` | Mirrors the value of option `symbol` |
-| style | `"yellow bold"` | Mirrors the value of option `style` |
+| symbol | `"🐍 "` | Espelha o valor da opção `symbol` |
+| style | `"yellow bold"` | Espelha o valor da opção `style` |
| pyenv_prefix | `"pyenv "` | Mirrors the value of option `pyenv_prefix` |
| virtualenv | `"venv"` | The current `virtualenv` name |
@@ -2268,18 +2296,18 @@ The `rlang` module shows the currently installed version of R. The module will b
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `"📐"` | A format string representing the symbol of R. |
| `style` | `"blue bold"` | O estilo do módulo. |
-| `detect_extensions` | `["R", "Rd", "Rmd", "Rproj", "Rsx"]` | Which extensions should trigger this module |
-| `detect_files` | `[".Rprofile"]` | Which filenames should trigger this module |
-| `detect_folders` | `[".Rproj.user"]` | Which folders should trigger this module |
+| `detect_extensions` | `["R", "Rd", "Rmd", "Rproj", "Rsx"]` | Quais extensões devem acionar este módulo |
+| `detect_files` | `[".Rprofile"]` | [] |
+| `detect_folders` | `[".Rproj.user"]` | Quais pastas devem ativar este módulo |
| `disabled` | `false` | Disables the `r` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| -------- | ------------- | ------------------------------------ |
-| version | `v4.0.5` | The version of `R` |
-| symbol | | Mirrors the value of option `symbol` |
-| style | `"blue bold"` | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| -------- | ------------- | --------------------------------- |
+| version | `v4.0.5` | The version of `R` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style | `"blue bold"` | Espelha o valor da opção `style` |
### Exemplo
@@ -2309,15 +2337,15 @@ By default the `red` module shows the currently installed version of [Red](https
| `style` | `"red bold"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `red` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v2.5.1` | The version of `red` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v2.5.1` | The version of `red` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2349,15 +2377,15 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
| `style` | `"bold red"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `ruby` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v2.5.1` | The version of `ruby` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v2.5.1` | The version of `ruby` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2388,15 +2416,15 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| `style` | `"bold red"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `rust` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ----------------- | ------------------------------------ |
-| version | `v1.43.0-nightly` | The version of `rustc` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ----------------- | --------------------------------- |
+| version | `v1.43.0-nightly` | The version of `rustc` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2409,7 +2437,7 @@ format = "via [⚙️ $version](red bold)"
## Scala
-The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). By default the module will be shown if any of the following conditions are met:
+The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
- The current directory contains a file with the `.scala` or `.sbt` extension
@@ -2428,15 +2456,15 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| `style` | `"red dimmed"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `scala` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `2.13.5` | The version of `scala` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `2.13.5` | The version of `scala` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2461,24 +2489,25 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Opções | Padrão | Descrição |
| ---------------------- | ------------ | ------------------------------------------------------------ |
-| `bash_indicator` | `bsh` | A format string used to represent bash. |
-| `fish_indicator` | `fsh` | A format string used to represent fish. |
+| `bash_indicator` | `bsh` | Uma string para representar o bash. |
+| `fish_indicator` | `fsh` | Uma string usada para representar o fish. |
| `zsh_indicator` | `zsh` | A format string used to represent zsh. |
| `powershell_indicator` | `psh` | A format string used to represent powershell. |
| `ion_indicator` | `ion` | A format string used to represent ion. |
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | O formato do módulo. |
| `disabled` | `true` | Disables the `shell` module. |
-### Variables
+### Variáveis
| Variável | Padrão | Descrição |
| --------- | ------ | ---------------------------------------------------------- |
| indicator | | Mirrors the value of `indicator` for currently used shell. |
-### Examples
+### Exemplos
```toml
# ~/.config/starship.toml
@@ -2500,20 +2529,20 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | O formato do módulo. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | O estilo do módulo. |
| `disabled` | `true` | Disables the `shlvl` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ------- | ------------------------------------ |
-| shlvl | `3` | The current value of `SHLVL` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ------- | --------------------------------- |
+| shlvl | `3` | The current value of `SHLVL` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2539,15 +2568,15 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| `style` | `"bold dimmed blue"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `singularity` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ------------ | ------------------------------------ |
-| env | `centos.img` | The current Singularity image |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ------------ | --------------------------------- |
+| env | `centos.img` | The current Singularity image |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2572,33 +2601,38 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Opções
-| Opções | Padrão | Descrição |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | O estilo do módulo. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Opções | Padrão | Descrição |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | O estilo do módulo. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2635,15 +2669,15 @@ By default the `swift` module shows the currently installed version of [Swift](h
| `style` | `"bold 202"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `swift` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v5.2.4` | The version of `swift` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v5.2.4` | The version of `swift` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2664,7 +2698,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:
+Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `.terraform` folder
- Current directory contains a file with the `.tf` or `.hcl` extensions
@@ -2674,7 +2708,7 @@ By default the module will be shown if any of the following conditions are met:
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `version_format` | `"v${raw}"` | A versão formatada. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `"💠"` | A format string shown before the terraform workspace. |
| `detect_extensions` | `["tf", "hcl"]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
@@ -2682,16 +2716,16 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"bold 105"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `terraform` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ---------- | ------------------------------------ |
-| version | `v0.12.24` | The version of `terraform` |
-| workspace | `default` | The current Terraform workspace |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ---------- | --------------------------------- |
+| version | `v0.12.24` | The version of `terraform` |
+| workspace | `default` | The current Terraform workspace |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2737,14 +2771,14 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ---------- | ----------------------------------- |
-| horário | `13:08:10` | The current time. |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ---------- | -------------------------------- |
+| horário | `13:08:10` | The current time. |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2784,7 +2818,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `show_always` | `false` | Always shows the `username` module. |
| `disabled` | `false` | Disables the `username` module. |
-### Variables
+### Variáveis
| Variável | Exemplo | Descrição |
| -------- | ------------ | ------------------------------------------------------------------------------------------- |
@@ -2806,7 +2840,7 @@ show_always = true
## Vagrant
-The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). By default the module will be shown if any of the following conditions are met:
+The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- The current directory contains a `Vagrantfile` file
@@ -2823,15 +2857,15 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| `style` | `"cyan bold"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `vagrant` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ---------------- | ------------------------------------ |
-| version | `Vagrant 2.2.10` | The version of `Vagrant` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ---------------- | --------------------------------- |
+| version | `Vagrant 2.2.10` | The version of `Vagrant` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2860,13 +2894,13 @@ The `vlang` module shows you your currently installed version of V. By default t
| `style` | `"blue bold"` | O estilo do módulo. |
| `disabled` | `false` | Disables the `vlang` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ------- | ------------------------------------ |
-| version | `v0.2` | The version of `v` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ------- | --------------------------------- |
+| version | `v0.2` | The version of `v` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
### Exemplo
@@ -2889,15 +2923,15 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| `format` | `"vcsh [$symbol$repo]($style) "` | O formato do módulo. |
| `disabled` | `false` | Disables the `vcsh` module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | ------------------------------------------- | ------------------------------------ |
-| repo | `dotfiles` if in a VCSH repo named dotfiles | The active repository name |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | `black bold dimmed` | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ------------------------------------------- | --------------------------------- |
+| repo | `dotfiles` if in a VCSH repo named dotfiles | O nome do repositório ativo |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | `black bold dimmed` | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2927,15 +2961,15 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-### Variables
+### Variáveis
-| Variável | Exemplo | Descrição |
-| --------- | -------- | ------------------------------------ |
-| version | `v0.6.0` | The version of `zig` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variável | Exemplo | Descrição |
+| --------- | -------- | --------------------------------- |
+| version | `v0.6.0` | The version of `zig` |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
### Exemplo
@@ -2946,7 +2980,7 @@ By default the the `zig` module shows the currently installed version of [Zig](h
symbol = "⚡️ "
```
-## Custom commands
+## Comandos Personalizados
The `custom` modules show the output of some arbitrary commands.
@@ -2958,13 +2992,13 @@ These modules will be shown if any of the following conditions are met:
- The `when` command returns 0
- The current Operating System (std::env::consts::OS) matchs with `os` field if defined.
-::: tip
+::: Dica
Multiple custom modules can be defined by using a `.`.
:::
-::: tip
+::: Dica
The order in which custom modules are shown can be individually set by including `${custom.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `custom` module will simply show all custom modules in the order they were defined.
@@ -2978,30 +3012,30 @@ The order in which custom modules are shown can be individually set by including
### Opções
-| Opções | Padrão | Descrição |
-| ------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
-| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
-| `shell` | | [See below](#custom-command-shell) |
-| `descrição` | `""` | The description of the module that is shown when running `starship explain`. |
-| `files` | `[]` | The files that will be searched in the working directory for a match. |
-| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
-| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
-| `symbol` | `""` | The symbol used before displaying the command output. |
-| `style` | `"bold green"` | O estilo do módulo. |
-| `format` | `"[$symbol($output )]($style)"` | O formato do módulo. |
-| `disabled` | `false` | Disables this `custom` module. |
-| `os` | | Operating System name on which the module will be shown (unix, linux, macos, windows, ... ) [See possible values](https://doc.rust-lang.org/std/env/consts/constant.OS.html). |
+| Opções | Padrão | Descrição |
+| ------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. |
+| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. |
+| `shell` | | [See below](#custom-command-shell) |
+| `descrição` | `""` | The description of the module that is shown when running `starship explain`. |
+| `files` | `[]` | The files that will be searched in the working directory for a match. |
+| `directories` | `[]` | The directories that will be searched in the working directory for a match. |
+| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
+| `symbol` | `""` | The symbol used before displaying the command output. |
+| `style` | `"bold green"` | O estilo do módulo. |
+| `format` | `"[$symbol($output )]($style)"` | O formato do módulo. |
+| `disabled` | `false` | Desabilita este módulo `custom`. |
+| `os` | | Nome do sistema operacional onde módulo sera exibido (unix, linux, macos, windows, ... ) [Veja os possíveis valores](https://doc.rust-lang.org/std/env/consts/constant.OS.html). |
-### Variables
+### Variáveis
-| Variável | Descrição |
-| --------- | -------------------------------------- |
-| output | The output of shell command in `shell` |
-| symbol | Mirrors the value of option `symbol` |
-| style\* | Mirrors the value of option `style` |
+| Variável | Descrição |
+| --------- | --------------------------------- |
+| output | A saída do comando no `shell` |
+| symbol | Espelha o valor da opção `symbol` |
+| style\* | Espelha o valor da opção `style` |
-\*: This variable can only be used as a part of a style string
+\*: Essa variável só pode ser usada como parte de uma string de estilo
#### Custom command shell
diff --git a/docs/pt-BR/faq/README.md b/docs/pt-BR/faq/README.md
index 4c1e9ec8..c660659d 100644
--- a/docs/pt-BR/faq/README.md
+++ b/docs/pt-BR/faq/README.md
@@ -23,9 +23,9 @@ Sim, ambos podem ser usados para desativar os mulos no prompt. Se seu objetivo g
## As documentações dizem que o Starship é cross-shell. Porque minha shell preferida não é suportada?
-A forma em que o Starship foi construído, faz com que ele seja compatível com qualquer shell. The starship binary is stateless and shell agnostic, so as long as your shell supports prompt customization and shell expansion, Starship can be used.
+A forma em que o Starship foi construído, faz com que ele seja compatível com qualquer shell. O binário do starship é sem estado e shell agnóstico, então se o seu shell suporta customização de prompt e expansão de shell, Starship pode ser utilizado.
-Here's a small example getting Starship working with bash:
+Aqui está um pequeno exemplo de como o Starship funciona com o bash:
```sh
# Recupera o status do último comando executado
@@ -38,27 +38,27 @@ 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.
+A [implementação do Bash](https://github.com/starship/starship/blob/master/src/init/starship.bash) embutida no Starship é um pouco mais complexa para aceitar recursos avançados como o [Módulo de duração de comando](https://starship.rs/config/#command-duration) e para garantir isto o Starship é compatível com configurações pre-instaladas.
-For a list of all flags accepted by `starship prompt`, use the following command:
+Para uma lista de flags aceitos pelo `starship prompt`, use o seguinte comando:
```sh
starship prompt --help
```
-The prompt will use as much context as is provided, but no flags are "required".
+O prompt vai usar o contexto fornecido, mas nenhuma flag é obrigatória.
-## How do I run Starship on Linux distributions with older versions of glibc?
+## Como faço para rodar o Starship em distribuições Linux com versões antigas do glibc?
-If you get an error like "_version 'GLIBC_2.18' not found (required by starship)_" when using the prebuilt binary (for example, on CentOS 6 or 7), you can use a binary compiled with `musl` instead of `glibc`:
+Se você está tendo um erro como "_version 'GLIBC_2.18' not found (required by starship)_" quando usa o binário prebuilt (por exemplo, no CentOS 6 ou 7), você pode usar um binário compilado com `musl` em vez do `glibc`:
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux-musl
```
-## I see symbols I don't understand or expect, what do they mean?
+## Eu vejo símbolos que não entendo ou não esperado, o que isso significa?
-If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+Se você vê símbolos que não reconhece você pode usar `starship explain` para exibir os módulos que estão sendo mostrados no momento.
## Por que não consigo visualizar um simbolo glifo no meu prompt?
diff --git a/docs/pt-BR/guide/README.md b/docs/pt-BR/guide/README.md
index 8fe3e62f..90a593ef 100644
--- a/docs/pt-BR/guide/README.md
+++ b/docs/pt-BR/guide/README.md
@@ -264,9 +264,20 @@
```
+ #### Xonsh
+
+ Adicione o seguinte ao final do arquivo `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **Atenção** Isto vai mudar no futuro. Apenas a versão v0.33 do nu ou superior é suportada. Adicione o seguinte no seu arquivo de configuração do nu. Você pode verificar o local deste arquivo rodando `config path` in nu.
```toml
startup = [
diff --git a/docs/pt-BR/presets/README.md b/docs/pt-BR/presets/README.md
index 4db428f7..2333600b 100644
--- a/docs/pt-BR/presets/README.md
+++ b/docs/pt-BR/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Ocultar versões de Runtime
+
+Está predefinição oculta a versão do runtime da linguagem. Se você trabalha com containers ou ambientes virtualizados, este é para você!
+
+![Captura de tela de ajustes de ocultar versão de runtime](/presets/hide-runtime-versions.png)
+
+### Configuração
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/pt-PT/README.md b/docs/pt-PT/README.md
index 6479d20d..6b4bbaef 100644
--- a/docs/pt-PT/README.md
+++ b/docs/pt-PT/README.md
@@ -18,7 +18,7 @@ features:
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.
+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, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
+
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
@@ -139,7 +140,8 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/pt-PT/advanced-config/README.md b/docs/pt-PT/advanced-config/README.md
index 28b9845d..0d59c601 100644
--- a/docs/pt-PT/advanced-config/README.md
+++ b/docs/pt-PT/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md
index 55ecbba6..49d98bc4 100644
--- a/docs/pt-PT/config/README.md
+++ b/docs/pt-PT/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Options
-| Option | Default | Description |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | The style for the module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | Default | Description |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | The style for the module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1245,6 +1246,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1258,18 +1260,18 @@ The `git_status` module shows symbols representing the state of the repo in your
The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Default | Description |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | The style for the module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Option | Default | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | The style for the module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | The style for the module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2468,6 +2496,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2572,31 +2601,36 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | The style for the module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | Default | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | The style for the module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Example | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
diff --git a/docs/pt-PT/guide/README.md b/docs/pt-PT/guide/README.md
index a89e9e59..5641182f 100644
--- a/docs/pt-PT/guide/README.md
+++ b/docs/pt-PT/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/pt-PT/presets/README.md b/docs/pt-PT/presets/README.md
index 123974b2..c6cc6f60 100644
--- a/docs/pt-PT/presets/README.md
+++ b/docs/pt-PT/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Configuration
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/ru-RU/README.md b/docs/ru-RU/README.md
index 41092d39..1601cecc 100644
--- a/docs/ru-RU/README.md
+++ b/docs/ru-RU/README.md
@@ -18,7 +18,7 @@ features:
footer: Под лицензией ISC | Авторское право © 2019-настоящее Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Быстрая установка доступна для Bash, Fish, ZSH, Ion и PowerShell.
+description: Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship - минимальная, быстрая и бесконе
eval $(starship init ion)
```
+
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
@@ -139,7 +140,8 @@ description: Starship - минимальная, быстрая и бесконе
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship - минимальная, быстрая и бесконе
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index 830efdb1..e40c4c6d 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Строки стиля - это список слов, разделенных пробелами. Слова не чувствительны к регистру (то есть `bold` и `BoLd` считаются одной строкой). Каждое слово может быть одним из следующих:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 638b84bf..0725bdb5 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Опции
@@ -1079,7 +1080,7 @@ asia-northeast1 = "an1"
## Ветвь Git
-Модуль `git_branch` показывает активную ветку репозитория в вашем текущей директории.
+The `git_branch` module shows the active branch of the repo in your current directory.
### Опции
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Опции
-| Параметр | По умолчанию | Описание |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | Длина отображаемого хэша коммита git. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | Формат модуля. |
-| `style` | `"bold green"` | Стиль модуля. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Отключает модуль `git_commit`. |
+| Параметр | По умолчанию | Описание |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | Длина отображаемого хэша коммита git. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | Формат модуля. |
+| `style` | `"bold green"` | Стиль модуля. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Отключает модуль `git_commit`. |
### Переменные
@@ -1154,7 +1155,7 @@ tag_symbol = "🔖 "
## Состояние Git
-Модуль `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.
### Опции
@@ -1198,7 +1199,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1234,7 +1235,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
## Статус Git
-Модуль `git_status` отображает символы, представляющие состояние репозитория в вашей текущей директории.
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### Опции
@@ -1245,6 +1246,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1252,24 +1254,24 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| `renamed` | `"»"` | The format of `renamed` |
| `deleted` | `"✘"` | The format of `deleted` |
| `style` | `"bold red"` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `git_status`. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Переменные
The following variables can be used in `format`:
-| Переменная | Описание |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Отражает значение параметра `style` |
+| Переменная | Описание |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Отражает значение параметра `style` |
\*: Эта переменная может использоваться только в качестве части строки style
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1304,7 +1307,7 @@ renamed = "👅"
deleted = "🗑"
```
-Показывать счетчик впереди/позади для отслеживаемой ветки
+Show ahead/behind count of the branch being tracked
```toml
# ~/.config/starship.toml
@@ -1401,7 +1404,7 @@ format = "via [⎈ $version](bold white) "
## Имя хоста
-Модуль `hostname` отображает имя системного хоста.
+The `hostname` module shows the system hostname.
### Опции
@@ -1475,7 +1478,7 @@ symbol = "🌟 "
## Задачи
-Модуль `jobs` отображает текущее количество запущенных задач. Модуль будет показан только если выполняются фоновые задачи. Модуль покажет количество запущенных задач при наличии более чем 1 задачи, или больше, чем значение конфигурации `threshold`, если оно существует. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
+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. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
::: warning
@@ -1606,7 +1609,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1641,11 +1644,34 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Перевод Строки
-Модуль `line_break` разделяет командную строку на две строки.
+The `line_break` module separates the prompt into two lines.
### Опции
@@ -1705,13 +1731,13 @@ format = "via [🌕 $version](bold blue) "
## Использование памяти
-Модуль `memory_usage` отображает текущую системную память и использование подкачки.
+The `memory_usage` module shows current system memory and swap usage.
-По умолчанию использование подкачки отображается, если общая сумма подкачки системы не равна нулю.
+By default the swap usage is displayed if the total system swap is non-zero.
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1752,7 +1778,7 @@ style = "bold dimmed green"
## Ветка Mercurial
-Модуль `hg_branch` показывает активную ветку репозитория в вашем текущем каталоге.
+The `hg_branch` module shows the active branch of the repo in your current directory.
### Опции
@@ -1830,7 +1856,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. Модуль будет показываться внутри среды nix-shell.
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### Опции
@@ -1994,12 +2020,13 @@ symbol = "☁️ "
## Версия пакета
-Модуль `package` отображается, когда текущий каталог является репозиторием для пакета и показывает его текущую версию. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ symbol = "☁️ "
### Опции
-| Параметр | По умолчанию | Описание |
-| ----------------- | --------------------------------- | --------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | Формат модуля. |
-| `symbol` | `"📦 "` | Символ, используемый перед отображением версии пакета. |
-| `style` | `"bold 208"` | Стиль модуля. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Отключает модуль `package`. |
+| Параметр | По умолчанию | Описание |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | Формат модуля. |
+| `symbol` | `"📦 "` | Символ, используемый перед отображением версии пакета. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | Стиль модуля. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Переменные
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | Стиль модуля. |
| `pyenv_version_name` | `false` | Использовать pyenv для получения версии Python |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2292,7 +2320,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2330,7 +2358,7 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- Текущий каталог содержит файл `Gemfile`
- Текущий каталог содержит файл `.ruby-version`
@@ -2370,7 +2398,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- Текущий каталог содержит файл `Cargo.toml`
- Текущий каталог содержит файл с расширением `.rs`
@@ -2453,7 +2481,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2468,6 +2496,7 @@ The `shell` module shows an indicator for currently used shell.
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | Формат модуля. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | Формат модуля. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | Стиль модуля. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2564,7 +2593,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.
:::
@@ -2572,31 +2601,36 @@ The `status` module displays the exit code of the previous command. The module w
### Опции
-| Параметр | По умолчанию | Описание |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | Стиль модуля. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Параметр | По умолчанию | Описание |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | Стиль модуля. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Переменные
-| Переменная | Пример | Описание |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Отражает значение параметра `symbol` |
-| style\* | | Отражает значение параметра `style` |
+| Переменная | Пример | Описание |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
\*: Эта переменная может использоваться только в качестве части строки style
@@ -2617,7 +2651,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2715,11 +2749,11 @@ format = "[🏎💨 $workspace]($style) "
## Время
-Модуль `time` показывает текущее **локальное** время. Значение конфигурации `format` используется пакетом [`chrono`](https://crates.io/crates/chrono) для контроля того, как отображается время. Ознакомьтесь с [документацией chrono strftime](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html), чтобы увидеть доступные параметры.
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2735,7 +2769,7 @@ format = "[🏎💨 $workspace]($style) "
| `disabled` | `true` | Отключает модуль `time`. |
| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Иначе по умолчанию используется `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Переменные
@@ -2761,7 +2795,7 @@ time_range = "10:00:00-14:00:00"
## Имя пользователя
-Модуль `username` показывает имя активного пользователя. Модуль будет показан, если любое из следующих условий соблюдено:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- Текущий пользователь - root
- Текущий пользователь отличается от залогиненного
@@ -2910,7 +2944,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). Модуль будет показан, если любое из следующих условий соблюдено:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/ru-RU/faq/README.md b/docs/ru-RU/faq/README.md
index 331b1ae0..08073b01 100644
--- a/docs/ru-RU/faq/README.md
+++ b/docs/ru-RU/faq/README.md
@@ -79,7 +79,7 @@ The first line should produce a [snake emoji](https://emojipedia.org/snake/), wh
If either symbol fails to display correctly, your system is still misconfigured. Unfortunately, getting font configuration correct is sometimes difficult. Users on the Discord may be able to help. If both symbols display correctly, but you still don't see them in starship, [file a bug report!](https://github.com/starship/starship/issues/new/choose)
-## How do I uninstall Starship?
+## Как удалить Starship?
Starship is just as easy to uninstall as it is to install in the first place.
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index 2e4e4a11..6f49b56c 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/ru-RU/presets/README.md b/docs/ru-RU/presets/README.md
index 84b9d23e..bdc804f6 100644
--- a/docs/ru-RU/presets/README.md
+++ b/docs/ru-RU/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Конфигурация
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/tr-TR/README.md b/docs/tr-TR/README.md
index f45fc5a9..be48afef 100644
--- a/docs/tr-TR/README.md
+++ b/docs/tr-TR/README.md
@@ -18,7 +18,7 @@ features:
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.
+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, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
+
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
@@ -139,7 +140,8 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/tr-TR/advanced-config/README.md b/docs/tr-TR/advanced-config/README.md
index 6686a795..1b39223d 100644
--- a/docs/tr-TR/advanced-config/README.md
+++ b/docs/tr-TR/advanced-config/README.md
@@ -10,18 +10,17 @@ Bu bölümdeki yapılandırmalar, Starship'in gelecekteki sürümlerinde değiş
## Bash'e Özel ön-komut istemi(pre-prompt) ve ön-çalıştırma(pre-execution) Komutları
-Bash, çoğu diğer kabuklar gibi resmi bir preexec/precmd çerçevesine sahip değildir. Bu yüzden, `Bash'i` tamamen özelleştirmek zordur. However, Starship does give you limited ability to insert your own functions into the prompt-rendering procedure:
+Bash, çoğu diğer kabuklar gibi resmi bir preexec/precmd çerçevesine sahip değildir. Bu yüzden, `Bash'i` tamamen özelleştirmek zordur. Ancak Starship, size istem oluşturma prosedürü sayesinde kendi işlevlerinizi ekleme konusunda sınırlı bir yetenek sağlar:
-- To run a custom function right before the prompt is drawn, define a new function and then assign its name to `starship_precmd_user_func`. For example, to draw a rocket before the prompt, you would do
+- Özel bir işlemi başlatmak için çizimin bitmesinden önce yeni bir işlev oluşturup adlandırmanız gerekmektedir.`starship_precmd_user_func`. Örneğin komut isteminden önce bir roket çizmek isterseniz
```bash
-function blastoff(){
- echo "🚀"
+echo "🚀"
}
-starship_precmd_user_func="blastoff"
+starship_precmd_user_func="fırlatıldı"
```
-- To run a custom function right before a command runs, you can use the [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). However, you **must** trap the DEBUG signal *before* initializing Starship! Starship can preserve the value of the DEBUG trap, but if the trap is overwritten after starship starts up, some functionality will break.
+- Özel bir işlemi başlatmadan hemen önce komut istemini çalıştırıp, [`DEBUG`filtreleme mekanizmasını](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/) kullanabilirsiniz. Bununla birlikte, Starship başlatılmadan hemen *önce*, DEBUG sinyalini filtrelemek<1>**zorundasınız.0>! Starship, DEBUG filtrelemesinin ardından bazı değerleri içerisinde barındırabilir ancak filtreleme işlemi starship başlatıldıktan sonra yazılırsa bazı fonksiyonlar devre dışı kalabilir.
```bash
function blastoff(){
@@ -31,7 +30,7 @@ trap blastoff DEBUG # Trap DEBUG *before* running starship
eval $(starship init bash)
```
-## Change Window Title
+## Pencere Başlığını Değiştirme
Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish even does it by default. Starship does not do this, but it's fairly straightforward to add this functionality to `bash` or `zsh`.
@@ -73,6 +72,7 @@ starship_precmd_user_func="set_win_title"
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/tr-TR/config/README.md b/docs/tr-TR/config/README.md
index 2f115882..93962c27 100644
--- a/docs/tr-TR/config/README.md
+++ b/docs/tr-TR/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Options
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### Options
-| Option | Default | Description |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | The style for the module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | Default | Description |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | The style for the module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1245,6 +1246,7 @@ The `git_status` module shows symbols representing the state of the repo in your
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1258,18 +1260,18 @@ The `git_status` module shows symbols representing the state of the repo in your
The following variables can be used in `format`:
-| Variable | Description |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| Variable | Description |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Options
-| Option | Default | Description |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | The style for the module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Option | Default | Description |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | The style for the module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | The style for the module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2468,6 +2496,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | The style for the module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2572,31 +2601,36 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | The style for the module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | Default | Description |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | The style for the module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| Variable | Example | Description |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
diff --git a/docs/tr-TR/guide/README.md b/docs/tr-TR/guide/README.md
index bcbb3900..11a165ce 100644
--- a/docs/tr-TR/guide/README.md
+++ b/docs/tr-TR/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/tr-TR/presets/README.md b/docs/tr-TR/presets/README.md
index 8d67b830..ac113b6c 100644
--- a/docs/tr-TR/presets/README.md
+++ b/docs/tr-TR/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Yapılandırma
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/vi-VN/README.md b/docs/vi-VN/README.md
index 61cb92a2..0d4c6540 100644
--- a/docs/vi-VN/README.md
+++ b/docs/vi-VN/README.md
@@ -18,7 +18,7 @@ features:
footer: Cấp phép bởi ISC | Bản quyền © 2019-nay Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biến mạnh mẽ cho bất kì shell nào! Hiển thị thông tin bạn cần, trong khi vẫn giữ cho đẹp và nhỏ gọn. Có thể được cài đặt nhanh chóng cho Bash, Fish, ZSH, Ion và PowerShell.
+description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biến mạnh mẽ cho bất kì shell nào! Hiển thị thông tin bạn cần, trong khi vẫn giữ cho đẹp và nhỏ gọn. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship là prompt nhỏ, cực nhanh, và khả năng tuỳ biế
eval $(starship init ion)
```
+
#### Elvish
::: warning Chỉ elvish v0.15 hoặc cao hơn được hỗ trợ. :::
@@ -139,7 +140,8 @@ eval $(starship init ion)
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ eval $(starship init ion)
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/vi-VN/advanced-config/README.md b/docs/vi-VN/advanced-config/README.md
index 70fc8721..c0bcdff1 100644
--- a/docs/vi-VN/advanced-config/README.md
+++ b/docs/vi-VN/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
Chuỗi kiểu là một danh sách các từ, được phân cách bởi khoảng trắng. Các từ là không phân biệt hoa thường (ví dụ. `bold` và `Bold` là hai chuỗi tương đương). Mỗi từ có thể là một trong các từ sau:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md
index 30473895..8755e24b 100644
--- a/docs/vi-VN/config/README.md
+++ b/docs/vi-VN/config/README.md
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### Các tuỳ chọn
@@ -1018,7 +1019,7 @@ format = "via [e $version](bold red) "
## Google Cloud (`gcloud`)
-Mô đun `gcloud` hiển thị cấu hình hiện tại của [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. Cái này dựa trên tập tin `~/.config/gcloud/active_config`, `~/.config/gcloud/configurations/config_{CONFIG NAME}` và biến môi trường `CLOUDSDK_CONFIG`.
+The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
### Các tuỳ chọn
@@ -1079,7 +1080,7 @@ asia-northeast1 = "an1"
## Git Branch
-Mô đun `git_branch` hiển thị nhánh hiệu lực của repo trong thư mục hiện tại của bạn.
+The `git_branch` module shows the active branch of the repo in your current directory.
### Các tuỳ chọn
@@ -1119,19 +1120,19 @@ truncation_symbol = ""
## Git Commit
-Mô đun `git_commit` hiển thị hash commit hiện tại và tag (nếu có) của repo trong thư mục hiện tại của bạn.
+The `git_commit` module shows the current commit hash and also the tag (if any) of the repo in your current directory.
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| -------------------- | ------------------------------------------------------ | --------------------------------------------------------- |
-| `commit_hash_length` | `7` | Độ dài của git commit hash được hiển thị. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | Định dạng cho module. |
-| `style` | `"bold green"` | Kiểu cho module. |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Vô hiệu hiển thị thông tin tag trong mô đun `git_commit`. |
-| `tag_symbol` | `" 🏷 "` | Biểu tượng tag trước thông tin được hiển thị |
-| `disabled` | `false` | Vô hiệu mô đun `git_commit`. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| -------------------- | ---------------------------------- | --------------------------------------------------------- |
+| `commit_hash_length` | `7` | Độ dài của git commit hash được hiển thị. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | Định dạng cho module. |
+| `style` | `"bold green"` | Kiểu cho module. |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Vô hiệu hiển thị thông tin tag trong mô đun `git_commit`. |
+| `tag_symbol` | `" 🏷 "` | Biểu tượng tag trước thông tin được hiển thị |
+| `disabled` | `false` | Vô hiệu mô đun `git_commit`. |
### Các biến
@@ -1154,7 +1155,7 @@ tag_symbol = "🔖 "
## Git State
-Mô đun `git_state` sẽ hiển hiển thị trong các thư mục là một phần của gt repository và những nơi tồn tại một hoạt động trong tiến trình như _REBASING_, _BISECTING_. Nếu có thông tin tiến trình (ví dụ, REBASING 3/10), thông tin đó cũng sẽ được hiển thị.
+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.
### Các tuỳ chọn
@@ -1198,7 +1199,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
::: thử thuật
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1234,7 +1235,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
## Git Status
-Mô đun `git_status` hiển thị các biểu tượng đại diện cho trạng thái của repo trong thư mục hiện tại của bạn.
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### Các tuỳ chọn
@@ -1245,42 +1246,43 @@ Mô đun `git_status` hiển thị các biểu tượng đại diện cho trạn
| `ahead` | `"⇡"` | Định dạng của `ahead` |
| `behind` | `"⇣"` | Định dạng của `behind` |
| `diverged` | `"⇕"` | Định dạng của `diverged` |
-| `untracked` | `"?"` | Định dạng của `untracked` |
-| `stashed` | `"$"` | Định dạng của `stashed` |
-| `modified` | `"!"` | Định dạng của `modified` |
-| `staged` | `"+"` | Định dạng của `modified` |
-| `renamed` | `"»"` | Định dạng của `renamed` |
-| `deleted` | `"✘"` | Định dạng của `deleted` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
| `style` | `"bold red"` | Kiểu cho module. |
-| `disabled` | `false` | Vô hiệu `git_status` module. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Các biến
-Các biến dưới đây có thể được sử dụng trong `format`:
+The following variables can be used in `format`:
-| Biến | Mô tả |
-| -------------- | ----------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut cho `$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Hiển thị format string của `diverged` `ahead` or `behind` dựa trên trạng thái hiện tại của repo |
-| `conflicted` | Hiển thị `conflicted` khi nhánh này có merge conflicts. |
-| `untracked` | Hiển thị `untracked` khi có tệp tin untracked trong thư mục làm việc. |
-| `stashed` | Hiển thị `stashed` khi một stash tồn tại trong local repository. |
-| `modified` | Hiển thị `modified` khi có tệp tin được chỉnh sửa trong thư mục làm việc. |
-| `staged` | Hiển thị `staged` khi một tệp tin mới được thêm vào staging area. |
-| `renamed` | Hiển thị `renamed` khi một tệp tin đổi tên đã được thêm vào staging area. |
-| `deleted` | Hiển thị `deleted` khi một tệp tin bị xóa đã được thêm vào staging area. |
-| style\* | Giá trị ghi đè của `style` |
+| Biến | Mô tả |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut cho `$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Hiển thị `conflicted` khi nhánh này có merge conflicts. |
+| `untracked` | Hiển thị `untracked` khi có tệp tin untracked trong thư mục làm việc. |
+| `stashed` | Hiển thị `stashed` khi một stash tồn tại trong local repository. |
+| `modified` | Hiển thị `modified` khi có tệp tin được chỉnh sửa trong thư mục làm việc. |
+| `staged` | Hiển thị `staged` khi một tệp tin mới được thêm vào staging area. |
+| `renamed` | Hiển thị `renamed` khi một tệp tin đổi tên đã được thêm vào staging area. |
+| `deleted` | Hiển thị `deleted` khi một tệp tin bị xóa đã được thêm vào staging area. |
+| style\* | Giá trị ghi đè của `style` |
\*: Biến này có thể chỉ được sử dụng như một phần của style string
-Các biến sau có thể được sử dụng trong `diverged`:
+The following variables can be used in `diverged`:
| Biến | Mô tả |
| -------------- | --------------------------------------------- |
| `ahead_count` | Số lượng commit phía trước của nhánh tracking |
| `behind_count` | Số lượng commit phía sau nhánh tracking |
-Các biến sau có thể được sử dụng trong `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`:
+The following variables can be used in `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`:
| Biến | Mô tả |
| ------- | ----------------------------- |
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1304,7 +1307,7 @@ renamed = "👅"
deleted = "🗑"
```
-Hiển thị tổng số nhánh phía trước/phía sau của nhánh được track
+Show ahead/behind count of the branch being tracked
```toml
# ~/.config/starship.toml
@@ -1401,7 +1404,7 @@ format = "via [⎈ $version](bold white) "
## Hostname
-Mô đun `hostname` hiển thị hostnam hệ thống.
+The `hostname` module shows the system hostname.
### Các tuỳ chọn
@@ -1475,7 +1478,7 @@ symbol = "🌟 "
## Jobs
-`jobs` module cho biết số lượng các jobs đang chạy. Mô đun sẽ được hiển thị chỉ khi có background jobs đang chạy. Mô đúnẽ hiển thị số lượng jobs đang chỵ nếu có nhiều hơn 1 jobs, hoặc nhiều hơn giá trị cấu hình `threshold`, nếu nó tồn tại. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
+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. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
::: cảnh báo
@@ -1602,11 +1605,11 @@ kotlin_binary = "kotlinc"
## Kubernetes
-Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. Namespace cần được thiết lập trong tệp tin kubeconfig, cài này có thể được thực thi thông qua `kubectl config set-context starship-cluster --namespace astronaut`. Nếu biến môi trường `$KUBECONFIG` được thiết lập, mô đun sẽ sử dụng cái đó nếu nó không sử dụng `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: thử thuật
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1641,6 +1644,29 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
@@ -1711,7 +1737,7 @@ By default the swap usage is displayed if the total system swap is non-zero.
::: thử thuật
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2000,6 +2026,7 @@ The `package` module is shown when the current directory is the repository for a
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` module is shown when the current directory is the repository for a
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| ----------------- | --------------------------------- | ---------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | Định dạng cho module. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
-| `style` | `"bold 208"` | Kiểu cho module. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | Định dạng cho module. |
+| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | Kiểu cho module. |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Các biến
@@ -2187,7 +2215,7 @@ Mặc định module sẽ được hiển thị nếu có bất kì điều ki
| `style` | `"yellow bold"` | Kiểu cho module. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Tên tệp nào sẽ kích hoạt mô-đun này |
| `detect_folders` | `[]` | Thư mục nào sẽ kích hoạt mô-đun này |
@@ -2292,7 +2320,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2330,7 +2358,7 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Gemfile` file
- The current directory contains a `.ruby-version` file
@@ -2370,7 +2398,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Cargo.toml` file
- The current directory contains a file with the `.rs` extension
@@ -2453,7 +2481,7 @@ The `shell` module shows an indicator for currently used shell.
::: thử thuật
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2468,6 +2496,7 @@ Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiế
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | Định dạng cho module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | Định dạng cho module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | Kiểu cho module. |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2564,7 +2593,7 @@ The `status` module displays the exit code of the previous command. The module w
::: thử thuật
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2572,31 +2601,36 @@ Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiế
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | Kiểu cho module. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | Kiểu cho module. |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Các biến
-| Biến | Ví dụ | Mô tả |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
-| style\* | | Giá trị ghi đè của `style` |
+| Biến | Ví dụ | Mô tả |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol` |
+| style\* | | Giá trị ghi đè của `style` |
\*: Biến này có thể chỉ được sử dụng như một phần của style string
@@ -2617,7 +2651,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2719,7 +2753,7 @@ The `time` module shows the current **local** time. The `format` configuration v
::: thử thuật
-Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiết lập `disabled` sang `false` trong tập tin cấu hình của bạn.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2761,7 +2795,7 @@ time_range = "10:00:00-14:00:00"
## Username
-The `username` module shows active user's username. Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- The current user is root
- The current user isn't the same as the one that is logged in
@@ -2910,7 +2944,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). Module cho sẽ được hiện nếu bất kì điều kiện nào dưới đây thoả mãn:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/vi-VN/guide/README.md b/docs/vi-VN/guide/README.md
index d302eac7..70b090c0 100644
--- a/docs/vi-VN/guide/README.md
+++ b/docs/vi-VN/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/vi-VN/presets/README.md b/docs/vi-VN/presets/README.md
index 89249350..bde892c1 100644
--- a/docs/vi-VN/presets/README.md
+++ b/docs/vi-VN/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### Cấu hình
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md
index eccd3c4c..48a9cb7a 100644
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@ -18,7 +18,7 @@ features:
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship:可用于各种 Shell 的提示符"
-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.
+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, Tcsh, Elvish, Nu, Xonsh, and PowerShell.
---
@@ -116,6 +116,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval $(starship init ion)
```
+
#### Elvish
::: warning Only elvish v0.15 or higher is supported. :::
@@ -139,7 +140,8 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
eval `starship init tcsh`
```
- #### Nushell
+
+ #### Nushell
::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
@@ -151,3 +153,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index e9ad0539..ea8a3701 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
样式字符串是用空格分隔的单词列表。 其中单词不是大小写敏感的(例如 `bold` 和 `BoLd` 被视为同一字符串)。 每个单词可以是以下之一:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index 5b0c8ee1..ae48f388 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -21,7 +21,7 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being
disabled = true
```
-You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
+您可以使用 `STARSHIP_CONFIG` 环境变量更改默认配置文件的位置:
```sh
export STARSHIP_CONFIG=~/.starship/config.toml
@@ -35,7 +35,7 @@ $ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
### 日志
-By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to a instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable:
+默认情况下,Starship 会将警告和错误日志记录到文件 `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`. 其中 session key 与您的终端实例相对应。 不过,这也可以使用 `STARSHIP_CACHE` 环境变量来修改:
```sh
export STARSHIP_CACHE=~/.starship/cache
@@ -49,7 +49,7 @@ $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
### 术语
-**组件(Module)**:提示符的组成部分,通过来自系统的上下文信息向用户显示各种信息。 For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
+**组件(Module)**:提示符的组成部分,通过来自系统的上下文信息向用户显示各种信息。 例如,如果您当前的目录是 Node.js 项目,“nodejs” 模块会显示当前安装在您电脑上的 Node.js 的版本。
**Variable**: Smaller sub-components that contain information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of Node.js.
@@ -142,12 +142,12 @@ format = '''
### 配置项
-| Option | 默认值 | 描述 |
-| ----------------- | ----------------------------- | ------------------------------------------------------------ |
-| `format` | [见下文](#default-prompt-format) | Configure the format of the prompt. |
-| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 |
-| `command_timeout` | `500` | Timeout for commands executed by starship (in milliseconds). |
-| `add_newline` | `true` | Inserts blank line between shell prompts. |
+| Option | 默认值 | 描述 |
+| ----------------- | ----------------------------- | --------------------------- |
+| `format` | [见下文](#default-prompt-format) | 配置提示符的格式。 |
+| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 |
+| `command_timeout` | `500` | Startship 执行命令的超时时间(单位:毫秒)。 |
+| `add_newline` | `true` | 在 shell 提示符之间插入空行。 |
### 示例
@@ -167,7 +167,7 @@ scan_timeout = 10
add_newline = false
```
-### Default Prompt Format
+### 默认提示符格式
The default `format` is used to define the format of the prompt, if empty or no `format` is provided. 默认设置如下:
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### 配置项
@@ -1079,7 +1080,7 @@ asia-northeast1 = "an1"
## Git Branch
-`git_branch` 组件显示当前目录的 git 仓库的活动分支。
+The `git_branch` module shows the active branch of the repo in your current directory.
### 配置项
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### 配置项
-| Option | 默认值 | 描述 |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | 显示的 git 提交哈希值的长度。 |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | 组件格式化模板。 |
-| `style` | `"bold green"` | 此组件的样式。 |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | 禁用 `git_commit` 组件。 |
+| Option | 默认值 | 描述 |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | 显示的 git 提交哈希值的长度。 |
+| `format` | `"[\\($hash$tag\\)]($style) "` | 组件格式化模板。 |
+| `style` | `"bold green"` | 此组件的样式。 |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | 禁用 `git_commit` 组件。 |
### Variables
@@ -1154,7 +1155,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.
### 配置项
@@ -1198,7 +1199,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1234,7 +1235,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
## Git Status
-`git_status`组件通过相应的符号显示您当前目录中 git 仓库的状态。
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### 配置项
@@ -1245,6 +1246,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1252,24 +1254,24 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| `renamed` | `"»"` | The format of `renamed` |
| `deleted` | `"✘"` | The format of `deleted` |
| `style` | `"bold red"` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `git_status` 组件。 |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
The following variables can be used in `format`:
-| 字段 | 描述 |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | `style`对应值 |
+| 字段 | 描述 |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | `style`对应值 |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1401,7 +1404,7 @@ format = "via [⎈ $version](bold white) "
## Hostname
-`hostname` 组件显示系统主机名。
+The `hostname` module shows the system hostname.
### 配置项
@@ -1475,7 +1478,7 @@ symbol = "🌟 "
## Jobs
-`jobs` 组件显示当前正在运行的任务数量。 仅当有后台任务运行时,此组件才会显示。 如果有超过 1 个作业,模块将显示正在运行的作业数量,如果配置了 `threshold` 字段,则使用它作为显示作业数量的下限。 If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
+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. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
::: warning
@@ -1606,7 +1609,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1641,11 +1644,34 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## Line Break
-`line_break` 组件将提示分隔为两行。
+The `line_break` module separates the prompt into two lines.
### 配置项
@@ -1705,13 +1731,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.
:::
@@ -1752,7 +1778,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.
### 配置项
@@ -1830,7 +1856,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. 当处于一个 nix-shell 环境中时,此组件会被显示。
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### 配置项
@@ -1994,12 +2020,13 @@ symbol = "☁️ "
## Package Version
-当前目录是软件包的代码仓库时,将显示 `package` 组件,并显示软件包当前版本。 The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ symbol = "☁️ "
### 配置项
-| Option | 默认值 | 描述 |
-| ----------------- | --------------------------------- | --------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | 组件格式化模板。 |
-| `symbol` | `"📦 "` | 这个字段的内容会显示在当前软件包版本之前。 |
-| `style` | `"bold 208"` | 此组件的样式。 |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | 禁用 `package` 组件。 |
+| Option | 默认值 | 描述 |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | 组件格式化模板。 |
+| `symbol` | `"📦 "` | 这个字段的内容会显示在当前软件包版本之前。 |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | 此组件的样式。 |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2163,7 +2191,7 @@ format = "via [$symbol$version](bold white)"
The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
-如果`pyenv_version_name`被设置为`true`, 本组件将会展示pyenv版本名。 否则则显示通过`python --version`获得的版本号
+If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
By default the module will be shown if any of the following conditions are met:
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | 此组件的样式。 |
| `pyenv_version_name` | `false` | 使用 pyenv 获取 Python 版本 |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2292,7 +2320,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2330,7 +2358,7 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- 当前目录包含 `Gemfile` 文件
- The current directory contains a `.ruby-version` file
@@ -2370,7 +2398,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- 当前目录包含 `Cargo.toml` 文件
- 当前目录包含一个使用 `.rs` 扩展名的文件
@@ -2453,7 +2481,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2468,6 +2496,7 @@ The `shell` module shows an indicator for currently used shell.
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | 组件格式化模板。 |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | 组件格式化模板。 |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | 此组件的样式。 |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2564,7 +2593,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.
:::
@@ -2572,31 +2601,36 @@ The `status` module displays the exit code of the previous command. The module w
### 配置项
-| Option | 默认值 | 描述 |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | 此组件的样式。 |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | 默认值 | 描述 |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | 此组件的样式。 |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| 字段 | 示例 | 描述 |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | `symbol`对应值 |
-| style\* | | `style`对应值 |
+| 字段 | 示例 | 描述 |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| symbol | | `symbol`对应值 |
+| style\* | | `style`对应值 |
\*: This variable can only be used as a part of a style string
@@ -2617,7 +2651,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2715,11 +2749,11 @@ format = "[🏎💨 $workspace]($style) "
## Time
-`time` 组件显示当前的 **本地** 时间。 `format` 字段值会提供给 [`chrono`](https://crates.io/crates/chrono) crate 用来控制时间显示方式。 请参阅 [chrono strftime 文档](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) 以了解可用格式选项。
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2735,7 +2769,7 @@ format = "[🏎💨 $workspace]($style) "
| `disabled` | `true` | 禁用 `time` 组件。 |
| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. 否则,其默认值为 `"%T"`。 Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Variables
@@ -2761,7 +2795,7 @@ time_range = "10:00:00-14:00:00"
## Username
-`username` 组件显示当前活跃的用户名。 此组件只有满足以下条件之一时才会被显示:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- 当前用户是 root
- 当前用户与登录用户不相同
@@ -2910,7 +2944,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 此组件只有满足以下条件之一时才会被显示:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index ad75e8ef..833361c2 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -264,6 +264,17 @@
```
+ #### Xonsh
+
+ Add the following to the end of `~/.xonshrc`:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
**Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
diff --git a/docs/zh-CN/presets/README.md b/docs/zh-CN/presets/README.md
index 413b7403..d24d336a 100644
--- a/docs/zh-CN/presets/README.md
+++ b/docs/zh-CN/presets/README.md
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## Hide Runtime Versions
+
+This preset hides the version of language runtimes. If you work in containers or virtualized environments, this one is for you!
+
+![Screenshot of Hide Runtime Versions preset](/presets/hide-runtime-versions.png)
+
+### 配置
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```
diff --git a/docs/zh-TW/README.md b/docs/zh-TW/README.md
index 81086107..84b2d0ce 100644
--- a/docs/zh-TW/README.md
+++ b/docs/zh-TW/README.md
@@ -8,17 +8,17 @@ actionLink: ./guide/
features:
-
title: 兼容性優先
- details: 能夠在最常見的作業系統之中最常見的 shell 上運作。 到處使用它吧!
+ details: 能夠在最常見的作業系統之中最常見的 shell 上運作。 在各處使用它吧!
-
- title: 由 Rust 支持
- details: 帶來同類最快速度以及 Rust 的安全性,讓你的提示字元盡可能快速與可靠。
+ title: 以 Rust 開發
+ details: 帶來同類中最快的速度以及 Rust 的安全性,讓你的提示字元盡可能快速與可靠。
-
title: 可客製化
details: 任何些微的細節都可以隨你喜愛地客製化,讓你的提示字元可以隨你所欲地最小化或是充滿各種特色。
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship:跨 Shell 提示字元"
-description: Starship 是適合任何 shell 的最小、極速、高度客製化的提示字元! 顯示你需要的訊息,同時保持順暢與最小化。 有針對 Bash、Fish、ZSH、Ion 與 Powershell 的快速安裝指南。
+description: Starship 是適合任何 shell 的最小、極速、高度客製化的提示字元! 顯示你需要的訊息,同時保持順暢與最小化。 針對 Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh 以及 Powershell 有快速安裝可供使用。
---
@@ -30,7 +30,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
### 先決要求
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal.
+- 安裝至少一個 [Nerd Font](https://www.nerdfonts.com/) 字體,並在終端中啟用。
### 快速安裝
@@ -99,7 +99,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
#### Powershell
- 將以下內容放到 `Microsoft.PowerShell_profile.ps1` 的結尾。 你可以藉由在 PowerShell 查詢 `$PROFILE` 變數以取得這個檔案的位置。 一般來說檔案會出現在 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或是在 -Nix 上的話會在 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
+ 將以下內容放到 `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)
@@ -116,6 +116,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
eval $(starship init ion)
```
+
#### Elvish
::: warning 只有 elvish v0.15 或以上版本才有支援 :::
@@ -139,9 +140,10 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
eval `starship init tcsh`
```
- #### Nushell
- ::: warning This will change in the future. Only nu version v0.33 or higher is supported. ::: Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ #### Nushell
+
+ ::: warning 這項設定可能在未來改變 只支援 nu v0.33 以上的版本。 ::: 將以下內容放到你的 nu 設定檔裡, 你可以透過在 nu 執行 `config path` 指令來取得設定檔的位置。
```toml
startup = [
@@ -151,3 +153,14 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
]
prompt = "starship_prompt"
```
+
+
+ #### Xonsh
+
+ 將以下內容放到 `~/.xonshrc` 的結尾:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
diff --git a/docs/zh-TW/advanced-config/README.md b/docs/zh-TW/advanced-config/README.md
index 08e32c05..a2ea379c 100644
--- a/docs/zh-TW/advanced-config/README.md
+++ b/docs/zh-TW/advanced-config/README.md
@@ -73,6 +73,7 @@ starship_precmd_user_func="set_win_title"
風格字串是一個以空白分開的單詞清單。 單字並不會區分大小寫(換句話說,`bold` 與 `BoLd` 是被當作兩個相同的字串)。 每個單詞可以是下列其中之一:
- `bold`
+ - `italic`
- `underline`
- `dimmed`
- `inverted`
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index a1b594f5..f4cb254b 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -1,6 +1,6 @@
# 設定
-為了開始設定 Starship,請建立下右檔案: `~/.config/starship.toml`.
+要開始設定 Starship,請先建立檔案: `~/.config/starship.toml`.
```sh
mkdir -p ~/.config && touch ~/.config/starship.toml
@@ -21,13 +21,13 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being
disabled = true
```
-You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
+你可以透過更改環境變數 `STARSHIP_CONFIG` 來變更設定檔存放的位置:
```sh
export STARSHIP_CONFIG=~/.starship/config.toml
```
-Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
+等同於在 PowersShell(Windows)的 `$PROFILE` 中添加下列文字:
```powershell
$ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
@@ -41,7 +41,7 @@ By default starship logs warnings and errors into a file named `~/.cache/starshi
export STARSHIP_CACHE=~/.starship/cache
```
-Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
+等同於在 PowersShell(Windows)的 `$PROFILE` 中添加下列文字:
```powershell
$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
@@ -935,6 +935,7 @@ Example: following configuration will display value of USER environment variable
[env_var.USER]
default = "unknown user"
```
+:::
### 選項
@@ -1079,7 +1080,7 @@ asia-northeast1 = "an1"
## Git 分支
-`git_branch` 模組顯示現在的資料夾中使用中的儲存庫的分支。
+The `git_branch` module shows the active branch of the repo in your current directory.
### 選項
@@ -1123,15 +1124,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### 選項
-| Option | 預設 | 說明 |
-| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | 這個模組的風格。 |
-| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | 預設 | 說明 |
+| -------------------- | ---------------------------------- | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash$tag\\)]($style) "` | The format for the module. |
+| `style` | `"bold green"` | 這個模組的風格。 |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `" 🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1154,7 +1155,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.
### 選項
@@ -1198,7 +1199,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1234,7 +1235,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
## Git Status
-`git_status` 模組顯示用來表示現在資料夾之中儲存庫狀態的符號。
+The `git_status` module shows symbols representing the state of the repo in your current directory.
### 選項
@@ -1245,6 +1246,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| `ahead` | `"⇡"` | The format of `ahead` |
| `behind` | `"⇣"` | The format of `behind` |
| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
| `untracked` | `"?"` | The format of `untracked` |
| `stashed` | `"$"` | The format of `stashed` |
| `modified` | `"!"` | The format of `modified` |
@@ -1252,24 +1254,24 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
| `renamed` | `"»"` | The format of `renamed` |
| `deleted` | `"✘"` | The format of `deleted` |
| `style` | `"bold red"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `git_status` 模組。 |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
The following variables can be used in `format`:
-| 變數 | 說明 |
-| -------------- | --------------------------------------------------------------------------------------------- |
-| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
-| `ahead_behind` | Displays `diverged` `ahead` or `behind` format string based on the current status of the repo |
-| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
-| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
-| `stashed` | Displays `stashed` when a stash exists for the local repository. |
-| `modified` | Displays `modified` when there are file modifications in the working directory. |
-| `staged` | Displays `staged` when a new file has been added to the staging area. |
-| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
-| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
-| style\* | Mirrors the value of option `style` |
+| 變數 | 說明 |
+| -------------- | ------------------------------------------------------------------------------------------------------------- |
+| `all_status` | Shortcut for`$conflicted$stashed$deleted$renamed$modified$staged$untracked` |
+| `ahead_behind` | Displays `diverged`, `ahead`, `behind` or `up_to_date` format string based on the current status of the repo. |
+| `conflicted` | Displays `conflicted` when this branch has merge conflicts. |
+| `untracked` | Displays `untracked` when there are untracked files in the working directory. |
+| `stashed` | Displays `stashed` when a stash exists for the local repository. |
+| `modified` | Displays `modified` when there are file modifications in the working directory. |
+| `staged` | Displays `staged` when a new file has been added to the staging area. |
+| `renamed` | Displays `renamed` when a renamed file has been added to the staging area. |
+| `deleted` | Displays `deleted` when a file's deletion has been added to the staging area. |
+| style\* | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1296,6 +1298,7 @@ conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
+up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
@@ -1401,7 +1404,7 @@ format = "via [⎈ $version](bold white) "
## 主機名稱
-`hostname` 模組顯示系統的主機名稱。
+The `hostname` module shows the system hostname.
### 選項
@@ -1475,7 +1478,7 @@ symbol = "🌟 "
## 工作
-`jobs` 模組顯示現在正在執行中的工作。 這個模組只會在有背景工作正在執行時顯示。 這個模組會在工作數量超過一個,或者有設定 `threshold` 時且數量超過設定值時,顯示工作的數量。 If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
+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. If `threshold` is set to 0, then the module will also show when there are 0 jobs running.
::: warning
@@ -1606,7 +1609,7 @@ Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/co
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1641,11 +1644,34 @@ format = 'on [⛵ $context \($namespace\)](dimmed green) '
disabled = false
[kubernetes.context_aliases]
"dev.local.cluster.k8s" = "dev"
+".*/openshift-cluster/.*" = "openshift"
+"gke_.*_(?P
[\\w-]+)" = "gke-$cluster"
+```
+
+#### Regex Matching
+
+Additional to simple aliasing, `context_aliases` also supports extended matching and renaming using regular expressions.
+
+The regular expression must match on the entire kube context, capture groups can be referenced using `$name` and `$N` in the replacement. This is more explained in the [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace) documentation.
+
+Long and automatically generated cluster names can be identified and shortened using regular expressions:
+
+```toml
+[kubernetes.context_aliases]
+# OpenShift contexts carry the namespace and user in the kube context: `namespace/name/user`:
+".*/openshift-cluster/.*" = "openshift"
+# Or better, to rename every OpenShift cluster at once:
+".*/(?P[\\w-]+)/.*" = "$cluster"
+
+# Contexts from GKE, AWS and other cloud providers usually carry additional information, like the region/zone.
+# The following entry matches on the GKE format (`gke_projectname_zone_cluster-name`)
+# and renames every matching kube context into a more readable format (`gke-cluster-name`):
+"gke_.*_(?P[\\w-]+)" = "gke-$cluster"
```
## 換行
-`line_break` 模組將提示字元分成兩行。
+The `line_break` module separates the prompt into two lines.
### 選項
@@ -1705,13 +1731,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.
:::
@@ -1830,7 +1856,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. 這個模組會在 nix-shell 環境中顯示。
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### 選項
@@ -1994,12 +2020,13 @@ symbol = "☁️ "
## 套件版本
-The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並顯示他的現在版本。 The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
- [**nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
- [**poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
+- [**python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
- [**composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
- [**gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
- [**julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
@@ -2013,13 +2040,14 @@ The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並
### 選項
-| Option | 預設 | 說明 |
-| ----------------- | --------------------------------- | --------------------------------------------------------- |
-| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
-| `symbol` | `"📦 "` | 顯示在套件的版本之前的符號。 |
-| `style` | `"bold 208"` | 這個模組的風格。 |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | 停用 `package` 模組。 |
+| Option | 預設 | 說明 |
+| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"is [$symbol$version]($style) "` | The format for the module. |
+| `symbol` | `"📦 "` | 顯示在套件的版本之前的符號。 |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `style` | `"bold 208"` | 這個模組的風格。 |
+| `display_private` | `false` | Enable displaying version for packages marked as private. |
+| `disabled` | `false` | Disables the `package` module. |
### Variables
@@ -2187,7 +2215,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `"yellow bold"` | 這個模組的風格。 |
| `pyenv_version_name` | `false` | 使用 pyenv 取得 Python 的版本。 |
| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3, "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
+| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `["py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
@@ -2292,7 +2320,7 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a file with `.red` or `.reds` extension
@@ -2330,7 +2358,7 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
- 目前資料夾中有一個 `Gemfile` 檔案
- The current directory contains a `.ruby-version` file
@@ -2370,7 +2398,7 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
- 目前資料夾中有一個 `Cargo.toml` 檔案
- 現在資料夾中包含一個檔案具有 `.rs` 副檔名
@@ -2453,7 +2481,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2468,6 +2496,7 @@ The `shell` module shows an indicator for currently used shell.
| `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. |
+| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `$indicator` | The format for the module. |
| `disabled` | `true` | Disables the `shell` module. |
@@ -2500,7 +2529,7 @@ The `shlvl` module shows the current `SHLVL` ("shell level") environment variabl
| ----------- | ---------------------------- | ------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `style` | `"bold yellow"` | 這個模組的風格。 |
| `disabled` | `true` | Disables the `shlvl` module. |
@@ -2564,7 +2593,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.
:::
@@ -2572,31 +2601,36 @@ The `status` module displays the exit code of the previous command. The module w
### 選項
-| Option | 預設 | 說明 |
-| ----------------------- | ----------------------------- | ---------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | 這個模組的風格。 |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `disabled` | `true` | Disables the `status` module. |
+| Option | 預設 | 說明 |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
+| `format` | `"[$symbol$status]($style) "` | The format of the module |
+| `symbol` | `"✖"` | The symbol displayed on program error |
+| `success_symbol` | `"✔️"` | The symbol displayed on program success |
+| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
+| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
+| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
+| `style` | `"bold red"` | 這個模組的風格。 |
+| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
+| `map_symbol` | `false` | Enable symbols mapping from exit code |
+| `pipestatus` | `false` | Enable pipestatus reporting |
+| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
+| `disabled` | `true` | Disables the `status` module. |
### Variables
-| 變數 | 範例 | 說明 |
-| -------------- | ------- | -------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| 變數 | 範例 | 說明 |
+| -------------- | ------- | ------------------------------------------------------------------------------------------- |
+| status | `127` | The exit code of the last command |
+| int | `127` | The exit code of the last command |
+| common_meaning | `ERROR` | Meaning of the code if not a signal |
+| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
+| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
+| maybe_int | `7` | Contains the exit code number when no meaning has been found |
+| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
+| 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
@@ -2617,7 +2651,7 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `Package.swift` file
- The current directory contains a file with the `.swift` extension
@@ -2715,11 +2749,11 @@ format = "[🏎💨 $workspace]($style) "
## 時間
-`time` 模組顯示目前的**當地**時間. `format` 設定值被 [`chrono`](https://crates.io/crates/chrono) crate 用來控制時間如何顯示。 請看 [chrono 的 strftime 文件](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)來了解有那些選項可以使用。
+The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
::: tip
-這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2735,7 +2769,7 @@ format = "[🏎💨 $workspace]($style) "
| `disabled` | `true` | 停用 `time` 模組。 |
| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format |
-If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. 不然的話,它會被預設為 `"%T"`。 Manually setting `time_format` will override the `use_12hr` setting.
+If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting.
### Variables
@@ -2761,7 +2795,7 @@ time_range = "10:00:00-14:00:00"
## 使用者名稱
-`username` 模組顯示現在使用中的使用者名稱。 這個模組在下列其中一個條件達成時顯示:
+The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
- 目前使用者為 root
- 目前使用者並非登入時的使用者
@@ -2910,7 +2944,7 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). 這個模組在下列其中一個條件達成時顯示:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
- The current directory contains a `.zig` file
diff --git a/docs/zh-TW/faq/README.md b/docs/zh-TW/faq/README.md
index 2287c40b..33690cea 100644
--- a/docs/zh-TW/faq/README.md
+++ b/docs/zh-TW/faq/README.md
@@ -2,39 +2,39 @@
## 主頁示例圖中的效果是使用哪些配置達成的?
-- **終端模擬器**: [iTerm2](https://iterm2.com/)
- - **模擬器主題**: Minimal
- - **配色方案**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
- - **字型**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
-- **Shell**: [Fish Shell](https://fishshell.com/)
- - **fish 設定**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- - **Prompt**: [Starship](https://starship.rs/)
+- **終端模擬器**:[iTerm2](https://iterm2.com/)
+ - **模擬器主題**:Minimal
+ - **配色方案**:[Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
+ - **字型**:[FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
+- **Shell**:[Fish Shell](https://fishshell.com/)
+ - **Fish 設定**:[matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
+ - **提示字元**:[Starship](https://starship.rs/)
## 我該如何做出示例圖中的命令自動補齊效果?
有關補全或是自動補齊的效果,主要是借助你使用的 Shell 本身提供的服務來達成。 而示例中環境是使用 [Fish Shell](https://fishshell.com/),原生就提供了補全功能。 如果你的環境是使用 Z Shell (zsh),建議參考一下 [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)。
-## Do top level `format` and `.disabled` do the same thing?
+## 最上層的 `format` 與 `.disabled` 的功能一樣嗎?
對,他們都可以被用來關閉提示字元中的 module。 如果你單純只是想關閉 modules,推薦使用 `.disabled`,原因如下所述:
- 明確性:關閉 modules 的動作比在 top level `format` 標記忽略更爲清楚易懂
- 當 Starship 更新後,新組件能被自動加入到提示字元中
-## The docs say Starship is cross-shell. Why isn't my preferred shell supported?
+## 文件中提到 Starship 是跨 shell 的。 為什麼我偏好的 shell 沒有被支持?
Starship 構建方式基本上確立了他應當能支援所有 shell 的基礎。 Starship 的執行檔是不會紀錄狀態且不假設底下是哪種 Shell 的,所以只要你的 Shell 支援客製化命令提示字元以及 shell expansion,就應該要能使用 Starship。
以下是在 bash 上使用 Starship 的簡單例子:
```sh
-# Get the status code from the last command executed
+# 從最後一個執行的指令獲得當前 status code
STATUS=$?
-# Get the number of jobs running.
+# 獲得當前正在執行的工作數量
NUM_JOBS=$(jobs -p | wc -l)
-# Set the prompt to the output of `starship prompt`
+# 設置提示字元的輸出為 `starship prompt`
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
```
@@ -60,24 +60,24 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux
如果你看見了一些不認得的符號,你可以使用 `starship explain` 來列出當下顯示出的 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:
+會導致這種狀況,通常是因為系統配置錯誤。 有些 Linux 發行版不支援隨開隨用的字體。 你需要確保:
-- Your locale is set to a UTF-8 value, like `de_DE.UTF-8` or `ja_JP.UTF-8`. If `LC_ALL` is not a UTF-8 value, [you will need to change it](https://www.tecmint.com/set-system-locales-in-linux/).
-- You have an emoji font installed. Most systems come with an emoji font by default, but some (notably Arch Linux) do not. You can usually install one through your system's package manager--[noto emoji](https://www.google.com/get/noto/help/emoji/) is a popular choice.
-- You are using a [Nerd Font](https://www.nerdfonts.com/).
+- 你的當地語言設置為 UTF-8,如 `de_DE.UTF-8` 或 `ja_JP.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/)。
-To test your system, run the following commands in a terminal:
+要測試你的系統,你可以在終端中執行以下指令:
```sh
echo -e "\xf0\x9f\x90\x8d"
echo -e "\xee\x82\xa0"
```
-The first line should produce a [snake emoji](https://emojipedia.org/snake/), while the second should produce a [powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs).
+第一行指令應該會顯示一個 [snake emoji](https://emojipedia.org/snake/),同時,第二行指令應該顯示 [powerline branch symbol (e0a0)](https://github.com/ryanoasis/powerline-extra-symbols#glyphs)。
-If either symbol fails to display correctly, your system is still misconfigured. Unfortunately, getting font configuration correct is sometimes difficult. Users on the Discord may be able to help. If both symbols display correctly, but you still don't see them in starship, [file a bug report!](https://github.com/starship/starship/issues/new/choose)
+如果任何一個符號顯示錯誤,代表你的系統配置仍然是錯誤的。 不幸的是,正確的設置字體有時候是件困難的事。 Discord 上的使用者可能可以提供協助。 如果兩種符號皆正確顯示,但你仍然無法在 starship 中看到他們,請[發送 bug 回報](https://github.com/starship/starship/issues/new/choose)!
## 我要如何從電腦中移除 Starship?
@@ -91,6 +91,6 @@ If either symbol fails to display correctly, your system is still misconfigured.
如果你是透過安裝腳本來安裝 Starship 的,可以執行以下的命令來移除執行檔。
```sh
-# Locate and delete the starship binary
+# 定位並且刪除 starship 執行檔
sh -c 'rm "$(which starship)"'
```
diff --git a/docs/zh-TW/guide/README.md b/docs/zh-TW/guide/README.md
index 47eb399f..a1f75bb2 100644
--- a/docs/zh-TW/guide/README.md
+++ b/docs/zh-TW/guide/README.md
@@ -2,7 +2,7 @@
@@ -30,16 +30,16 @@
- Website
+ 網站
·
- Installation
+ 安裝
·
- Configuration
+ 設定
@@ -126,15 +126,15 @@
**適合任何 shell 的最小、極速、無限客製化的提示字元!**
-- **Fast:** it's fast – _really really_ fast! 🚀
-- **Customizable:** configure every aspect of your prompt.
-- **Universal:** works on any shell, on any operating system.
-- **Intelligent:** shows relevant information at a glance.
-- **Feature rich:** support for all your favorite tools.
-- **Easy:** quick to install – start using it in minutes.
+- **快:**很快 —— 非常非常快! 🚀
+- **可客製化:**全方面定制你的提示字元。
+- **通用:**適用於任何 Shell 以及作業系統。
+- **智能:**一目了然地顯示相關信息。
+- **豐富的功能:**支援所以有你喜歡的工具。
+- **易用:**安裝快速 —— 幾分鐘內就可以開始使用。
-Explore the Starship docs ▶
+探索 Starship 文件 ▶
@@ -143,11 +143,11 @@
### 先決要求
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (for example, try the [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)).
+- 安裝至少一個 [Nerd Font](https://www.nerdfonts.com/) 字體,並在終端中啟用(例如,你可以試試 [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads))。
### 入門
-**Note**: due to the proliferation of different platforms, only a subset of supported platforms are shown below. Can't see yours? Have a look at the [extra platform instructions](https://starship.rs/installing/).
+**備註:**由於不同平台的數量眾多,下方僅顯示部分已支持平台。 找不到你正在使用的平台? 我想你可以來[額外平台說明](https://starship.rs/installing/)看看。
1. 安裝 **starship** 執行檔:
@@ -155,7 +155,7 @@
#### 安裝最新版本
- ##### From prebuilt binary, with Shell:
+ ##### 從預構建的二進制包,並且使用 Shell 命令:
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
@@ -163,7 +163,7 @@
如果想更新已安裝的 Starship,請重新執行上述指令。 指令只會更新 Starship 執行檔本身,不會影響到任何已撰寫的設定檔。
- **Note** - The defaults of the install script can be overridden see the built-in help.
+ **備註** —— 安裝腳本的預設值可以被覆蓋,請使用以下指令查看內置說明。
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --help
@@ -173,7 +173,7 @@
#### 使用套件管理器安裝:
- ##### Example: [Homebrew](https://brew.sh/):
+ ##### 使用 [Homebrew](https://brew.sh/):
```sh
brew install starship
@@ -224,7 +224,7 @@
#### PowerShell
- 將以下內容放到 `Microsoft.PowerShell_profile.ps1` 的結尾。 你可以藉由在 PowerShell 查詢 `$PROFILE` 變數以取得這個檔案的位置。 一般來說檔案會出現在 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` 或是在 -Nix 上的話會在 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
+ 將以下內容放到 `Microsoft.PowerShell_profile.ps1` 的結尾。 你可以藉由在 PowerShell 查詢 `$PROFILE` 變數以取得這個檔案的位置。 一般來說,檔案會出現在 `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`,若是在 -Nix 上,檔案則會出現在 `~/.config/powershell/Microsoft.PowerShell_profile.ps1`。
```powershell
Invoke-Expression (&starship init powershell)
@@ -264,9 +264,20 @@
```
+ #### Xonsh
+
+ 將以下內容加到 `~/.xonshrc` 的結尾:
+
+ ```sh
+ # ~/.xonshrc
+
+ execx($(starship init xonsh))
+ ```
+
+
#### Nushell
- **Warning** This will change in the future. Only nu version v0.33 or higher is supported. Add the following to your nu config file. You can check the location of this file by running `config path` in nu.
+ **警告:**此處設定在未來可能有所變動。 只支援 nu v0.33 以上的版本。 將以下內容放到 Nushell 設定檔的結尾。 你可以透過在 nu 執行 `config path` 指令來取得設定檔的位置。
```toml
startup = [
@@ -281,18 +292,18 @@
我們歡迎具有**各式各樣能力**的貢獻者! 如果你正在尋找容易加入的方法,試試看標註為「[good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue)」的 issue。
-If you are fluent in a non-English language, we greatly appreciate any help keeping our docs translated and up-to-date in other languages. If you would like to help, translations can be contributed on the [Starship Crowdin](https://translate.starship.rs/).
+如果您精通非英語語言,並能協助我們在文檔上的翻譯保持最新狀態,我們會非常感謝! 如果你想要提供翻譯,可以到 [Starship Crowdin](https://translate.starship.rs/) 上提交您的翻譯。
如果你對貢獻 Starship 有興趣,請看我們的 [貢獻指南](https://github.com/starship/starship/blob/master/CONTRIBUTING.md) 。 另外,請不用客氣加入我們的 [Discord 伺服器](https://discord.gg/8Jzqu3T) 並來問候一下。 👋
### 專案貢獻者
-This project exists thanks to all the people who contribute. [[我要貢獻](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)]
+感謝所有做出貢獻的人,使這個專案能夠存在。 [[我要貢獻](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)]
### 專案資助者
-成為專案資助者,推動社群永續經營 [[Contribute](https://opencollective.com/starship/contribute)]
+成為專案資助者,推動社群永續經營 [[成為贊助者](https://opencollective.com/starship/contribute)]
#### 個人
@@ -300,7 +311,7 @@ This project exists thanks to all the people who contribute. [[我要貢獻](htt
#### 組織
-以組織名義資助專案 這裏會產生一個能連向您組織網站的連結標誌。 [[Contribute](https://opencollective.com/starship/contribute)]
+以組織名義資助專案 這裏會產生一個能連向您組織網站的連結標誌。 [[成為贊助組織](https://opencollective.com/starship/contribute)]
diff --git a/docs/zh-TW/installing/README.md b/docs/zh-TW/installing/README.md
index bdbb8174..f41c0796 100644
--- a/docs/zh-TW/installing/README.md
+++ b/docs/zh-TW/installing/README.md
@@ -1,21 +1,21 @@
-# 🚀 Advanced Installation
+# 🚀 進階安裝
-To install starship, you need to do two things:
+要安裝 starship,你必須做兩件事:
-1. Get the **starship** binary onto your computer
-1. Tell your shell to use the starship binary as its prompt by modifying its init scripts
+1. 下載 **starship** 執行檔到你的電腦裡
+1. 修改 shell 的初始化腳本,讓其使用 starship 作為提示字元
-For most users, the instructions on [the main page](/guide/#🚀-installation) will work great. However, for some more specialized platforms, different instructions are needed.
+對大部分的使用者來說,在[主頁面](/guide/#🚀-installation)的安裝指引皆足以正常運作。 然而,對於一些較特別的平台,我們需要不同的安裝指引。
-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!
+有太多平台不適用於主要的 README.md 檔案了,所以這裡有一些來自社群的其他平台的安裝指引。 你的平台不在這裡嗎? 如果你找出怎麼安裝,請幫我們加上你的指引!
## [Chocolatey](https://chocolatey.org)
### 先決要求
-Head over to the [Chocolatey installation page](https://chocolatey.org/install) and follow the instructions to install Chocolatey.
+前往[Chocolatey 安裝頁面](https://chocolatey.org/install),並且跟隨指引來安裝 Chocolatey。
-### Installation
+### 安裝
```powershell
choco install starship
@@ -29,7 +29,7 @@ choco install starship
pkg install getconf
```
-### Installation
+### 安裝
```sh
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com.termux/files/usr/bin
@@ -37,17 +37,17 @@ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com
## [Nix](https://nixos.wiki/wiki/Nix)
-### Getting the Binary
+### 獲得執行檔
-#### Imperatively
+#### 命令式
```sh
nix-env -iA nixos.starship
```
-#### Declarative, single user, via [home-manager](https://github.com/nix-community/home-manager)
+#### 聲明式、單個使用者,使用 [home-manager](https://github.com/nix-community/home-manager)
-Enable the `programs.starship` module in your `home.nix` file, and add your settings
+在 `home.nix` 檔案中,啟用 `programs.starship` 模組,並且添加你的設定:
```nix
{
@@ -69,15 +69,15 @@ Enable the `programs.starship` module in your `home.nix` file, and add your sett
}
```
-then run
+然後執行
```sh
home-manager switch
```
-#### Declarative, system-wide, with NixOS
+#### 聲明式、全系統,使用 NixOS
-Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
+將 `pkgs.starship` 添加至 `configuration.nix` 檔案內的 `environment.systemPackages` 下,並且執行
```sh
sudo nixos-rebuild switch
diff --git a/docs/zh-TW/presets/README.md b/docs/zh-TW/presets/README.md
index 6631ee20..4c4cceb0 100644
--- a/docs/zh-TW/presets/README.md
+++ b/docs/zh-TW/presets/README.md
@@ -1,16 +1,16 @@
-# Presets
+# 預設樣式
-Here is a collection of community-submitted configuration presets for Starship. If you have a preset to share, please [submit a PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) updating this file! 😊
+這裡蒐集了社群提交的 Starship 預設樣式。 如果你也想要分享你的樣式,請[提交一個 PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) 來更新這個檔案! 😊
-## Nerd Font Symbols
+## Nerd Font 符號
-This preset doesn't change anything except for the symbols used for each module. If emojis aren't your thing, this might catch your eye!
+這個預設樣式不會更改每個模組使用的符號外的任何東西。 如果你不喜歡使用 emojis,這個可能會是你所中意的!
-![Screenshot of Nerd Font Symbols preset](/presets/nerd-font-symbols.png)
+![Nerd Font 預設樣式的截圖](/presets/nerd-font-symbols.png)
### 先決要求
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Fira Code Nerd Font)
+- 安裝一個 [Nerd Font](https://www.nerdfonts.com/) 並且在終端中啟用(範例使用 Fira Code Nerd Font)
### 設定
@@ -88,17 +88,17 @@ symbol = " "
symbol = "ﯣ "
```
-## Bracketed Segments
+## 括號片段
-This preset changes the format of all the built-in modules to show their segment in brackets instead of using the default Starship wording ("via", "on", etc.).
+這個預設樣式使所有模組使用括號片段內的格式顯示,而非使用 Starship 預設("via", "on", etc.)。
-Before:
+變更前:
-![Screenshot of default Starship configuration](/presets/bracketed-segments-before.png)
+![預設 Starship 樣式的截圖](/presets/bracketed-segments-before.png)
-After:
+變更後:
-![Screenshot of Bracketed Segments preset](/presets/bracketed-segments-after.png)
+![括號片段預設樣式的截圖](/presets/bracketed-segments-after.png)
### 設定
@@ -110,7 +110,7 @@ format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
format = '\[[$symbol($version)]($style)\]'
[cmd_duration]
-format = "[⏱ $duration]($style)"
+format = '\[[⏱ $duration ]($style)\]'
[conda]
format = '\[[$symbol$environment]($style)\]'
@@ -239,17 +239,17 @@ format = '\[[$symbol($version)]($style)\]'
format = '\[[$symbol($version)]($style)\]'
```
-## Plain Text Symbols
+## 純文字符號
-This preset changes the symbols into plain text. If your terminal/font could not render the NerdFonts/emojis, maybe you could try this preset!
+這個預設樣式將符號換成了純文本。 如果你的終端 / 字體無法渲染 NerdFonts/emojis,或許你該試試這套樣式!
-Before (default setting with Fixedsys font):
+變更前(預設,搭配 Fixedsys font):
-![Screenshot of default Starship configuration with Fixedsys font](/presets/plain-text-symbols-before.png)
+![預設 Starship 樣式搭配 Fixedsys font 的截圖](/presets/plain-text-symbols-before.png)
-After (Plain Text Symbols):
+變更後(純文字符號):
-![Screenshot of Plain Text Symbols preset](/presets/plain-text-symbols-after.png)
+![純文字符號預設樣式的截圖](/presets/plain-text-symbols-after.png)
### 設定
@@ -362,3 +362,94 @@ symbol = "scala "
[swift]
symbol = "swift "
```
+
+## 隱藏執行環境版本
+
+這個預設樣式隱藏了各個語言的執行環境版本。 如果你在容器或者虛擬環境中工作,那麼這個樣式是為你設計的!
+
+![隱藏運行版本預設樣式的截圖](/presets/hide-runtime-versions.png)
+
+### 設定
+
+```toml
+[cmake]
+format = "via [$symbol]($style)"
+
+[crystal]
+format = "via [$symbol]($style)"
+
+[dart]
+format = "via [$symbol]($style)"
+
+[deno]
+format = "via [$symbol]($style)"
+
+[dotnet]
+format = "[$symbol(🎯 $tfm )]($style)"
+
+[elixir]
+format = 'via [$symbol]($style)'
+
+[elm]
+format = 'via [$symbol]($style)'
+
+[erlang]
+format = 'via [$symbol]($style)'
+
+[golang]
+format = 'via [$symbol]($style)'
+
+[helm]
+format = 'via [$symbol]($style)'
+
+[julia]
+format = 'via [$symbol]($style)'
+
+[kotlin]
+format = 'via [$symbol]($style)'
+
+[lua]
+format = 'via [$symbol]($style)'
+
+[nim]
+format = 'via [$symbol]($style)'
+
+[nodejs]
+format = 'via [$symbol]($style)'
+
+[ocaml]
+format = 'via [$symbol(\($switch_indicator$switch_name\) )]($style)'
+
+[perl]
+format = 'via [$symbol]($style)'
+
+[php]
+format = 'via [$symbol]($style)'
+
+[purescript]
+format = 'via [$symbol]($style)'
+
+[red]
+format = 'via [$symbol]($style)'
+
+[rlang]
+format = 'via [$symbol]($style)'
+
+[ruby]
+format = 'via [$symbol]($style)'
+
+[rust]
+format = 'via [$symbol]($style)'
+
+[swift]
+format = 'via [$symbol]($style)'
+
+[vagrant]
+format = 'via [$symbol]($style)'
+
+[vlang]
+format = 'via [$symbol]($style)'
+
+[zig]
+format = 'via [$symbol]($style)'
+```