+ nombre del host |
+ computadora` | El nombre de host de la computadora |
+| style\* | | Refleja el valor de la opción `style` |
+| ssh_symbol | `'🌏 '` | El símbolo a representar cuando está conectado a la sesión SSH |
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
-### Ejemplo
+### Ejemplos
+
+#### Mostrar siempre el nombre del host
```toml
# ~/.config/starship.toml
@@ -2138,6 +2241,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Ocultar el nombre de host en sesiones remotas de tmux
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
El módulo `java` muestra la versión instalada de [Java](https://www.oracle.com/java/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
@@ -2317,13 +2431,13 @@ symbol = '🅺 '
# ~/.config/starship.toml
[kotlin]
-# Uses the Kotlin Compiler binary to get the installed version
+# Utiliza el compilador binario Kotlink para obtener la versión instalada
kotlin_binary = 'kotlinc'
```
## Kubernetes
-Muestra el nombre actual del [contexto de Kubernetes](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) y, si se establece, el espacio de nombres, el usuario y el clúster del archivo kubeconfig. El espacio de nombres necesita establecerse en el archivo kubeconfig, esto puede hacerse mediante `kubectl config set-context starship-context --namespace astronaut`. Del mismo modo, el usuario y clúster pueden establecerse con `kubectl config set-context starship-context --user starship-user` y `kubectl config set-context starship-context --cluster starship-cluster`. Si se establece la variable de entorno `$KUBECONFIG`, el módulo usará eso si no usará el `~/.kube/config`.
+Muestra el nombre actual del [contexto de Kubernetes](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) y, si se establece, el espacio de nombres, el usuario y el clúster del archivo kubeconfig. El espacio de nombres necesita establecerse en el archivo kubeconfig, esto puede hacerse mediante `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. Si se establece la variable de entorno `$KUBECONFIG`, el módulo usará eso si no usará el `~/.kube/config`.
::: tip
@@ -2335,18 +2449,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Opciones
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Opción | Predeterminado | Descripción |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------------- |
| `symbol` | `'☸ '` | Una cadena de formato que representa el símbolo mostrado antes del Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | El formato del módulo. |
| `style` | `'cyan bold'` | El estilo del módulo. |
-| `context_aliases` | `{}` | Tabla de alias de contexto a mostrar. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Tabla de alias de contexto a mostrar. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
| `detect_files` | `[]` | Qué nombres de archivo deberían activar este módulo. |
| `detect_folders` | `[]` | Qué carpetas deberían activar estos módulos. |
+| `contextos` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Desactiva el módulo `kubernetes`. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Descripción |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Ejemplo | Descripción |
@@ -2368,13 +2504,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2519,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Busqueda por Regex
+#### Configuración específica del Contexto de Kubernetes
-Additional to simple aliasing, `context_aliases` and `user_aliases` also supports extended matching and renaming using regular expressions.
-
-La expresión regular debe coincidir en todo el contexto de kube. los grupos de captura pueden ser referenciados usando `$name` y `$N` en el reemplazo. Esto está más explicado en la documentación del [crate regex](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace).
-
-Los nombres de cluster generados de forma larga y automática pueden ser identificados y abreviados usando expresiones regulares:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Salto de línea
@@ -2730,7 +2873,7 @@ El módulo `nodejs` muestra la versión instalada de [Node.js](https://nodejs.or
| `detect_folders` | `['node_modules']` | Qué carpetas deberían activar este módulo. |
| `style` | `'bold green'` | El estilo del módulo. |
| `disabled` | `false` | Deshabilita el módulo `nodejs`. |
-| `not_capable_style` | `bold red` | El estilo para el módulo cuando una propiedad de motores en package.json no coincide con la versión de Node.js. |
+| `not_capable_style` | `'bold red'` | El estilo para el módulo cuando una propiedad de motores en package.json no coincide con la versión de Node.js. |
### Variables
@@ -2890,8 +3033,8 @@ Este módulo está deshabilitado por defecto. Para activarlo, establece `disable
| Opción | Predeterminado | Descripción |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | El formato del módulo. |
-| `style` | `"bold white"` | El estilo del módulo. |
+| `format` | `'[$symbol]($style)'` | El formato del módulo. |
+| `style` | `'bold white'` | El estilo del módulo. |
| `disabled` | `true` | Deshabilita el módulo `os`. |
| `símbolos` | | A table that maps each operating system to its symbol. |
@@ -2969,7 +3112,7 @@ disabled = false
[os.symbols]
Windows = " "
-Arch = "Arch is the best! "
+Arch = "Arch es lo mejor! "
```
## Package Version
@@ -2998,14 +3141,14 @@ El módulo `package` se muestra cuando el directorio actual es el repositorio de
### Opciones
-| Opción | Predeterminado | Descripción |
-| ----------------- | --------------------------------- | --------------------------------------------------------------------------------------- |
-| `format` | `'is [$symbol$version]($style) '` | El formato del módulo. |
-| `symbol` | `'📦 '` | El símbolo usado antes de mostrar la versión del paquete. |
-| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
-| `style` | `'bold 208'` | El estilo del módulo. |
-| `display_private` | `false` | Activar la visualización de la versión para los paquetes marcados como privados. |
-| `disabled` | `false` | Desactiva el módulo `package`. |
+| Opción | Predeterminado | Descripción |
+| ---------------- | --------------------------------- | --------------------------------------------------------------------------------------- |
+| `format` | `'is [$symbol$version]($style) '` | El formato del módulo. |
+| `symbol` | `'📦 '` | El símbolo usado antes de mostrar la versión del paquete. |
+| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
+| `style` | `'bold 208'` | El estilo del módulo. |
+| `'📦 '` | `false` | Activar la visualización de la versión para los paquetes marcados como privados. |
+| `disabled` | `false` | Desactiva el módulo `package`. |
### Variables
@@ -3023,7 +3166,7 @@ El módulo `package` se muestra cuando el directorio actual es el repositorio de
# ~/.config/starship.toml
[package]
-format = 'via [🎁 $version](208 bold) '
+format = 'vía [🎁 $version](208 bold) '
```
## Perl
@@ -3149,13 +3292,13 @@ Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes
### Variables
-| Variable | Ejemplo | Descripción |
-| --------- | ---------- | -------------------------------------- |
-| version | `v0.12.24` | La versión de `pulumi` |
-| stack | `dev` | La pila actual de Pulumi |
-| username | `alice` | El usuario actual de Pulumi |
-| symbol | | Refleja el valor de la opción `symbol` |
-| style\* | | Refleja el valor de la opción `style` |
+| Variable | Ejemplo | Descripción |
+| ----------------- | ---------- | -------------------------------------- |
+| version | `v0.12.24` | La versión de `pulumi` |
+| stack | `dev` | La pila actual de Pulumi |
+| nombre de usuario | `alice` | El usuario actual de Pulumi |
+| symbol | | Refleja el valor de la opción `symbol` |
+| style\* | | Refleja el valor de la opción `style` |
*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
@@ -3245,7 +3388,7 @@ Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes
| `symbol` | `'🐍 '` | Una cadena de formato que representa el símbolo de Python |
| `style` | `'yellow bold'` | El estilo del módulo. |
| `pyenv_version_name` | `false` | Usar pyenv para obtener la versión de Python |
-| `pyenv_prefix` | `pyenv` | Prefijo antes de mostrar la versión de pyenv sólo se utiliza si se utiliza pyenv |
+| `pyenv_prefix` | `'pyenv'` | Prefijo antes de mostrar la versión de pyenv sólo se utiliza si se utiliza pyenv |
| `python_binary` | `['python', 'python3', 'python2']` | Configura los binarios de python que Starship debería ejecutar al obtener la versión. |
| `detect_extensions` | `['py']` | Qué extensiones deben activar este módulo |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Qué nombres de archivo deben activar este módulo |
@@ -3300,7 +3443,7 @@ detect_extensions = []
# ~/.config/starship.toml
[python]
-# Muestra la versión de python desde dentro de un entorno virtual local.
+# Muestra la versión de python dentro de un entorno virtual local.
#
# Ten en cuenta que esto solo funcionará cuando el venv esté dentro del proyecto y sólo
# funcionará en el directorio que contiene el directorio venv dir pero ¿tal vez esté bien?
@@ -3562,22 +3705,23 @@ Este módulo está deshabilitado por defecto. Para activarlo, establece `disable
### Opciones
-| Opción | Predeterminado | Descripción |
-| ---------------------- | ------------------------- | ----------------------------------------------------------------------- |
-| `bash_indicator` | `'bsh'` | Una cadena de formato usada para representar bash. |
-| `fish_indicator` | `'fsh'` | Una cadena de formato usada para representar fish. |
-| `zsh_indicator` | `'zsh'` | Una cadena de formato usada para representar zsh. |
-| `powershell_indicator` | `'psh'` | Una cadena de formato usada para representar powershell. |
-| `ion_indicator` | `'ion'` | Una cadena de formato usada para representar ion. |
-| `elvish_indicator` | `'esh'` | Una cadena de formato usada para representar elvish. |
-| `tcsh_indicator` | `'tsh'` | A format string used to represent tcsh. |
-| `xonsh_indicator` | `'xsh'` | Una cadena de formato usada para representar xonsh. |
-| `cmd_indicator` | `'cmd'` | Una cadena de formato usada para representar cmd. |
-| `nu_indicator` | `'nu'` | Una cadena de formato usada para representar nu. |
-| `unknown_indicator` | `''` | El valor por defecto que se mostrará cuando se desconoce el intérprete. |
-| `format` | `'[$indicator]($style) '` | El formato del módulo. |
-| `style` | `'white bold'` | El estilo del módulo. |
-| `disabled` | `true` | Deshabilita el módulo `shell`. |
+| Opción | Predeterminado | Descripción |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | Una cadena de formato usada para representar bash. |
+| `fish_indicator` | `'fsh'` | Una cadena de formato usada para representar fish. |
+| `zsh_indicator` | `'zsh'` | Una cadena de formato usada para representar zsh. |
+| `powershell_indicator` | `'psh'` | Una cadena de formato usada para representar powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `ion_indicator` | `'ion'` | Una cadena de formato usada para representar ion. |
+| `elvish_indicator` | `'esh'` | Una cadena de formato usada para representar elvish. |
+| `tcsh_indicator` | `'tsh'` | A format string used to represent tcsh. |
+| `xonsh_indicator` | `'xsh'` | Una cadena de formato usada para representar xonsh. |
+| `cmd_indicator` | `'cmd'` | Una cadena de formato usada para representar cmd. |
+| `nu_indicator` | `'nu'` | Una cadena de formato usada para representar nu. |
+| `unknown_indicator` | `''` | El valor por defecto que se mostrará cuando se desconoce el intérprete. |
+| `format` | `'[$indicator]($style) '` | El formato del módulo. |
+| `style` | `'white bold'` | El estilo del módulo. |
+| `disabled` | `true` | Deshabilita el módulo `shell`. |
### Variables
@@ -3694,14 +3838,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Opción | Predeterminado | Descripción |
| ------------------- | ------------------------------------ | --------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | El formato del módulo. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Qué extensiones deberían activar este módulo. |
+| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Qué extensiones deberían activar este módulo. |
| `detect_files` | `[]` | Qué nombres de archivo deberían activar este módulo. |
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
-| `style` | `"bold blue"` | El estilo del módulo. |
+| `style` | `'bold blue'` | El estilo del módulo. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -3857,7 +4001,7 @@ disabled = false
```
```toml
-# En Windows
+# On windows
# $HOME\.starship\config.toml
[sudo]
@@ -3901,7 +4045,7 @@ Por defecto, el módulo `swift` muestra la versión instalada de [Swift](https:/
# ~/.config/starship.toml
[swift]
-format = 'via [🏎 $version](red bold)'
+format = 'vía [🏎 $version](red bold)'
```
## Terraform
@@ -3945,7 +4089,7 @@ Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes
### Ejemplo
-#### Con la versión de Terraform
+#### Con Terraform Version
```toml
# ~/.config/starship.toml
@@ -3954,7 +4098,7 @@ Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes
format = '[🏎💨 $version$workspace]($style) '
```
-#### Sin la versión de Terraform
+#### Sin Terraform Version
```toml
# ~/.config/starship.toml
@@ -4009,6 +4153,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
+
+- El directorio actual contiene un archivo `template.typ`
+- The current directory contains any `*.typ` file
+
+### Opciones
+
+| Opción | Predeterminado | Descripción |
+| ------------------- | ------------------------------------ | --------------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | El formato del módulo. |
+| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | El estilo del módulo. |
+| `detect_extensions` | `['.typ']` | Qué extensiones deberían activar este módulo. |
+| `detect_files` | `['template.typ']` | Qué nombres de archivo deberían activar este módulo. |
+| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
+| `disabled` | `false` | Deshabilita el módulo `daml`. |
+
+### Variables
+
+| Variable | Ejemplo | Descripción |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| symbol | | Refleja el valor de la opción `symbol` |
+| style\* | | Refleja el valor de la opción `style` |
+
+*: Esta variable solamente puede ser usada como parte de una cadena de caracteres de estilo
+
## Username
El módulo `username` muestra el nombre de usuario activo. El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
@@ -4283,7 +4460,7 @@ Si no se da el `shell` o solo contiene un elemento y Starship detecta PowerShell
shell = ['pwsh', '-Command', '-']
```
-::: warning Asegúrate de que tu configuración personalizada de shell salga con éxito
+::: warning Asegúrate de que tu configuración personalizada del intérprete de comandos salga con éxito
Si estableces un comando personalizado, asegúrate de que el intérprete de comandos por defecto usado por Starship ejecutará correctamente el comando con una salida elegante (a través de la opción `shell`).
diff --git a/docs/es-ES/guide/README.md b/docs/es-ES/guide/README.md
index 64c516b1..055832e2 100644
--- a/docs/es-ES/guide/README.md
+++ b/docs/es-ES/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Sigue a @StarshipPrompt en Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/es-ES/presets/README.md b/docs/es-ES/presets/README.md
index ad7a0c0c..3a6e96f1 100644
--- a/docs/es-ES/presets/README.md
+++ b/docs/es-ES/presets/README.md
@@ -60,6 +60,12 @@ Este preajuste está inspirado en [M365Princess](https://github.com/JanDeDobbele
## [Tokyo Night](./tokyo-night.md)
-This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
+Este preset está inspirado en [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
-[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+[![Captura del preset de Tokyo Night](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+Este preajuste está muy inspirado en [Pastel Powerline](./pastel-powerline.md) y [Tokyo Night](./tokyo-night.md).
+
+[![Captura de pantalla de el preajuste Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Clic para ver el preajuste Gruvbox Rainbow")](./gruvbox-rainbow)
diff --git a/docs/es-ES/presets/gruvbox-rainbow.md b/docs/es-ES/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..9999e353
--- /dev/null
+++ b/docs/es-ES/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Volver a Preajustes](./README.md#gruvbox-rainbow)
+
+# Preselección Gruvbox Rainbow
+
+Este preajuste está muy inspirado en [Pastel Powerline](./pastel-powerline.md) y [Tokyo Night](./tokyo-night.md).
+
+![Captura de pantalla del preajuste Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png)
+
+### Prerequisitos
+
+- Una [Nerd Font](https://www.nerdfonts.com/) instalada y habilitada en tu terminal
+
+### Configuración
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Clic para descargar TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/es-ES/presets/jetpack.md b/docs/es-ES/presets/jetpack.md
new file mode 100644
index 00000000..00381b80
--- /dev/null
+++ b/docs/es-ES/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Volver a Preajustes](./README.md#jetpack)
+
+# Preajust Jetpack
+
+Este es un preajuste pseudominimalista inspirado en las indicaciones [geometría](https://github.com/geometry-zsh/geometry) y [nave espacial](https://github.com/spaceship-prompt/spaceship-prompt).
+
+> Jetpack utiliza los colores temáticos de la terminal.
+
+![Captura de pantalla del preajuste Jetpack](/presets/img/jetpack.png)
+
+### Prerrequisito
+
+- Requiere un comando con [`la indicación correcta`](https://starship.rs/advanced-config/#enable-right-prompt).
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) es recomendado.
+
+### Configuración
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Clic para descargar TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/es-ES/presets/no-empty-icons.md b/docs/es-ES/presets/no-empty-icons.md
index b1af843f..d6521cd4 100644
--- a/docs/es-ES/presets/no-empty-icons.md
+++ b/docs/es-ES/presets/no-empty-icons.md
@@ -1,8 +1,8 @@
-[Volver a Preajustes](./README.md#no-empty-icons)
+[Volver a las preselecciones](./README.md#no-empty-icons)
-# No Empty Icons Preset
+# Preselección de iconos no vacíos
-If toolset files are identified the toolset icon is displayed. If the toolset is not found to determine its version number, it is not displayed. This preset changes the behavior to display the icon only if the toolset information can be determined.
+Si se identifican archivos del conjunto de herramientas, entonces se mostrara el ícono del conjunto de herramientas. If the toolset is not found to determine its version number, it is not displayed. La forma en la que se muestra el ícono depende de si la información del conjunto de herramientas puede ser determinada.
![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png)
diff --git a/docs/es-ES/presets/no-nerd-font.md b/docs/es-ES/presets/no-nerd-font.md
index f06a5d85..4de7d4d2 100644
--- a/docs/es-ES/presets/no-nerd-font.md
+++ b/docs/es-ES/presets/no-nerd-font.md
@@ -6,7 +6,7 @@ This preset restricts the use of symbols to those from emoji and powerline sets.
Esto significa que incluso sin una fuente Nerd instalada, debería ser capaz de ver todos los símbolos del módulo.
-This preset will become the default preset in a future release of starship.
+Este preset será el predeterminado en una futura versión de starship.
### Configuración
diff --git a/docs/es-ES/presets/tokyo-night.md b/docs/es-ES/presets/tokyo-night.md
index 95af84ea..6218d6b0 100644
--- a/docs/es-ES/presets/tokyo-night.md
+++ b/docs/es-ES/presets/tokyo-night.md
@@ -2,11 +2,11 @@
# Tokyo Night Preset
-This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
+Este preset está inspirado en [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
-![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png)
+![Captura del preset de Tokyo Night](/presets/img/tokyo-night.png)
-### Prerequisitos
+### Prerrequisitos
- Una [Nerd Font](https://www.nerdfonts.com/) instalada y habilitada en tu terminal
diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md
index 8ea28092..b31a0ed1 100644
--- a/docs/fr-FR/config/README.md
+++ b/docs/fr-FR/config/README.md
@@ -206,6 +206,13 @@ Voici la liste des options de configuration globales de l'invite de commandes.
| `add_newline` | `true` | Insère une ligne vide entre les invites du shell. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Exemple
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ Lorsque vous utilisez [AWSume](https://awsu.me) le profil est lu à partir de la
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Défaut | Description |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Tableau des alias de région à afficher en plus du nom AWS. |
| `profile_aliases` | `{}` | Tableau des alias de profil à afficher en plus du nom AWS. |
| `style` | `'bold yellow'` | Le style pour le module. |
-| `expiration_symbol` | `X` | Le symbole est affiché lorsque les identifiants temporaires ont expiré. |
+| `expiration_symbol` | `'X'` | Le symbole est affiché lorsque les identifiants temporaires ont expiré. |
| `disabled` | `false` | Désactive le module `AWS`. |
| `force_display` | `false` | Si `true`, affiche les informations même si `credentials`, `credential_process` ou `sso_start_url` n'ont pas été configurées. |
@@ -620,17 +632,17 @@ Le module `c` affiche des informations à propos de votre compilateur C. Par dé
### Options
-| Option | Défaut | Description |
-| ------------------------------------ | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | La chaîne de format pour le module. |
-| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
-| `symbole` | `'C '` | Le symbole utilisé avant d’afficher les détails du compilateur |
-| `detect_extensionsdetect_extensions` | `['c', 'h']` | Les extensions qui déclenchent ce module. |
-| `detect_files` | `[]` | Les fichiers qui activent ce module. |
-| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | Comment détecter quel est le compilateur |
-| `style` | `'bold 149'` | Le style pour le module. |
-| `disabled` | `false` | Désactive le module `c`. |
+| Option | Défaut | Description |
+| ------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | La chaîne de format pour le module. |
+| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `symbole` | `'C '` | Le symbole utilisé avant d’afficher les détails du compilateur |
+| `detect_extensionsdetect_extensions` | `['c', 'h']` | Les extensions qui déclenchent ce module. |
+| `detect_files` | `[]` | Les fichiers qui activent ce module. |
+| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | Comment détecter quel est le compilateur |
+| `style` | `'bold 149'` | Le style pour le module. |
+| `disabled` | `false` | Désactive le module `c`. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Défaut | Description |
+| ------------------------------------ | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | Format du module. |
+| `symbole` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | Le style pour le module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensionsdetect_extensions` | `[]` | Les extensions qui déclenchent ce module. |
+| `detect_files` | `['.envrc']` | Les fichiers qui activent ce module. |
+| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | Exemple | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbole | | Reflète la valeur de l'option `symbol`. |
+| style\* | `red bold` | Reflète la valeur de l'option `style`. |
+
+*: Cette variable peut uniquement être utilisée dans une chaine de style
+
+### Exemple
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## Contexte Docker
Le module `docker_context` affiche le [context Docker](https://docs.docker.com/engine/context/working-with-contexts/) actif, si sa valeur est différente de `default` ou si les variables d’environnement `DOCKER_MACHINE_NAME`, `DOCKER_HOST` ou `DOCKER_CONTEXT` sont définies (puisqu’elles sont utilisées pour changer le contexte utilisé).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
| `symbole` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | Le style pour le module. |
-| `detect_extensionsdetect_extensions` | `[fnl]` | Les extensions qui déclenchent ce module. |
+| `detect_extensionsdetect_extensions` | `['fnl']` | Les extensions qui déclenchent ce module. |
| `detect_files` | `[]` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Quels dossiers devraient activer ce module. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Option | Défaut | Description |
+| -------------------- | ------------------------------------------------------------ | ----------------------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | Format du module. |
+| `added_style` | `'bold green'` | Le style pour le compte des ajouts. |
+| `deleted_style` | `'bold red'` | Le style pour le compte des suppressions. |
+| `only_nonzero_diffs` | `true` | Afficher le statut seulement pour les items modifiés. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Variable | Exemple | Description |
+| ----------------- | ------- | --------------------------------------------- |
+| added | `1` | Le nombre de lignes ajoutées |
+| deleted | `2` | Le nombre de lignes supprimées |
+| added_style\* | | Possède la valeur de l’option `added_style` |
+| deleted_style\* | | Possède la valeur de l’option `deleted_style` |
+
+*: Cette variable peut uniquement être utilisée dans une chaine de style
+
+### Exemple
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
Le module `gcloud` affiche la version de la commande [`gcloud`](https://cloud.google.com/sdk/gcloud) installée. Ceci est basé sur les fichiers `~/.config/gcloud/active_config` et `~/.config/gcloud/configurations/config_{CONFIG NAME}` et la variable d'environnement `CLOUDSDK_CONFIG`.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | Défaut | Description |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | Format du module. |
-| `symbole` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | Le style pour le module. |
+| `symbole` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | Le style pour le module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | Défaut | Description |
| ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | Format du module. |
-| `version_format` | `"v${raw}"` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
-| `symbole` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensionsdetect_extensions` | `["gradle", "gradle.kts"]` | Les extensions qui déclenchent ce module. |
+| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
+| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `symbole` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensionsdetect_extensions` | `['gradle', 'gradle.kts']` | Les extensions qui déclenchent ce module. |
| `detect_files` | `[]` | Les fichiers qui activent ce module. |
-| `detect_folders` | `["gradle"]` | Les dossiers qui activent ce module. |
-| `style` | `"bold bright-cyan"` | Le style pour le module. |
+| `detect_folders` | `['gradle']` | Les dossiers qui activent ce module. |
+| `style` | `'bold bright-cyan'` | Le style pour le module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | Défaut | Description |
| ------------------------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | Format du module. |
-| `version_format` | `"v${raw}"` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
-| `detect_extensionsdetect_extensions` | `["hx", "hxml"]` | Les extensions qui déclenchent ce module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Les fichiers qui activent ce module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Quels dossiers devraient activer ce module. |
-| `symbole` | `"⌘ "` | Une chaîne de format représentant le symbole de Helm. |
-| `style` | `"bold fg:202"` | Le style pour le module. |
+| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
+| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `detect_extensionsdetect_extensions` | `['hx', 'hxml']` | Les extensions qui déclenchent ce module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Les fichiers qui activent ce module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Quels dossiers devraient activer ce module. |
+| `symbole` | `'⌘ '` | Une chaîne de format représentant le symbole de Helm. |
+| `style` | `'bold fg:202'` | Le style pour le module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ Le module `hostname` affiche le nom d’hôte du système system.
### Options
-| Option | Défaut | Description |
-| ------------ | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | Afficher uniquement le nom d'hôte lorsque vous êtes connecté à une session SSH. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | Chaîne à laquelle le nom d'hôte est coupé, après la première correspondance. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | Format du module. |
-| `style` | `'bold dimmed green'` | Le style pour le module. |
-| `disabled` | `false` | Désactive le module `hostname`. |
+| Option | Défaut | Description |
+| ----------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Afficher uniquement le nom d'hôte lorsque vous êtes connecté à une session SSH. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | Chaîne à laquelle le nom d'hôte est coupé, après la première correspondance. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | Format du module. |
+| `style` | `'bold dimmed green'` | Le style pour le module. |
+| `disabled` | `false` | Désactive le module `hostname`. |
### Variables
@@ -2126,7 +2215,9 @@ Le module `hostname` affiche le nom d’hôte du système system.
*: Cette variable peut uniquement être utilisée dans une chaine de style
-### Exemple
+### Exemples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
Le module `java` affiche la version de [Java](https://www.oracle.com/java/) installée. Par défaut, le module sera affiché si l’une de ces conditions est remplie:
@@ -2323,7 +2425,7 @@ kotlin_binary = 'kotlinc'
## Kubernetes
-Afficher le nom du [contexte Kubernetes](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) courant, et, si défini, l’espace de nom, l’utilisateur, et le cluster depuis le fichier kubeconfig. L'espace de noms doit être défini dans le fichier kubeconfig, ce qui peut être fait via `kubectl config set-context starship-cluster --namespace astronaut`. De même, l'utilisateur et l'instance peuvent être définies avec `kubectl config set-context starship-context --user starship-user` et `kubectl config set-context starship-context --cluster starship-cluster`. Si la variable d'environnement `$KUBECONFIG` est définie, le module l'utilisera, sinon il utilisera le fichier `~/.kube/config`.
+Afficher le nom du [contexte Kubernetes](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) courant, et, si défini, l’espace de nom, l’utilisateur, et le cluster depuis le fichier kubeconfig. L'espace de noms doit être défini dans le fichier kubeconfig, ce qui peut être fait via `kubectl config set-context starship-cluster --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. Si la variable d'environnement `$KUBECONFIG` est définie, le module l'utilisera, sinon il utilisera le fichier `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Options
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | Défaut | Description |
| ------------------------------------ | ---------------------------------------------------- | ---------------------------------------------------------------------- |
| `symbole` | `'☸ '` | Une chaîne de format représentant le symbole affiché avant le Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | Format du module. |
| `style` | `'cyan bold'` | Le style pour le module. |
-| `context_aliases` | `{}` | Tableau des alias de contexte à afficher. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Tableau des alias de contexte à afficher. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensionsdetect_extensions` | `[]` | Les extensions qui déclenchent ce module. |
| `detect_files` | `[]` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Quels dossiers devraient activer ce module. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Désactiver le module `kubernetes`. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Description |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbole` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Exemple | Description |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Filtrage par regex
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_aliases` also supports extended matching and renaming using regular expressions.
-
-L’expression rationnelle doit correspondre au contexte kube entier, et des groupes de capture peuvent être référencés en utilisant `$name` et `$N` dans la valeur de remplacement. Ceci est expliqué plus en détails dans la documentation de [la crate regex](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace).
-
-Les noms de cluster long ou générés automatiquement peuvent être identifiés et raccourcis en utilisant des expressions rationnelles:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Saut de ligne
@@ -2730,7 +2861,7 @@ Le module `nodejs` affiche la version de [Node.js](https://nodejs.org/) install
| `detect_folders` | `['node_modules']` | Les dossiers qui activent ce module. |
| `style` | `'bold green'` | Le style pour le module. |
| `disabled` | `false` | Désactive le module `nodejs`. |
-| `not_capable_style` | `bold red` | Le style du module quand une propriété engines dans le package.json ne correspond pas à la version Node.js. |
+| `not_capable_style` | `'bold red'` | Le style du module quand une propriété engines dans le package.json ne correspond pas à la version Node.js. |
### Variables
@@ -2890,8 +3021,8 @@ Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur
| Option | Défaut | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | Format du module. |
-| `style` | `"bold white"` | Le style pour le module. |
+| `format` | `'[$symbol]($style)'` | Format du module. |
+| `style` | `'bold white'` | Le style pour le module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ Par défaut, le module sera affiché si l’une de ces conditions est remplie:
| `symbole` | `'🐍 '` | Une chaîne de caractères représentant le symbole de Python |
| `style` | `'yellow bold'` | Le style pour le module. |
| `pyenv_version_name` | `false` | Utiliser pyenv pour obtenir la version de Python |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `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_extensionsdetect_extensions` | `['py']` | Les extensions qui déclenchent ce module |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Quels fichiers devraient activer ce module |
@@ -3563,22 +3694,23 @@ Ce module est désactivé par défaut. Pour l'activer, configurez `disabled` sur
### Options
-| Option | Défaut | Description |
-| ---------------------- | ------------------------- | ----------------------------------------------------------- |
-| `bash_indicator` | `'bsh'` | Chaine de formatage utilisée pour représenter bash. |
-| `fish_indicator` | `'fsh'` | Chaine de formatage utilisée pour représenter fish. |
-| `zsh_indicator` | `'zsh'` | Chaine de formatage utilisée pour représenter zsh. |
-| `powershell_indicator` | `'psh'` | Chaine de formatage utilisée pour représenter powershell. |
-| `ion_indicator` | `'ion'` | Chaine de formatage utilisée pour représenter ion. |
-| `elvish_indicator` | `'esh'` | Chaine de formatage utilisée pour représenter elvish. |
-| `tcsh_indicator` | `'tsh'` | Chaine de formatage utilisée pour représenter tcsh. |
-| `xonsh_indicator` | `'xsh'` | Chaine de formatage utilisée pour représenter xonsh. |
-| `cmd_indicator` | `'cmd'` | Chaine de formatage utilisée pour représenter cmd. |
-| `nu_indicator` | `'nu'` | Chaine de formatage utilisée pour représenter nu. |
-| `unknown_indicator` | `''` | La valeur par défaut à afficher quand le shell est inconnu. |
-| `format` | `'[$indicator]($style) '` | Format du module. |
-| `style` | `'white bold'` | Le style pour le module. |
-| `disabled` | `true` | Désactive le module `shell`. |
+| Option | Défaut | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | Chaine de formatage utilisée pour représenter bash. |
+| `fish_indicator` | `'fsh'` | Chaine de formatage utilisée pour représenter fish. |
+| `zsh_indicator` | `'zsh'` | Chaine de formatage utilisée pour représenter zsh. |
+| `powershell_indicator` | `'psh'` | Chaine de formatage utilisée pour représenter powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `ion_indicator` | `'ion'` | Chaine de formatage utilisée pour représenter ion. |
+| `elvish_indicator` | `'esh'` | Chaine de formatage utilisée pour représenter elvish. |
+| `tcsh_indicator` | `'tsh'` | Chaine de formatage utilisée pour représenter tcsh. |
+| `xonsh_indicator` | `'xsh'` | Chaine de formatage utilisée pour représenter xonsh. |
+| `cmd_indicator` | `'cmd'` | Chaine de formatage utilisée pour représenter cmd. |
+| `nu_indicator` | `'nu'` | Chaine de formatage utilisée pour représenter nu. |
+| `unknown_indicator` | `''` | La valeur par défaut à afficher quand le shell est inconnu. |
+| `format` | `'[$indicator]($style) '` | Format du module. |
+| `style` | `'white bold'` | Le style pour le module. |
+| `disabled` | `true` | Désactive le module `shell`. |
### Variables
@@ -3695,14 +3827,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Défaut | Description |
| ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | Format du module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
-| `symbole` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensionsdetect_extensions` | `["sol"]` | Les extensions qui déclenchent ce module. |
+| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `symbole` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensionsdetect_extensions` | `['sol']` | Les extensions qui déclenchent ce module. |
| `detect_files` | `[]` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
-| `style` | `"bold blue"` | Le style pour le module. |
+| `style` | `'bold blue'` | Le style pour le module. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4010,6 +4142,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+Par défaut, le module sera affiché si l’une de ces conditions est remplie:
+
+- Le dossier courant contient un fichier `template.typ`
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Défaut | Description |
+| ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | Format du module. |
+| `version_format` | `'v${raw}'` | Le format de la version. Les variables disponibles sont `raw`, `major`, `minor`, & `patch` |
+| `symbole` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | Le style pour le module. |
+| `detect_extensionsdetect_extensions` | `['.typ']` | Les extensions qui déclenchent ce module. |
+| `detect_files` | `['template.typ']` | Les fichiers qui activent ce module. |
+| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | Exemple | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| symbole | | Reflète la valeur de l'option `symbol` |
+| style\* | | Reflète la valeur de l'option `style` |
+
+*: Cette variable peut uniquement être utilisée dans une chaine de style
+
## Nom d'utilisateur
Le module `username` affiche le nom de l’utilisateur actif. Le module sera affiché si l'une de ces conditions est remplie:
diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md
index 630645be..781d03bd 100644
--- a/docs/fr-FR/guide/README.md
+++ b/docs/fr-FR/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Suivez @StarshipPrompt sur Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![Bannière StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
@@ -277,7 +281,7 @@ Configurez votre shell pour initialiser starship. Sélectionnez le vôtre dans l
Bash
-Ajoutez ce qui suit à la fin de `~/.bashrc`:
+Ajouter ce qui suit à la fin de `~/.bashrc`:
```sh
eval "$(starship init bash)"
@@ -312,7 +316,7 @@ Note: Seul Elvish v0.18+ est supporté
Fish
-Ajoutez le code suivant à la fin de `~/.config/fish/config.fish`:
+Ajoute ce qui suit à la fin de `~/.config/fish/config.fish`:
```fish
starship init fish | source
@@ -323,7 +327,7 @@ starship init fish | source
Ion
-Ajoutez ce qui suit à la fin de `~/.config/ion/initrc`:
+Ajouter ce qui suit à la fin de `~/.config/ion/initrc`:
```sh
eval $(starship init ion)
@@ -387,7 +391,7 @@ execx($(starship init xonsh))
Zsh
-Ajoutez ce qui suit à la fin de `~/.zshrc`:
+Ajouter ce qui suit à la fin de `~/.zshrc`:
```sh
eval "$(starship init zsh)"
diff --git a/docs/fr-FR/presets/README.md b/docs/fr-FR/presets/README.md
index efcf8061..11b18e52 100644
--- a/docs/fr-FR/presets/README.md
+++ b/docs/fr-FR/presets/README.md
@@ -63,3 +63,9 @@ Ce préréglage s'inspire de [M365Princess](https://github.com/JanDeDobbeleer/oh
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/fr-FR/presets/gruvbox-rainbow.md b/docs/fr-FR/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..1ea4af7f
--- /dev/null
+++ b/docs/fr-FR/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Retourner aux préréglages](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Pré-requis
+
+- Une [Nerd Font](https://www.nerdfonts.com/) est installée et activée dans votre terminal
+
+### Configuration
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Cliquez pour télécharger le TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/fr-FR/presets/jetpack.md b/docs/fr-FR/presets/jetpack.md
new file mode 100644
index 00000000..930d974e
--- /dev/null
+++ b/docs/fr-FR/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Retourner aux préréglages](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Configuration
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Cliquez pour télécharger le TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/id-ID/config/README.md b/docs/id-ID/config/README.md
index ed2b8180..7fa086e0 100644
--- a/docs/id-ID/config/README.md
+++ b/docs/id-ID/config/README.md
@@ -206,6 +206,13 @@ Berikut adalah opsi konfigurasi dari list yang bersifat prompt-wide.
| `add_newline` | `true` | Memasukkan baris kosong antara prompt shell. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Contoh
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ Ketika menggunakan [AWSume](https://awsu.me) profil dibaca dari variabel environ
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Opsi
| Opsi | Bawaan | Deskripsi |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Tabel alias dari region yang ditampilan selain nama AWS. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | Gaya penataan untuk modul. |
-| `expiration_symbol` | `X` | Simbol ditampilkan ketika temporer kredensial telah kedaluwarsa. |
+| `expiration_symbol` | `'X'` | Simbol ditampilkan ketika temporer kredensial telah kedaluwarsa. |
| `disabled` | `false` | Menonaktifkan modul `AWS`. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Opsi
-| Opsi | Bawaan | Deskripsi |
-| ------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Ekstensi mana yang sebaiknya memicu modul ini. |
-| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
-| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | Gaya penataan untuk modul. |
-| `disabled` | `false` | Disables the `c` module. |
+| Opsi | Bawaan | Deskripsi |
+| ------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
+| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | Gaya penataan untuk modul. |
+| `disabled` | `false` | Disables the `c` module. |
### Variabel
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | Format dari modul. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | Gaya penataan untuk modul. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `['.envrc']` | filenames mana yang sebaiknya memicu modul ini. |
+| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variabel
+
+| Variabel | Contoh | Deskripsi |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Menyalin nilai dari opsi `symbol`. |
+| style\* | `red bold` | Menyalin nilai dari opsi `style`. |
+
+*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+
+### Contoh
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1393,7 +1446,7 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `' '` | The symbol used before displaying the version of erlang. |
| `style` | `'bold red'` | Gaya penataan untuk modul. |
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | Gaya penataan untuk modul. |
-| `detect_extensions` | `[fnl]` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_extensions` | `['fnl']` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `fromat` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | Format dari modul. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variabel
+
+| Variabel | Contoh | Deskripsi |
+| ----------------- | ------ | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+
+### Contoh
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Opsi
@@ -1775,7 +1863,7 @@ The Git Status module is very slow in Windows directories (for example under `/m
| Opsi | Bawaan | Deskripsi |
| ------------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
-| `fromat` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
| `conflicted` | `'='` | This branch has merge conflicts. |
| `ahead` | `'⇡'` | The format of `ahead` |
| `behind` | `'⇣'` | The format of `behind` |
@@ -1930,9 +2018,9 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Opsi | Bawaan | Deskripsi |
| ---------- | -------------------------- | ------------------------------------------------------ |
-| `format` | `'via [$symbol]($style) '` | Format dari modul. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | Gaya penataan untuk modul. |
+| `fromat` | `'via [$symbol]($style) '` | Format dari modul. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | Gaya penataan untuk modul. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variabel
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Format dari modul. |
-| `version_format` | `"v${raw}"` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
-| `detect_folders` | `["gradle"]` | Folder mana yang sebaiknya memicul modul ini. |
-| `style` | `"bold bright-cyan"` | Gaya penataan untuk modul. |
+| `detect_folders` | `['gradle']` | Folder mana yang sebaiknya memicul modul ini. |
+| `style` | `'bold bright-cyan'` | Gaya penataan untuk modul. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Opsi | Bawaan | Deskripsi |
| ------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `fromat` | `"via [$symbol($version )]($style)"` | Format dari modul. |
-| `version_format` | `"v${raw}"` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Ekstensi mana yang sebaiknya memicu modul ini. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | filenames mana yang sebaiknya memicu modul ini. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Folder mana yang sebaiknya memicul modul ini. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | Gaya penataan untuk modul. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | filenames mana yang sebaiknya memicu modul ini. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Folder mana yang sebaiknya memicul modul ini. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | Gaya penataan untuk modul. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variabel
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Opsi
-| Opsi | Bawaan | Deskripsi |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `fromat` | `'[$ssh_symbol$hostname]($style) in '` | Format dari modul. |
-| `style` | `'bold dimmed green'` | Gaya penataan untuk modul. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Opsi | Bawaan | Deskripsi |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `fromat` | `'[$ssh_symbol$hostname]($style) in '` | Format dari modul. |
+| `style` | `'bold dimmed green'` | Gaya penataan untuk modul. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variabel
@@ -2128,6 +2217,8 @@ The `hostname` module shows the system hostname.
### Contoh
+#### Always show the hostname
+
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Opsi
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Opsi | Bawaan | Deskripsi |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `fromat` | `'[$symbol$context( \($namespace\))]($style) in '` | Format dari modul. |
| `style` | `'cyan bold'` | Gaya penataan untuk modul. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variabel | Deskripsi |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variabel
| Variabel | Contoh | Deskripsi |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2637,7 +2768,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | Format dari modul |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'👑 '` | The symbol used before displaying the version of Nim. |
| `detect_extensions` | `['nim', 'nims', 'nimble']` | Ekstensi mana yang sebaiknya memicu modul ini. |
@@ -2674,7 +2805,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| Opsi | Bawaan | Deskripsi |
| ------------- | ---------------------------------------------- | --------------------------------------------------------------------- |
-| `format` | `'via [$symbol$state( \($name\))]($style) '` | Format dari modul. |
+| `fromat` | `'via [$symbol$state( \($name\))]($style) '` | Format dari modul. |
| `symbol` | `'❄️ '` | A format string representing the symbol of nix-shell. |
| `style` | `'bold blue'` | Gaya penataan untuk modul. |
| `impure_msg` | `'impure'` | A format string shown when the shell is impure. |
@@ -2722,7 +2853,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `' '` | A format string representing the symbol of Node.js. |
| `detect_extensions` | `['js', 'mjs', 'cjs', 'ts', 'mts', 'cts']` | Ekstensi mana yang sebaiknya memicu modul ini. |
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Folder mana yang sebaiknya memicul modul ini. |
| `style` | `'bold green'` | Gaya penataan untuk modul. |
| `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. |
+| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
### Variabel
@@ -2767,7 +2898,7 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
| Opsi | Bawaan | Deskripsi |
| ------------------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)'` | The format string for the module. |
+| `fromat` | `'via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🐫 '` | The symbol used before displaying the version of OCaml. |
| `global_switch_indicator` | `''` | The format string used to represent global OPAM switch. |
@@ -2807,7 +2938,7 @@ The `opa` module shows the currently installed version of the OPA tool. By defau
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🪖 '` | A format string representing the symbol of OPA. |
| `detect_extensions` | `['rego']` | Ekstensi mana yang sebaiknya memicu modul ini. |
@@ -2843,7 +2974,7 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| Opsi | Bawaan | Deskripsi |
| ---------- | ----------------------------------------------- | -------------------------------------------------------------- |
-| `format` | `'on [$symbol$cloud(\($project\))]($style) '` | Format dari modul. |
+| `fromat` | `'on [$symbol$cloud(\($project\))]($style) '` | Format dari modul. |
| `symbol` | `'☁️ '` | The symbol used before displaying the current OpenStack cloud. |
| `style` | `'bold yellow'` | Gaya penataan untuk modul. |
| `disabled` | `false` | Disables the `openstack` module. |
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Opsi | Bawaan | Deskripsi |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | Format dari modul. |
-| `style` | `"bold white"` | Gaya penataan untuk modul. |
+| `fromat` | `'[$symbol]($style)'` | Format dari modul. |
+| `style` | `'bold white'` | Gaya penataan untuk modul. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3000,7 +3131,7 @@ The `package` module is shown when the current directory is the repository for a
| Opsi | Bawaan | Deskripsi |
| ----------------- | --------------------------------- | ----------------------------------------------------------------------------------- |
-| `format` | `'is [$symbol$version]($style) '` | Format dari modul. |
+| `fromat` | `'is [$symbol$version]($style) '` | Format dari modul. |
| `symbol` | `'📦 '` | The symbol used before displaying the version the package. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `style` | `'bold 208'` | Gaya penataan untuk modul. |
@@ -3040,7 +3171,7 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
| Opsi | Bawaan | Deskripsi |
| ------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | The format string for the module. |
+| `fromat` | `'via [$symbol($version )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🐪 '` | The symbol used before displaying the version of Perl |
| `detect_extensions` | `['pl', 'pm', 'pod']` | Ekstensi mana yang sebaiknya memicu modul ini. |
@@ -3245,7 +3376,7 @@ Secara bawaan, modul akan aktif jika beberapa syarat berikut telah terpenuhi:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `style` | `'yellow bold'` | Gaya penataan untuk modul. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `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']` | Ekstensi mana yang sebaiknya memicu modul ini |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | filenames mana yang sebaiknya memicu modul ini |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Opsi
-| Opsi | Bawaan | Deskripsi |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `fromat` | `'[$indicator]($style) '` | Format dari modul. |
-| `style` | `'white bold'` | Gaya penataan untuk modul. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Opsi | Bawaan | Deskripsi |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `fromat` | `'[$indicator]($style) '` | Format dari modul. |
+| `style` | `'white bold'` | Gaya penataan untuk modul. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variabel
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Opsi | Bawaan | Deskripsi |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `fromat` | `"via [$symbol($version )]($style)"` | Format dari modul. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Ekstensi mana yang sebaiknya memicu modul ini. |
| `detect_files` | `[]` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
-| `style` | `"bold blue"` | Gaya penataan untuk modul. |
+| `style` | `'bold blue'` | Gaya penataan untuk modul. |
| `disabled` | `false` | Disables this module. |
### Variabel
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- Direktori ini memiliki berkas `template.typ`
+- The current directory contains any `*.typ` file
+
+### Opsi
+
+| Opsi | Bawaan | Deskripsi |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
+| `fromat` | `'via [$symbol($version )]($style)'` | Format dari modul. |
+| `version_format` | `'v${raw}'` | Format dari versi. Variabel yang tersedia adalah `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | Gaya penataan untuk modul. |
+| `detect_extensions` | `['.typ']` | Ekstensi mana yang sebaiknya memicu modul ini. |
+| `detect_files` | `['template.typ']` | filenames mana yang sebaiknya memicu modul ini. |
+| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variabel
+
+| Variabel | Contoh | Deskripsi |
+| ------------- | -------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `bawaan` | The current Typst version |
+| symbol | | Menyalin nilai dari opsi `symbol` |
+| style\* | | Menyalin nilai dari opsi `style` |
+
+*: Variabel tersebut hanya dapat digunakan sebagai bagian dari penataan string
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/id-ID/guide/README.md b/docs/id-ID/guide/README.md
index 48cfe869..28776608 100644
--- a/docs/id-ID/guide/README.md
+++ b/docs/id-ID/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Ikuti @StarshipPrompt di Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/id-ID/presets/README.md b/docs/id-ID/presets/README.md
index ac15b0b0..29c180d1 100644
--- a/docs/id-ID/presets/README.md
+++ b/docs/id-ID/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/id-ID/presets/gruvbox-rainbow.md b/docs/id-ID/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..9208142e
--- /dev/null
+++ b/docs/id-ID/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Prasyarat
+
+- [Nerd Font](https://www.nerdfonts.com/) yang sudah terpasang dan berjalan di dalam terminalmu
+
+### Konfigurasi
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/id-ID/presets/jetpack.md b/docs/id-ID/presets/jetpack.md
new file mode 100644
index 00000000..58dde840
--- /dev/null
+++ b/docs/id-ID/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Konfigurasi
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/it-IT/config/README.md b/docs/it-IT/config/README.md
index 1b7ff22d..420fedd5 100644
--- a/docs/it-IT/config/README.md
+++ b/docs/it-IT/config/README.md
@@ -206,6 +206,13 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserisce una riga vuota tra i prompt della shell. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Esempio
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Opzioni
| Opzione | Default | Descrizione |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | Lo stile per il modulo. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Opzioni
-| Opzione | Default | Descrizione |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Quali estensioni dovrebbero attivare questo modulo. |
-| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
-| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | Lo stile per il modulo. |
-| `disabled` | `false` | Disables the `c` module. |
+| Opzione | Default | Descrizione |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | Lo stile per il modulo. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Opzioni
+
+| Opzione | Default | Descrizione |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | Lo stile per il modulo. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `['.envrc']` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | Esempio | Descrizione |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### Esempio
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | Lo stile per il modulo. |
-| `detect_extensions` | `[fnl]` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_extensions` | `['fnl']` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Opzioni
+
+| Opzione | Default | Descrizione |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Variable | Esempio | Descrizione |
+| ----------------- | ------- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### Esempio
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Opzioni
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Opzione | Default | Descrizione |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | Lo stile per il modulo. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | Lo stile per il modulo. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Quali estensioni dovrebbero attivare questo modulo. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
-| `detect_folders` | `["gradle"]` | Quali cartelle dovrebbero attivare questo modulo. |
-| `style` | `"bold bright-cyan"` | Lo stile per il modulo. |
+| `detect_folders` | `['gradle']` | Quali cartelle dovrebbero attivare questo modulo. |
+| `style` | `'bold bright-cyan'` | Lo stile per il modulo. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Opzione | Default | Descrizione |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Quali estensioni dovrebbero attivare questo modulo. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Quali nomi di file dovrebbero attivare questo modulo. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | Lo stile per il modulo. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | Lo stile per il modulo. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Opzioni
-| Opzione | Default | Descrizione |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `style` | `'bold dimmed green'` | Lo stile per il modulo. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Opzione | Default | Descrizione |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `style` | `'bold dimmed green'` | Lo stile per il modulo. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variables
@@ -2126,7 +2215,9 @@ The `hostname` module shows the system hostname.
*: This variable can only be used as a part of a style string
-### Esempio
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Opzioni
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Opzione | Default | Descrizione |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `style` | `'cyan bold'` | Lo stile per il modulo. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Descrizione |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Esempio | Descrizione |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Quali cartelle dovrebbero attivare questo modulo. |
| `style` | `'bold green'` | Lo stile per il modulo. |
| `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. |
+| `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
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Opzione | Default | Descrizione |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | Lo stile per il modulo. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | Lo stile per il modulo. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3038,16 +3169,16 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
### Opzioni
-| Opzione | Default | Descrizione |
-| ------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minore`, & `patch` |
-| `symbol` | `'🐪 '` | The symbol used before displaying the version of Perl |
-| `detect_extensions` | `['pl', 'pm', 'pod']` | Quali estensioni dovrebbero attivare questo modulo. |
-| `detect_files` | `['Makefile.PL', 'Build.PL', 'cpanfile', 'cpanfile.snapshot', 'META.json', 'META.yml', '.perl-version']` | Quali nomi di file dovrebbero attivare questo modulo. |
-| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
-| `style` | `'bold 149'` | Lo stile per il modulo. |
-| `disabled` | `false` | Disables the `perl` module. |
+| Opzione | Default | Descrizione |
+| ------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🐪 '` | The symbol used before displaying the version of Perl |
+| `detect_extensions` | `['pl', 'pm', 'pod']` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `['Makefile.PL', 'Build.PL', 'cpanfile', 'cpanfile.snapshot', 'META.json', 'META.yml', '.perl-version']` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
+| `style` | `'bold 149'` | Lo stile per il modulo. |
+| `disabled` | `false` | Disables the `perl` module. |
### Variables
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `style` | `'yellow bold'` | Lo stile per il modulo. |
| `pyenv_version_name` | `false` | Use pyenv to get Python version |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `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']` | Quali estensioni dovrebbero attivare questo modulo |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Quali nomi di file dovrebbero attivare questo modulo |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Opzioni
-| Opzione | Default | Descrizione |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | Lo stile per il modulo. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Opzione | Default | Descrizione |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | Lo stile per il modulo. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Opzione | Default | Descrizione |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Quali estensioni dovrebbero attivare questo modulo. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Quali estensioni dovrebbero attivare questo modulo. |
| `detect_files` | `[]` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
-| `style` | `"bold blue"` | Lo stile per il modulo. |
+| `style` | `'bold blue'` | Lo stile per il modulo. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Opzioni
+
+| Opzione | Default | Descrizione |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | Il formato della versione. Le variabili disponibili sono `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | Lo stile per il modulo. |
+| `detect_extensions` | `['.typ']` | Quali estensioni dovrebbero attivare questo modulo. |
+| `detect_files` | `['template.typ']` | Quali nomi di file dovrebbero attivare questo modulo. |
+| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | Esempio | Descrizione |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/it-IT/guide/README.md b/docs/it-IT/guide/README.md
index 90774728..f718014a 100644
--- a/docs/it-IT/guide/README.md
+++ b/docs/it-IT/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Segui @StarshipPrompt su Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/it-IT/presets/README.md b/docs/it-IT/presets/README.md
index 532d5c7d..b5e07764 100644
--- a/docs/it-IT/presets/README.md
+++ b/docs/it-IT/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/it-IT/presets/gruvbox-rainbow.md b/docs/it-IT/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..300d2ad4
--- /dev/null
+++ b/docs/it-IT/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Prerequisiti
+
+- Un [ Nerd Font ](https://www.nerdfonts.com/) installato e abilitato nel tuo terminale
+
+### Configurazione
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/it-IT/presets/jetpack.md b/docs/it-IT/presets/jetpack.md
new file mode 100644
index 00000000..90212874
--- /dev/null
+++ b/docs/it-IT/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Configurazione
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/ja-JP/README.md b/docs/ja-JP/README.md
index 48786a3d..2d5e81c2 100644
--- a/docs/ja-JP/README.md
+++ b/docs/ja-JP/README.md
@@ -50,12 +50,12 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
#### パッケージマネージャー経由でインストール
- [ Homebrew ](https://brew.sh/)の場合:
+ [ Homebrew](https://brew.sh/)を使用する
```sh
brew install starship
```
- With [Winget](https://github.com/microsoft/winget-cli):
+ [Winget](https://github.com/microsoft/winget-cli)を使用する
```powershell
winget install starship
@@ -153,7 +153,7 @@ description: Starship はミニマルで、非常に高速で、カスタマイ
:::
- Nushellの環境ファイルの最後に以下を追記してください ( `$nu.env-path` を実行してください):
+ そして、Nushellの設定ファイルの最後に以下を追加してください( `$nu.config-path` を実行してください):
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md
index b66bfe9f..915a02ed 100644
--- a/docs/ja-JP/config/README.md
+++ b/docs/ja-JP/config/README.md
@@ -206,6 +206,13 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
| `add_newline` | `true` | シェルプロンプトの間に空行を挿入します。 |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### 設定例
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ The module will display a profile only if its credentials are present in `~/.aws
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### オプション
| オプション | デフォルト | 説明 |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | AWS名に加えて表示するリージョンのエイリアスです。 |
| `profile_aliases` | `{}` | AWS名に加えて表示するプロファイルのエイリアスです。 |
| `style` | `'bold yellow'` | モジュールのスタイルです。 |
-| `expiration_symbol` | `X` | この記号は一時的な資格情報が有効期限切れの場合に表示されます。 |
+| `expiration_symbol` | `'X'` | この記号は一時的な資格情報が有効期限切れの場合に表示されます。 |
| `disabled` | `false` | `aws`モジュールを無効にします。 |
| `force_display` | `false` | `true`の場合、`credentials`、`credential_process`または`sso_start_url`が設定されていない場合でも情報を表示します。 |
@@ -620,17 +632,17 @@ format = 'via [🍔 $version](bold green) '
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------ |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | モジュールのフォーマット文字列。 |
-| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `'C '` | コンパイラの詳細を表示する前に使用される記号です。 |
-| `detect_extensions` | `['c', 'h']` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | コンパイラを検出する方法 |
-| `style` | `'bold 149'` | モジュールのスタイルです。 |
-| `disabled` | `false` | `c`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------ |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | モジュールのフォーマット文字列。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'C '` | コンパイラの詳細を表示する前に使用される記号です。 |
+| `detect_extensions` | `['c', 'h']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | コンパイラを検出する方法 |
+| `style` | `'bold 149'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `c`モジュールを無効にします。 |
### 変数
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | module のフォーマットです。 |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | モジュールのスタイルです。 |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | オプション `symbol` の値をミラーする. |
+| style\* | `red bold` | オプション `style` の値をミラーする. |
+
+*: この変数は、スタイル文字列の一部としてのみ使用することができます。
+
+### 設定例
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## Docker Context
`docker_context`モジュールは、`default`に設定されていない場合、または環境変数`DOCKER_MACHINE_NAME`、`DOCKER_HOST`または`DOCKER_CONTEXT`が設定されている場合 (使用中のコンテキストを上書きするため)、現在アクティブな[Docker context](https://docs.docker.com/engine/context/working-with-contexts/)を表示します。
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | モジュールのスタイルです。 |
-| `detect_extensions` | `[fnl]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_extensions` | `['fnl']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | module のフォーマットです。 |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| ----------------- | --- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: この変数は、スタイル文字列の一部としてのみ使用することができます。
+
+### 設定例
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
`gcloud` モジュールは、 [`gcloud`](https://cloud.google.com/sdk/gcloud) CLIの現在の設定が表示されます。 これは `~/.config/gcloud/active_config` ファイルと `~/.config/gcloud/configurations/config_{CONFIG NAME}` ファイルと `CLOUDSDK_CONFIG` 環境変数に基づきます。
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### オプション
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| オプション | デフォルト | 説明 |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | module のフォーマットです。 |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | モジュールのスタイルです。 |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | モジュールのスタイルです。 |
| `disabled` | `false` | Disables the `guix_shell` module. |
### 変数
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| オプション | デフォルト | 説明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
-| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | どの拡張子がこのモジュールをアクティブにするか |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `["gradle"]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `style` | `"bold bright-cyan"` | モジュールのスタイルです。 |
+| `detect_folders` | `['gradle']` | どのフォルダーがこのモジュールをアクティブにするか |
+| `style` | `'bold bright-cyan'` | モジュールのスタイルです。 |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| オプション | デフォルト | 説明 |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
-| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `detect_extensions` | `["hx", "hxml"]` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | モジュールのスタイルです。 |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `detect_extensions` | `['hx', 'hxml']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | どのフォルダーがこのモジュールをアクティブにするか |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | モジュールのスタイルです。 |
| `disabled` | `false` | Disables the `haxe` module. |
### 変数
@@ -2107,14 +2195,15 @@ format = 'via [⎈ $version](bold white) '
### オプション
-| オプション | デフォルト | 説明 |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | SSHセッションに接続されている場合にのみホスト名を表示します。 |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | この文字が最初にマッチするまでをホスト名と認識します。 `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | module のフォーマットです。 |
-| `style` | `'bold dimmed green'` | モジュールのスタイルです。 |
-| `disabled` | `false` | `hostname`モジュールを無効にします。 |
+| オプション | デフォルト | 説明 |
+| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | SSHセッションに接続されている場合にのみホスト名を表示します。 |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | この文字が最初にマッチするまでをホスト名と認識します。 `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | module のフォーマットです。 |
+| `style` | `'bold dimmed green'` | モジュールのスタイルです。 |
+| `disabled` | `false` | `hostname`モジュールを無効にします。 |
### 変数
@@ -2128,6 +2217,8 @@ format = 'via [⎈ $version](bold white) '
### 設定例
+#### Always show the hostname
+
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
`Java`モジュールは、現在インストールされている[Java](https://www.oracle.com/java/)のバージョンを表示します。 デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 環境変数`$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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 環境変数`$KUBECONFIG`が設定されている場合、このモジュールはそれを利用し、`~/.kube/config`を利用しません。
::: tip
@@ -2335,17 +2437,39 @@ When the module is enabled it will always be active, unless any of `detect_exten
### オプション
-| オプション | デフォルト | 説明 |
-| ------------------- | ---------------------------------------------------- | --------------------------------- |
-| `symbol` | `'☸ '` | クラスター名の前に表示されるシンボルを表すフォーマット文字列。 |
-| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | module のフォーマットです。 |
-| `style` | `'cyan bold'` | モジュールのスタイルです。 |
-| `context_aliases` | `{}` | コンテキストの表示エイリアスを定義するテーブル。 |
-| `user_aliases` | `{}` | Table of user aliases to display. |
-| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
-| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
-| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `disabled` | `true` | `kubernetes` モジュールを無効にする。 |
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
+| オプション | デフォルト | 説明 |
+| ------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
+| `symbol` | `'☸ '` | クラスター名の前に表示されるシンボルを表すフォーマット文字列。 |
+| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | module のフォーマットです。 |
+| `style` | `'cyan bold'` | モジュールのスタイルです。 |
+| `context_aliases`* | `{}` | コンテキストの表示エイリアスを定義するテーブル。 |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
+| `detect_extensions` | `[]` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
+| `disabled` | `true` | `kubernetes` モジュールを無効にする。 |
+
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| 変数 | 説明 |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
### 変数
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| `detect_folders` | `['node_modules']` | どのフォルダーがこのモジュールをアクティブにするか |
| `style` | `'bold green'` | モジュールのスタイルです。 |
| `disabled` | `false` | `nodejs`モジュールを無効にします。 |
-| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
+| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
### 変数
@@ -2890,8 +3021,8 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
| オプション | デフォルト | 説明 |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | module のフォーマットです。 |
-| `style` | `"bold white"` | モジュールのスタイルです。 |
+| `format` | `'[$symbol]($style)'` | module のフォーマットです。 |
+| `style` | `'bold white'` | モジュールのスタイルです。 |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ The `python` module shows the currently installed version of [Python](https://ww
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `style` | `'yellow bold'` | モジュールのスタイルです。 |
| `pyenv_version_name` | `false` | pyenvを使用してPythonバージョンを取得します |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `pyenv_prefix` | `'pyenv'` | Prefix before pyenv version display, only used if pyenv is used |
| `python_binary` | `['python', 'python3', 'python2']` | Configures the python binaries that Starship should executes when getting the version. |
| `detect_extensions` | `['py']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | どのファイル名がこのモジュールをアクティブにするか |
@@ -3562,22 +3693,23 @@ The `shell` module shows an indicator for currently used shell.
### オプション
-| オプション | デフォルト | 説明 |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | module のフォーマットです。 |
-| `style` | `'white bold'` | モジュールのスタイルです。 |
-| `disabled` | `true` | Disables the `shell` module. |
+| オプション | デフォルト | 説明 |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | module のフォーマットです。 |
+| `style` | `'white bold'` | モジュールのスタイルです。 |
+| `disabled` | `true` | Disables the `shell` module. |
### 変数
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| オプション | デフォルト | 説明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | module のフォーマットです。 |
-| `version_format` | `"v${major}.${minor}.${patch}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | どの拡張子がこのモジュールをアクティブにするか |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${major}.${minor}.${patch}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | どの拡張子がこのモジュールをアクティブにするか |
| `detect_files` | `[]` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
-| `style` | `"bold blue"` | モジュールのスタイルです。 |
+| `style` | `'bold blue'` | モジュールのスタイルです。 |
| `disabled` | `false` | Disables this module. |
### 変数
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
+
+- カレントディレクトリに`template.typ`ファイルが含まれている
+- The current directory contains any `*.typ` file
+
+### オプション
+
+| オプション | デフォルト | 説明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | module のフォーマットです。 |
+| `version_format` | `'v${raw}'` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
+| `symbol` | `'t '` | Damlの記号を表すフォーマット文字列です。 |
+| `style` | `'bold #0093A7'` | モジュールのスタイルです。 |
+| `detect_extensions` | `['.typ']` | どの拡張子がこのモジュールをアクティブにするか |
+| `detect_files` | `['template.typ']` | どのファイル名がこのモジュールをアクティブにするか |
+| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
+| `disabled` | `false` | `daml`モジュールを無効にします。 |
+
+### 変数
+
+| 変数 | 設定例 | 説明 |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| symbol | | オプション `symbol` の値をミラーする |
+| style\* | | オプション `style` の値をミラーする |
+
+*: この変数は、スタイル文字列の一部としてのみ使用することができます。
+
## ユーザー名
`username`モジュールはアクティブなユーザーのユーザー名を表示します。 次の条件のいずれかが満たされると、モジュールが表示されます:
diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md
index 84677ee3..1d0167b3 100644
--- a/docs/ja-JP/guide/README.md
+++ b/docs/ja-JP/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Follow @StarshipPrompt on Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
@@ -270,7 +274,7 @@ curl -sS https://starship.rs/install.sh | sh
-### Step 2. Set up your shell to use Starship
+### Step 2. Starshipをシェルにセットアップ
Starshipを初期化するためのシェルの設定。 以下のリストからお使いのシェルを選択してください。
@@ -334,27 +338,27 @@ eval $(starship init ion)
Nushell
-Nushellの環境ファイルの最後に以下を追記してください ( `$nu.env-path` を実行してください):
+そして、Nushellの設定ファイルの最後に以下を追加してください( `$nu.config-path` を実行してください):
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
-そして、Nushellの設定ファイルの最後に以下を追加してください( `$nu.config-path` を実行してください)。
+そして、Nushellの設定ファイルの最後に以下を追記してください (`$nu.config-path` を実行してください):
```sh
use ~/.cache/starship/init.nu
```
-注意: Elvish v0.78以降でサポートされています
+注意: Nushell v0.78以降でサポートされています
PowerShell
-PowerShellの設定ファイルの最後に以下を追記してください (`$PROFILE` を実行してください):
+そして、Nushellの設定ファイルの最後に以下を追加してください( `$PROFILE.config-path` を実行してください):
```powershell
Invoke-Expression (&starship init powershell)
diff --git a/docs/ja-JP/presets/README.md b/docs/ja-JP/presets/README.md
index cbfe7047..0eebf1a3 100644
--- a/docs/ja-JP/presets/README.md
+++ b/docs/ja-JP/presets/README.md
@@ -63,3 +63,9 @@ This preset does not show icons if the toolset is not found.
このプリセットは[tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme)を参考にしています。
[![Tokyo Night プリセットのスクリーンショット](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/ja-JP/presets/gruvbox-rainbow.md b/docs/ja-JP/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..badafdbd
--- /dev/null
+++ b/docs/ja-JP/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[プリセット一覧に戻る](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### 必要なもの
+
+- [Nerd Font](https://www.nerdfonts.com/)のインストールとターミナルでの有効化
+
+### 設定
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[クリックしてTOMLをダウンロード](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/ja-JP/presets/jetpack.md b/docs/ja-JP/presets/jetpack.md
new file mode 100644
index 00000000..59a44ce3
--- /dev/null
+++ b/docs/ja-JP/presets/jetpack.md
@@ -0,0 +1,24 @@
+[プリセット一覧に戻る](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### 設定
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[クリックしてTOMLをダウンロード](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/ko-KR/README.md b/docs/ko-KR/README.md
index c3d7bbbd..1b95959b 100644
--- a/docs/ko-KR/README.md
+++ b/docs/ko-KR/README.md
@@ -2,23 +2,23 @@
home: true
heroImage: /logo.svg
heroText:
-tagline: 간결하고 화끈하게 빠르며 무제한으로 커스터마이징이 가능한 프롬프트. 어떤 쉘에서든 사용할 수 있습니다!
-actionText: Get Started →
+tagline: 아무 셸에나 적용할 수 있는 작고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다!
+actionText: 시작하기 →
actionLink: ./guide/
features:
-
- title: Compatibility First
- details: Works on the most common shells on the most common operating systems. Use it everywhere!
+ title: 호환성 우선
+ details: 거의 모든 운영 체제의 거의 모든 셸에서 동작합니다. 모든 곳에서 사용해 보세요!
-
- title: Rust-Powered
- details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
+ title: Rust 기반
+ details: Rust의 최고 수준의 속도와 안정성으로 프롬프트를 가능한 한 빠르고 안정적으로 만들어 보세요.
-
- title: Customizable
- details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
+ title: 커스텀 가능
+ details: 모든 사소한 디테일들을 마음대로 커스텀할 수 있어, 프롬프트를 원하는 만큼 간단하게 만들거나 기능이 풍부하게 만들 수 있습니다.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
-metaTitle: "Starship: Cross-Shell Prompt"
-description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
+metaTitle: "Starship: 크로스-셸 프롬프트"
+description: Starship은 아무 셸에나 적용할 수 있는 작고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다! 필요한 정보를 깔끔하고 간략하게 표시합니다. Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, 및 PowerShell에 빠르게 설치할 수 있습니다.
---
@@ -39,7 +39,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### 최근 버전 설치
- With Shell:
+ 셸로 설치:
```sh
curl -sS https://starship.rs/install.sh | sh
@@ -48,14 +48,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
Starship을 업데이트하고 싶은 경우에도 위의 스크립트를 실행시키면 됩니다. Starship의 설정은 변경되지 않고 버전만 최근 버전으로 대체될 것입니다.
- #### 패키지 매니저를 이용한 설치
+ #### 패키지 매니저로 설치하기
- [Homebrew](https://brew.sh/)를 통한 설치:
+ [Homebrew](https://brew.sh/)로 설치:
```sh
brew install starship
```
- With [Winget](https://github.com/microsoft/winget-cli):
+ [Winget](https://github.com/microsoft/winget-cli)으로 설치:
```powershell
winget install starship
@@ -121,7 +121,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: warning
- Only elvish v0.18 or higher is supported.
+ elvish 버전 v0.18 이상에서만 지원됩니다.
:::
@@ -149,17 +149,17 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
::: warning
- This will change in the future. Only Nushell v0.78+ is supported.
+ 추후에 변경될 예정입니다. Nushell v0.78 버전 이상에서만 지원됩니다.
:::
- Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
+ 다음 내용을 Nushell env 파일 (찾으려면 Nushell에서 `$nu.env-path` 실행) 마지막 부분에 추가하세요:
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
- And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
+ 다음 내용을 Nushell 설정 파일 (찾으려면 Nushell에서 `$nu.config-path` 실행) 마지막 부분에 추가하세요:
```sh
use ~/.cache/starship/init.nu
diff --git a/docs/ko-KR/advanced-config/README.md b/docs/ko-KR/advanced-config/README.md
index 01374cef..b18e3a05 100644
--- a/docs/ko-KR/advanced-config/README.md
+++ b/docs/ko-KR/advanced-config/README.md
@@ -1,4 +1,4 @@
-# Advanced Configuration
+# 고급 설정
While Starship is a versatile shell, sometimes you need to do more than edit `starship.toml` to get it to do certain things. This page details some of the more advanced configuration techniques used in starship.
@@ -199,27 +199,27 @@ function Invoke-Starship-PreCommand {
Invoke-Expression (&starship init powershell)
```
-## Enable Right Prompt
+## 오른쪽 프롬프트 활성화
-Some shells support a right prompt which renders on the same line as the input. Starship can set the content of the right prompt using the `right_format` option. Any module that can be used in `format` is also supported in `right_format`. The `$all` variable will only contain modules not explicitly used in either `format` or `right_format`.
+일부 셸은 입력과 같은 줄에 렌더링되는 오른쪽 프롬프트를 지원합니다. Starship에서는 `right_format` 옵션을 사용하여 오른쪽 프롬프트의 내용을 설정할 수 있습니다. `format`에서 사용할 수 있는 모든 모듈은 `right_format`에서도 지원됩니다. `$all` 변수는 `format` 또는 `right_format`에서 명시적으로 사용하지 않는 모듈만 포함합니다.
-Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
+알림: 오른쪽 프롬프트는 입력 위치에 따라 한 줄로 표시됩니다. 여러 줄 프롬프트에서 입력 선 위의 모듈을 오른쪽 정렬하려면, [`fill` 모듈](/config/#fill)을 참고하세요.
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format`은 현재 elvish, fish, zsh, xonsh, cmd, nushell에서 지원됩니다.
-### Example
+### 예시
```toml
# ~/.config/starship.toml
-# A minimal left prompt
+# 간결한 왼쪽 프롬프트
format = """$character"""
-# move the rest of the prompt to the right
+# 프롬프트의 나머지를 오른쪽으로 옮기기
right_format = """$all"""
```
-Produces a prompt like the following:
+위 설정은 아래와 같은 프롬프트를 출력합니다:
```
▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
@@ -239,7 +239,7 @@ Note: Continuation prompts are only available in the following shells:
- `zsh`
- `Powershell`
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -248,9 +248,9 @@ Note: Continuation prompts are only available in the following shells:
continuation_prompt = '▶▶ '
```
-## Style Strings
+## 스타일 문자열
-Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
+스타일 문자열은 공백으로 구분된 단어 목록입니다. 단어는 대소문자를 구분하지 않습니다 (즉, `bold`와 `BoLd`는 동일한 문자열로 간주됩니다). 각 단어는 다음 중 하나가 될 수 있습니다:
- `bold`
- `italic`
@@ -265,15 +265,15 @@ 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.
+`` 부분은 색상 지정자입니다 (아래에 후술). 현재, `fg:` 와 ``는 동일한 동작을 하지만 차후에 바뀔 수 있습니다. `inverted`는 배경 색과 전경 색을 서로 바꿉니다. 문자열의 단어 순서는 중요하지 않습니다.
-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.
+The `none` token overrides all other tokens in a string if it is not part of a `bg:` specifier, so that e.g. `fg:red none fg:blue` will still create a string with no styling. `bg:none` sets the background to the default color so `fg:red bg:none` is equivalent to `red` or `fg:red` and `bg:green fg:red bg:none` is also equivalent to `fg:red` or `red`. 향후 다른 토큰과 함께 `none`을 사용하는 것은 오류가 발생할 수 있습니다.
-A color specifier can be one of the following:
+색상 지정자는 다음 중 하나가 될 수 있습니다:
-- 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).
-- A number between 0-255. This specifies an [8-bit ANSI Color Code](https://i.stack.imgur.com/KTSQa.png).
+- 표준 터미널 색상: `black`, `red`, `green`, `blue`, `yellow`, `purple`, `cyan`, `white`. 앞에 `bright-`를 붙여 밝게 만들 수도 있습니다 (예시: `bright-white`).
+- `#` 다음의 여섯 자리 16진수 숫자. 이는 [RGB 색상 16진수 코드](https://www.w3schools.com/colors/colors_hexadecimal.asp)입니다.
+- 0~255 사이의 숫자. 이는 [8비트 ANSI 색상 코드](https://i.stack.imgur.com/KTSQa.png)입니다.
If multiple colors are specified for foreground/background, the last one in the string will take priority.
diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md
index 396fbb2c..4875c0e8 100644
--- a/docs/ko-KR/config/README.md
+++ b/docs/ko-KR/config/README.md
@@ -1,30 +1,30 @@
-# Configuration
+# 설정
-To get started configuring starship, create the following file: `~/.config/starship.toml`.
+Starship을 설정하려면, `~/.config/starship.toml` 경로에 파일을 만드세요.
```sh
mkdir -p ~/.config && touch ~/.config/starship.toml
```
-All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file:
+Starship의 모든 설정은 이 [TOML](https://github.com/toml-lang/toml) 파일에서 할 수 있습니다.
```toml
-# Get editor completions based on the config schema
+# 설정 스키마에 따른 에디터 자동 완성 가져오기
"$schema" = 'https://starship.rs/config-schema.json'
-# Inserts a blank line between shell prompts
+# 셸 프롬프트 사이에 빈 줄 추가하기
add_newline = true
-# Replace the '❯' symbol in the prompt with '➜'
-[character] # The name of the module we are configuring is 'character'
-success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
+# 프롬프트의 '❯' 심볼을 '➜' 로 대체하기
+[character] # 설정할 모듈의 이름은 'character'
+success_symbol = '[➜](bold green)' # 'success_symbol' 세그먼트를 'bold green' 색상의 '➜' 로 설정
-# Disable the package module, hiding it from the prompt completely
+# package 모듈을 비활성화하고 프롬프트에서 완전히 숨겨버리기
[package]
disabled = true
```
-### Config File Location
+### 설정 파일 경로
You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
@@ -44,7 +44,7 @@ Or for Cmd (Windows) would be adding this line to your `starship.lua`:
os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\starship.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 an instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable:
@@ -64,28 +64,28 @@ Or for Cmd (Windows) would be adding this line to your `starship.lua`:
os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
```
-### Terminology
+### 용어
-**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of Node.js that is currently installed on your computer, if your current directory is a Node.js project.
+**모듈**: OS의 배경 정보를 기반으로 정보를 제공하는 프롬프트의 구성 요소입니다. 예를 들어, "nodejs" 모듈은 현재 디렉토리가 Node.js 프로젝트 디렉토리라면 컴퓨터에 현재 설치되어 있는 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.
By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix.
-### Strings
+### 문자열
-In TOML syntax, [text values](https://toml.io/en/v1.0.0#string) are declared with `'`, `"`, `'''`, or `"""`.
+TOML 문법에서는 [텍스트 값](https://toml.io/en/v1.0.0#string)을 `'`, `"`, `'''`, 그리고 `"""`으로 지정합니다.
The following Starship syntax symbols have special usage in a format string and must be escaped to display as that character: `$ [ ] ( )`.
-| Symbol | Type | Notes |
-| ------ | ------------------------- | ------------------------------------------------------ |
-| `'` | literal string | less escaping |
-| `"` | string | more escaping |
-| `'''` | multi-line literal string | less escaping |
-| `"""` | multi-line string | more escaping, newlines in declarations can be ignored |
+| 기호 | 종류 | 비고 |
+| ----- | ------------------------- | ------------------------------------------------------ |
+| `'` | 리터럴 문자열 | less escaping |
+| `"` | string | more escaping |
+| `'''` | multi-line literal string | less escaping |
+| `"""` | multi-line string | more escaping, newlines in declarations can be ignored |
-For example:
+예를 들어:
```toml
# literal string
@@ -136,7 +136,7 @@ Format strings are the format that a module prints all its variables with. Most
A variable contains a `$` symbol followed by the name of the variable. The name of a variable can only contain letters, numbers and `_`.
-For example:
+예를 들어:
- `'$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`.
@@ -150,15 +150,15 @@ The first part, which is enclosed in a `[]`, is a [format string](#format-string
In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
-For example:
+예를 들어:
- `'[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.
-#### Style Strings
+#### 스타일 문자열
-Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/).
+Starship의 대부분의 모듈에 표시 스타일을 설정할 수 있습니다. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/).
- `'fg:green bg:blue'` sets green text on a blue background
- `'bg:blue fg:bright-green'` sets bright green text on a blue background
@@ -173,7 +173,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:
+예를 들어:
- `'(@$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.
@@ -206,8 +206,15 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
-### Example
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
+
+### 예시
```toml
# ~/.config/starship.toml
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,32 +361,34 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Default | Description |
| ------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `format` | `'on [$symbol($profile )(\($region\) )(\[$duration\] )]($style)'` | The format for the module. |
-| `symbol` | `'☁️ '` | The symbol used before displaying the current AWS profile. |
+| `기호` | `'☁️ '` | The symbol used before displaying the current AWS profile. |
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | The style for the module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------------- | ------------------------------------------- |
| 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` |
+| 기호 | | 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
-### Examples
+### 예시
#### Display everything
@@ -430,12 +442,12 @@ The `azure` module shows the current Azure Subscription. This is based on showin
| Variable | Default | Description |
| ---------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------- |
| `format` | `'on [$symbol($subscription)]($style) '` | The format for the Azure module to render. |
-| `symbol` | `' '` | The symbol used in the format. |
+| `기호` | `' '` | The symbol used in the format. |
| `style` | `'blue bold'` | The style used in the format. |
| `disabled` | `true` | Disables the `azure` module. |
| `subscription_aliases` | `{}` | Table of subscription name aliases to display in addition to Azure subscription name. |
-### Examples
+### 예시
#### Display Subscription Name
@@ -487,7 +499,7 @@ The `battery` module shows how charged the device's battery is and its current c
| `display` | [link](#battery-display) | Display threshold and style for the module. |
| `disabled` | `false` | Disables the `battery` module. |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -521,7 +533,7 @@ The `display` option is an array of the following table.
| `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. |
-#### Example
+#### 예시
```toml
[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10%
@@ -549,7 +561,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
| ------------------- | ----------------------------------------------- | ----------------------------------------------------- |
| `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. |
| `version_format` | `'v${raw}'` | The version format. |
-| `symbol` | `'🐃 '` | The symbol used before displaying the version of Buf. |
+| `기호` | `'🐃 '` | The symbol used before displaying the version of Buf. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
@@ -558,15 +570,15 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| `version` | `v1.0.0` | The version of `buf` |
-| `symbol` | | Mirrors the value of option `symbol` |
+| `기호` | | Mirrors the value of option `symbol` |
| `style`* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -588,7 +600,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🍞 '` | A format string representing the symbol of Bun. |
+| `기호` | `'🍞 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -597,15 +609,15 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v0.1.4` | The version of `bun` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -620,26 +632,26 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Option | Default | Description |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | The style for the module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `기호` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | The style for the module. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
-| Variable | Example | Description |
-| -------- | ------- | ------------------------------------ |
-| name | clang | The name of the compiler |
-| version | 13.0.0 | The version of the compiler |
-| symbol | | Mirrors the value of option `symbol` |
-| style | | Mirrors the value of option `style` |
+| Variable | 예시 | Description |
+| -------- | ------ | ------------------------------------ |
+| name | clang | The name of the compiler |
+| version | 13.0.0 | The version of the compiler |
+| 기호 | | Mirrors the value of option `symbol` |
+| style | | Mirrors the value of option `style` |
NB that `version` is not in the default format.
@@ -651,7 +663,7 @@ Each command is represented as a list of the executable name, followed by its ar
If a C compiler is not supported by this module, you can request it by [raising an issue on GitHub](https://github.com/starship/starship/).
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -692,11 +704,11 @@ By default it only changes color. If you also want to change its shape take a lo
### Variables
-| Variable | Example | Description |
-| -------- | ------- | -------------------------------------------------------------------------------------------------------- |
-| symbol | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. |
+| Variable | 예시 | Description |
+| -------- | -- | -------------------------------------------------------------------------------------------------------- |
+| 기호 | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. |
-### Examples
+### 예시
#### With custom error shape
@@ -740,7 +752,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
| ------------------- | -------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'△ '` | The symbol used before the version of cmake. |
+| `기호` | `'△ '` | 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 |
@@ -749,10 +761,10 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | --------- | ------------------------------------ |
| version | `v3.17.3` | The version of cmake |
-| symbol | | Mirrors the value of option `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
@@ -768,7 +780,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `symbol` | `'⚙️ '` | The symbol used before displaying the version of COBOL. |
+| `기호` | `'⚙️ '` | The symbol used before displaying the version of COBOL. |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `'bold blue'` | The style for the module. |
@@ -779,10 +791,10 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------- | ------------------------------------ |
| version | `v3.1.2.0` | The version of `cobol` |
-| symbol | | Mirrors the value of option `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
@@ -814,14 +826,14 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | --------------------------------------- |
| duration | `16m40s` | The time it took to execute the command |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -846,7 +858,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
| Option | Default | Description |
| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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. |
+| `기호` | `'🅒 '` | The symbol used before the environment name. |
| `style` | `'bold green'` | The style for the module. |
| `format` | `'via [$symbol$environment]($style) '` | The format for the module. |
| `ignore_base` | `true` | Ignores `base` environment when activated. |
@@ -854,15 +866,15 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| ----------- | ------------ | ------------------------------------ |
| environment | `astronauts` | The current conda environment |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -879,22 +891,22 @@ The `container` module displays a symbol and container name, if inside a contain
| Option | Default | Description |
| ---------- | ---------------------------------- | ----------------------------------------- |
-| `symbol` | `'⬢'` | The symbol shown, when inside a container |
+| `기호` | `'⬢'` | The symbol shown, when inside a container |
| `style` | `'bold red dimmed'` | The style for the module. |
| `format` | `'[$symbol \[$name\]]($style) '` | The format for the module. |
| `disabled` | `false` | Disables the `container` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ------------------- | ------------------------------------ |
| name | `fedora-toolbox:35` | The name of the container |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -914,7 +926,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `symbol` | `'🔮 '` | The symbol used before displaying the version of crystal. |
+| `기호` | `'🔮 '` | The symbol used before displaying the version of crystal. |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `style` | `'bold red'` | The style for the module. |
@@ -925,15 +937,15 @@ The `crystal` module shows the currently installed version of [Crystal](https://
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | --------- | ------------------------------------ |
| version | `v0.32.1` | The version of `crystal` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -954,7 +966,7 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'Λ '` | A format string representing the symbol of Daml |
+| `기호` | `'Λ '` | A format string representing the symbol of Daml |
| `style` | `'bold cyan'` | The style for the module. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['daml.yaml']` | Which filenames should trigger this module. |
@@ -963,15 +975,15 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v2.2.0` | The version of `daml` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -994,7 +1006,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🎯 '` | A format string representing the symbol of Dart |
+| `기호` | `'🎯 '` | 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. |
@@ -1003,15 +1015,15 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v2.8.4` | The version of `dart` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -1032,7 +1044,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d
| ------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🦕 '` | A format string representing the symbol of Deno |
+| `기호` | `'🦕 '` | A format string representing the symbol of Deno |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['deno.json', 'deno.jsonc', 'mod.ts', 'mod.js', 'deps.ts', 'deps.js']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -1041,13 +1053,13 @@ The `deno` module shows you your currently installed version of [Deno](https://d
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v1.8.3` | The version of `deno` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -1105,7 +1117,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | --------------------- | ----------------------------------- |
| path | `'D:/Projects'` | The current directory path |
| style\* | `'black bold dimmed'` | Mirrors the value of option `style` |
@@ -1117,7 +1129,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
Let us consider the path `/path/to/home/git_repo/src/lib`
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| ------------------ | --------------------- | --------------------------------------- |
| before_root_path | `'/path/to/home/'` | The path before git root directory path |
| repo_root | `'git_repo'` | The git root directory name |
@@ -1127,7 +1139,7 @@ Let us consider the path `/path/to/home/git_repo/src/lib`
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `기호` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | The style for the module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | 예시 | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| 기호 | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### 예시
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1146,7 +1199,7 @@ The `docker_context` module shows the currently active [Docker context](https://
| Option | Default | Description |
| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `format` | `'via [$symbol$context]($style) '` | The format for the module. |
-| `symbol` | `'🐳 '` | The symbol used before displaying the Docker context. |
+| `기호` | `'🐳 '` | 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). |
@@ -1156,15 +1209,15 @@ The `docker_context` module shows the currently active [Docker context](https://
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------------- | ------------------------------------ |
| context | `test_context` | The current docker context |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -1200,7 +1253,7 @@ The module will also show the Target Framework Moniker ($` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------------------- | ---------------------------------------- |
| context | `starship-context` | The current kubernetes context name |
| namespace | `starship-namespace` | If set, the current kubernetes namespace |
| user | `starship-user` | If set, the current kubernetes user |
| cluster | `starship-cluster` | If set, the current kubernetes cluster |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2418,7 +2549,7 @@ The `line_break` module separates the prompt into two lines.
| ---------- | ------- | ------------------------------------------------------------------ |
| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2442,14 +2573,14 @@ The `localip` module shows the IPv4 address of the primary network interface.
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ------------ | ----------------------------------- |
| localipv4 | 192.168.1.13 | Contains the primary IPv4 address |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2474,7 +2605,7 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
| ------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🌙 '` | A format string representing the symbol of Lua. |
+| `기호` | `'🌙 '` | A format string representing the symbol of Lua. |
| `detect_extensions` | `['lua']` | Which extensions should trigger this module. |
| `detect_files` | `['.lua-version']` | Which filenames should trigger this module. |
| `detect_folders` | `['lua']` | Which folders should trigger this module. |
@@ -2484,15 +2615,15 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v5.4.0` | The version of `lua` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2519,24 +2650,24 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| ----------- | ----------------------------------------------- | -------------------------------------------------------- |
| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. |
| `format` | `'via $symbol [${ram}( \| ${swap})]($style) '` | The format for the module. |
-| `symbol` | `'🐏'` | The symbol used before displaying the memory usage. |
+| `기호` | `'🐏'` | The symbol used before displaying the memory usage. |
| `style` | `'bold dimmed white'` | The style for the module. |
| `disabled` | `true` | Disables the `memory_usage` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| ---------------- | ------------- | ------------------------------------------------------------------ |
| ram | `31GiB/65GiB` | The usage/total RAM of the current system memory. |
| 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` |
+| 기호 | `🐏` | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string *\*: The SWAP file information is only displayed if detected on the current system
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2561,21 +2692,21 @@ By default the Meson project name is displayed, if `$MESON_DEVENV` is set.
| `truncation_length` | `2^32 - 1` | Truncates a project name to `N` graphemes. |
| `truncation_symbol` | `'…'` | The symbol used to indicate a project name was truncated. You can use `''` for no symbol. |
| `format` | `'via [$symbol$project]($style) '` | The format for the module. |
-| `symbol` | `'⬢ '` | The symbol used before displaying the project name. |
+| `기호` | `'⬢ '` | The symbol used before displaying the project name. |
| `style` | `'blue bold'` | The style for the module. |
| `disabled` | `false` | Disables the `meson` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------- | ------------------------------------ |
| project | `starship` | The current Meson project name |
-| symbol | `🐏` | Mirrors the value of option `symbol` |
+| 기호 | `🐏` | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2595,7 +2726,7 @@ The `hg_branch` module shows the active branch and topic of the repo in your cur
| Option | Default | Description |
| ------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------- |
-| `symbol` | `' '` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
+| `기호` | `' '` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
| `style` | `'bold purple'` | The style for the module. |
| `format` | `'on [$symbol$branch(:$topic)]($style) '` | The format for the module. |
| `truncation_length` | `2^63 - 1` | Truncates the hg branch / topic name to `N` graphemes |
@@ -2604,16 +2735,16 @@ The `hg_branch` module shows the active branch and topic of the repo in your cur
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | --------- | ------------------------------------ |
| branch | `master` | The active mercurial branch |
| topic | `feature` | The active mercurial topic |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2639,7 +2770,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'👑 '` | The symbol used before displaying the version of Nim. |
+| `기호` | `'👑 '` | The symbol used before displaying the version of Nim. |
| `detect_extensions` | `['nim', 'nims', 'nimble']` | Which extensions should trigger this module. |
| `detect_files` | `['nim.cfg']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -2648,15 +2779,15 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v1.2.0` | The version of `nimc` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2675,7 +2806,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| Option | Default | Description |
| ------------- | ---------------------------------------------- | --------------------------------------------------------------------- |
| `format` | `'via [$symbol$state( \($name\))]($style) '` | The format for the module. |
-| `symbol` | `'❄️ '` | A format string representing the symbol of nix-shell. |
+| `기호` | `'❄️ '` | A format string representing the symbol of nix-shell. |
| `style` | `'bold blue'` | The style for the module. |
| `impure_msg` | `'impure'` | A format string shown when the shell is impure. |
| `pure_msg` | `'pure'` | A format string shown when the shell is pure. |
@@ -2685,16 +2816,16 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ------- | ------------------------------------ |
| state | `pure` | The state of the nix-shell |
| name | `lorri` | The name of the nix-shell |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2724,26 +2855,26 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `' '` | A format string representing the symbol of Node.js. |
+| `기호` | `' '` | A format string representing the symbol of Node.js. |
| `detect_extensions` | `['js', 'mjs', 'cjs', 'ts', 'mts', 'cts']` | Which extensions should trigger this module. |
| `detect_files` | `['package.json', '.node-version']` | Which filenames should trigger this module. |
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | The style for the module. |
| `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. |
+| `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
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| version | `v13.12.0` | The version of `node` |
| engines_version | `>=12.0.0` | `node` version requirement as set in the engines property of `package.json`. Will only show if the version requirement does not match the `node` version. |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2769,7 +2900,7 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
| ------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🐫 '` | The symbol used before displaying the version of OCaml. |
+| `기호` | `'🐫 '` | The symbol used before displaying the version of OCaml. |
| `global_switch_indicator` | `''` | The format string used to represent global OPAM switch. |
| `local_switch_indicator` | `'*'` | The format string used to represent local OPAM switch. |
| `detect_extensions` | `['opam', 'ml', 'mli', 're', 'rei']` | Which extensions should trigger this module. |
@@ -2780,17 +2911,17 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| ---------------- | ------------ | ----------------------------------------------------------------- |
| 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` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2809,7 +2940,7 @@ The `opa` module shows the currently installed version of the OPA tool. By defau
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🪖 '` | A format string representing the symbol of OPA. |
+| `기호` | `'🪖 '` | A format string representing the symbol of OPA. |
| `detect_extensions` | `['rego']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -2818,15 +2949,15 @@ The `opa` module shows the currently installed version of the OPA tool. By defau
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | --------- | ------------------------------------ |
| version | `v0.44.0` | The version of `opa` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2844,22 +2975,22 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| Option | Default | Description |
| ---------- | ----------------------------------------------- | -------------------------------------------------------------- |
| `format` | `'on [$symbol$cloud(\($project\))]($style) '` | The format for the module. |
-| `symbol` | `'☁️ '` | The symbol used before displaying the current OpenStack cloud. |
+| `기호` | `'☁️ '` | The symbol used before displaying the current OpenStack cloud. |
| `style` | `'bold yellow'` | The style for the module. |
| `disabled` | `false` | Disables the `openstack` module. |
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| 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` |
+| Variable | 예시 | Description |
+| --------- | ------ | ------------------------------------ |
+| cloud | `corp` | The current OpenStack cloud |
+| project | `dev` | The current OpenStack project |
+| 기호 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | The style for the module. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | The style for the module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -2945,11 +3076,11 @@ Windows = "🪟 "
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ------------ | ------------------------------------------------------------------ |
-| symbol | `🎗️` | The current operating system symbol from advanced option `symbols` |
+| 기호 | `🎗️` | The current operating system symbol from advanced option `symbols` |
| name | `Arch Linux` | The current operating system name |
-| type | `Arch` | The current operating system type |
+| 종류 | `Arch` | The current operating system type |
| codename | | The current operating system codename, if applicable |
| edition | | The current operating system edition, if applicable |
| version | | The current operating system version, if applicable |
@@ -2957,7 +3088,7 @@ Windows = "🪟 "
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3001,7 +3132,7 @@ The `package` module is shown when the current directory is the repository for a
| Option | Default | Description |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'is [$symbol$version]($style) '` | The format for the module. |
-| `symbol` | `'📦 '` | The symbol used before displaying the version the package. |
+| `기호` | `'📦 '` | 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. |
@@ -3009,15 +3140,15 @@ The `package` module is shown when the current directory is the repository for a
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v1.0.0` | The version of your package |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3042,7 +3173,7 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
| ------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🐪 '` | The symbol used before displaying the version of Perl |
+| `기호` | `'🐪 '` | The symbol used before displaying the version of Perl |
| `detect_extensions` | `['pl', 'pm', 'pod']` | Which extensions should trigger this module. |
| `detect_files` | `['Makefile.PL', 'Build.PL', 'cpanfile', 'cpanfile.snapshot', 'META.json', 'META.yml', '.perl-version']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3051,13 +3182,13 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | --------- | ------------------------------------ |
| version | `v5.26.1` | The version of `perl` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3080,7 +3211,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🐘 '` | The symbol used before displaying the version of PHP. |
+| `기호` | `'🐘 '` | The symbol used before displaying the version of PHP. |
| `detect_extensions` | `['php']` | Which extensions should trigger this module. |
| `detect_files` | `['composer.json', '.php-version']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3089,15 +3220,15 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v7.3.8` | The version of `php` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3114,7 +3245,7 @@ The `pijul_channel` module shows the active channel of the repo in your current
| Option | Default | Description |
| ------------------- | --------------------------------- | ------------------------------------------------------------------------------------ |
-| `symbol` | `' '` | The symbol used before the pijul channel name of the repo in your current directory. |
+| `기호` | `' '` | The symbol used before the pijul channel name of the repo in your current directory. |
| `style` | `'bold purple'` | The style for the module. |
| `format` | `'on [$symbol$channel]($style) '` | The format for the module. |
| `truncation_length` | `2^63 - 1` | Truncates the pijul channel name to `N` graphemes |
@@ -3127,7 +3258,7 @@ The `pulumi` module shows the current username, selected [Pulumi Stack](https://
::: tip
-By default the Pulumi version is not shown, since it takes an order of magnitude longer to load then most plugins (~70ms). If you still want to enable it, [follow the example shown below](#with-pulumi-version).
+By default the Pulumi version is not shown, since it takes an order of magnitude longer to load then most plugins (~70ms). 그래도 활성화하려면, [아래에 있는 예시를 따라 하세요](#with-pulumi-version).
:::
@@ -3142,24 +3273,24 @@ By default the module will be shown if any of the following conditions are met:
| ---------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($username@)$stack]($style) '` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `' '` | A format string shown before the Pulumi stack. |
+| `기호` | `' '` | A format string shown before the Pulumi stack. |
| `style` | `'bold 5'` | The style for the module. |
| `search_upwards` | `true` | Enable discovery of pulumi config files in parent directories. |
| `disabled` | `false` | Disables the `pulumi` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------- | ------------------------------------ |
| version | `v0.12.24` | The version of `pulumi` |
| stack | `dev` | The current Pulumi stack |
| username | `alice` | The current Pulumi username |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
#### With Pulumi Version
@@ -3192,7 +3323,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'<=> '` | The symbol used before displaying the version of PureScript. |
+| `기호` | `'<=> '` | The symbol used before displaying the version of PureScript. |
| `detect_extensions` | `['purs']` | Which extensions should trigger this module. |
| `detect_files` | `['spago.dhall']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3201,15 +3332,15 @@ The `purescript` module shows the currently installed version of [PureScript](ht
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `0.13.5` | The version of `purescript` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3242,10 +3373,10 @@ By default the module will be shown if any of the following conditions are met:
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
+| `기호` | `'🐍 '` | A format string representing the symbol of Python |
| `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 |
+| `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 |
@@ -3262,15 +3393,15 @@ The default values and order for `python_binary` was chosen to first identify th
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| ------------ | --------------- | ------------------------------------------ |
| version | `'v3.8.1'` | The version of `python` |
-| symbol | `'🐍 '` | Mirrors the value of option `symbol` |
+| 기호 | `'🐍 '` | Mirrors the value of option `symbol` |
| style | `'yellow bold'` | Mirrors the value of option `style` |
| pyenv_prefix | `'pyenv '` | Mirrors the value of option `pyenv_prefix` |
| virtualenv | `'venv'` | The current `virtualenv` name |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3325,7 +3456,7 @@ The `rlang` module shows the currently installed version of [R](https://www.r-pr
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'📐'` | A format string representing the symbol of R. |
+| `기호` | `'📐'` | A format string representing the symbol of R. |
| `style` | `'blue bold'` | The style for the module. |
| `detect_extensions` | `['R', 'Rd', 'Rmd', 'Rproj', 'Rsx']` | Which extensions should trigger this module |
| `detect_files` | `['.Rprofile']` | Which filenames should trigger this module |
@@ -3334,13 +3465,13 @@ The `rlang` module shows the currently installed version of [R](https://www.r-pr
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| -------- | ------------- | ------------------------------------ |
| version | `v4.0.5` | The version of `R` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style | `'blue bold'` | Mirrors the value of option `style` |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3362,7 +3493,7 @@ The `raku` module shows the currently installed version of [Raku](https://www.ra
| ------------------- | ------------------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version-$vm_version )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🦋 '` | The symbol used before displaying the version of Raku |
+| `기호` | `'🦋 '` | The symbol used before displaying the version of Raku |
| `detect_extensions` | `['p6', 'pm6', 'pod6', 'raku', 'rakumod']` | Which extensions should trigger this module. |
| `detect_files` | `['META6.json']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3371,14 +3502,14 @@ The `raku` module shows the currently installed version of [Raku](https://www.ra
### Variables
-| Variable | Example | Description |
-| ---------- | ------- | ------------------------------------ |
-| version | `v6.d` | The version of `raku` |
-| vm_version | `moar` | The version of VM `raku` is built on |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | 예시 | Description |
+| ---------- | ------ | ------------------------------------ |
+| version | `v6.d` | The version of `raku` |
+| vm_version | `moar` | The version of VM `raku` is built on |
+| 기호 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3399,7 +3530,7 @@ By default the `red` module shows the currently installed version of [Red](https
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🔺 '` | A format string representing the symbol of Red. |
+| `기호` | `'🔺 '` | A format string representing the symbol of Red. |
| `detect_extensions` | `['red']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3408,15 +3539,15 @@ By default the `red` module shows the currently installed version of [Red](https
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v2.5.1` | The version of `red` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3442,7 +3573,7 @@ Starship gets the current Ruby version by running `ruby -v`.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'💎 '` | A format string representing the symbol of Ruby. |
+| `기호` | `'💎 '` | A format string representing the symbol of Ruby. |
| `detect_extensions` | `['rb']` | Which extensions should trigger this module. |
| `detect_files` | `['Gemfile', '.ruby-version']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3452,15 +3583,15 @@ Starship gets the current Ruby version by running `ruby -v`.
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v2.5.1` | The version of `ruby` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3482,7 +3613,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🦀 '` | A format string representing the symbol of Rust |
+| `기호` | `'🦀 '` | A format string representing the symbol of Rust |
| `detect_extensions` | `['rs']` | Which extensions should trigger this module. |
| `detect_files` | `['Cargo.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3491,17 +3622,17 @@ By default the `rust` module shows the currently installed version of [Rust](htt
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ----------------- | -------------------------------------------- |
| version | `v1.43.0-nightly` | The version of `rustc` |
| numver | `1.51.0` | The numeric component of the `rustc` version |
| toolchain | `beta` | The toolchain version |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3527,21 +3658,21 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| `detect_extensions` | `['sbt', 'scala']` | Which extensions should trigger this module. |
| `detect_files` | `['.scalaenv', '.sbtenv', 'build.sbt']` | Which filenames should trigger this module. |
| `detect_folders` | `['.metals']` | Which folders should trigger this modules. |
-| `symbol` | `'🆂 '` | A format string representing the symbol of Scala. |
+| `기호` | `'🆂 '` | A format string representing the symbol of Scala. |
| `style` | `'red dimmed'` | The style for the module. |
| `disabled` | `false` | Disables the `scala` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `2.13.5` | The version of `scala` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | The style for the module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | Default | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | The style for the module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3588,7 +3720,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
*: This variable can only be used as a part of a style string
-### Examples
+### 예시
```toml
# ~/.config/starship.toml
@@ -3611,7 +3743,7 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int
| --------------- | ---------------------------- | ------------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. |
-| `symbol` | `'↕️ '` | The symbol used to represent the `SHLVL`. |
+| `기호` | `'↕️ '` | The symbol used to represent the `SHLVL`. |
| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
| `repeat_offset` | `0` | Decrements number of times `symbol` is repeated by the offset value |
| `style` | `'bold yellow'` | The style for the module. |
@@ -3619,15 +3751,15 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| shlvl | `3` | The current value of `SHLVL` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | 예시 | Description |
+| --------- | --- | ------------------------------------ |
+| shlvl | `3` | The current value of `SHLVL` |
+| 기호 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3661,21 +3793,21 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
| Option | Default | Description |
| ---------- | -------------------------------- | ------------------------------------------------ |
| `format` | `'[$symbol\[$env\]]($style) '` | The format for the module. |
-| `symbol` | `''` | A format string displayed before the image name. |
+| `기호` | `''` | A format string displayed before the image name. |
| `style` | `'bold dimmed blue'` | The style for the module. |
| `disabled` | `false` | Disables the `singularity` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ------------ | ------------------------------------ |
| env | `centos.img` | The current Singularity image |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3694,27 +3826,27 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `기호` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | The style for the module. |
+| `style` | `'bold blue'` | The style for the module. |
| `disabled` | `false` | Disables this module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v0.8.1` | The version of `solidity` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3731,22 +3863,22 @@ The `spack` module shows the current [Spack](https://spack.readthedocs.io/en/lat
| Option | Default | Description |
| ------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `truncation_length` | `1` | The number of directories the environment path should be truncated to. `0` means no truncation. Also see the [`directory`](#directory) module. |
-| `symbol` | `'🅢 '` | The symbol used before the environment name. |
+| `기호` | `'🅢 '` | The symbol used before the environment name. |
| `style` | `'bold blue'` | The style for the module. |
| `format` | `'via [$symbol$environment]($style) '` | The format for the module. |
| `disabled` | `false` | Disables the `spack` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| ----------- | ------------ | ------------------------------------ |
| environment | `astronauts` | The current spack environment |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3770,7 +3902,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `format` | `'[$symbol$status]($style) '` | The format of the module |
-| `symbol` | `'❌'` | The symbol displayed on program error |
+| `기호` | `'❌'` | 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 |
@@ -3787,7 +3919,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
| status | `127` | The exit code of the last command |
| hex_status | `0x7F` | The exit code of the last command in hex |
@@ -3797,12 +3929,12 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| 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' exit codes, this is only available in pipestatus_format |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3831,21 +3963,21 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| --------------- | ------------------------ | ------------------------------------------------------- |
| `format` | `'[as $symbol]($style)'` | The format of the module |
-| `symbol` | `'🧙 '` | The symbol displayed when credentials are cached |
+| `기호` | `'🧙 '` | The symbol displayed when credentials are cached |
| `style` | `'bold blue'` | The style for the module. |
| `allow_windows` | `false` | Since windows has no default sudo, default is disabled. |
| `disabled` | `true` | Disables the `sudo` module. |
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | 예시 | Description |
+| --------- | -- | ------------------------------------ |
+| 기호 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3878,7 +4010,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'🐦 '` | A format string representing the symbol of Swift |
+| `기호` | `'🐦 '` | A format string representing the symbol of Swift |
| `detect_extensions` | `['swift']` | Which extensions should trigger this module. |
| `detect_files` | `['Package.swift']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -3887,15 +4019,15 @@ By default the `swift` module shows the currently installed version of [Swift](h
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v5.2.4` | The version of `swift` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -3910,7 +4042,7 @@ The `terraform` module shows the currently selected [Terraform workspace](https:
::: tip
-By default the Terraform version is not shown, since this is slow for current versions of Terraform when a lot of plugins are in use. If you still want to enable it, [follow the example shown below](#with-terraform-version).
+By default the Terraform version is not shown, since this is slow for current versions of Terraform when a lot of plugins are in use. 그래도 활성화하려면, [아래에 있는 예시를 따라 하세요](#with-terraform-version).
:::
@@ -3925,7 +4057,7 @@ By default the module will be shown if any of the following conditions are met:
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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` |
-| `symbol` | `'💠'` | A format string shown before the terraform workspace. |
+| `기호` | `'💠'` | A format string shown before the terraform workspace. |
| `detect_extensions` | `['tf', 'tfplan', 'tfstate']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `['.terraform']` | Which folders should trigger this module. |
@@ -3934,16 +4066,16 @@ By default the module will be shown if any of the following conditions are met:
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------- | ------------------------------------ |
| version | `v0.12.24` | The version of `terraform` |
| workspace | `default` | The current Terraform workspace |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
#### With Terraform Version
@@ -3989,14 +4121,14 @@ If `use_12hr` is `true`, then `time_format` defaults to `'%r'`. Otherwise, it de
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------- | ----------------------------------- |
| time | `13:08:10` | The current time. |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `기호` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | The style for the module. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | 예시 | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 기호 | | 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
@@ -4036,12 +4201,12 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| -------- | ------------ | ------------------------------------------------------------------------------------------- |
| `style` | `'red bold'` | Mirrors the value of option `style_root` when root is logged in and `style_user` otherwise. |
| `user` | `'matchai'` | The currently logged-in user ID. |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -4066,7 +4231,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'⍱ '` | A format string representing the symbol of Vagrant. |
+| `기호` | `'⍱ '` | A format string representing the symbol of Vagrant. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['Vagrantfile']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -4075,15 +4240,15 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ---------------- | ------------------------------------ |
| version | `Vagrant 2.2.10` | The version of `Vagrant` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -4105,7 +4270,7 @@ The `vlang` module shows you your currently installed version of [V](https://vla
| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'V '` | A format string representing the symbol of V |
+| `기호` | `'V '` | A format string representing the symbol of V |
| `detect_extensions` | `['v']` | Which extensions should trigger this module. |
| `detect_files` | `['v.mod', 'vpkg.json', '.vpkg-lock.json' ]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
@@ -4114,13 +4279,13 @@ The `vlang` module shows you your currently installed version of [V](https://vla
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| version | `v0.2` | The version of `v` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | 예시 | Description |
+| --------- | ------ | ------------------------------------ |
+| version | `v0.2` | The version of `v` |
+| 기호 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -4136,22 +4301,22 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| Option | Default | Description |
| ---------- | -------------------------------- | ------------------------------------------------------ |
-| `symbol` | `''` | The symbol used before displaying the repository name. |
+| `기호` | `''` | The symbol used before displaying the repository name. |
| `style` | `'bold yellow'` | The style for the module. |
| `format` | `'vcsh [$symbol$repo]($style) '` | The format for the module. |
| `disabled` | `false` | Disables the `vcsh` module. |
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | ------------------------------------------- | ------------------------------------ |
| repo | `dotfiles` if in a VCSH repo named dotfiles | The active repository name |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | `black bold dimmed` | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -4172,7 +4337,7 @@ By default the `zig` module shows the currently installed version of [Zig](https
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'↯ '` | The symbol used before displaying the version of Zig. |
+| `기호` | `'↯ '` | The symbol used before displaying the version of Zig. |
| `style` | `'bold yellow'` | The style for the module. |
| `disabled` | `false` | Disables the `zig` module. |
| `detect_extensions` | `['zig']` | Which extensions should trigger this module. |
@@ -4181,15 +4346,15 @@ By default the `zig` module shows the currently installed version of [Zig](https
### Variables
-| Variable | Example | Description |
+| Variable | 예시 | Description |
| --------- | -------- | ------------------------------------ |
| version | `v0.6.0` | The version of `zig` |
-| symbol | | Mirrors the value of option `symbol` |
+| 기호 | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string
-### Example
+### 예시
```toml
# ~/.config/starship.toml
@@ -4248,7 +4413,7 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
| `detect_files` | `[]` | The files that will be searched in the working directory for a match. |
| `detect_folders` | `[]` | The directories that will be searched in the working directory for a match. |
| `detect_extensions` | `[]` | The extensions that will be searched in the working directory for a match. |
-| `symbol` | `''` | The symbol used before displaying the command output. |
+| `기호` | `''` | The symbol used before displaying the command output. |
| `style` | `'bold green'` | The style for the module. |
| `format` | `'[$symbol($output )]($style)'` | The format for the module. |
| `disabled` | `false` | Disables this `custom` module. |
@@ -4261,7 +4426,7 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
| Variable | Description |
| --------- | -------------------------------------- |
| output | The output of shell command in `shell` |
-| symbol | Mirrors the value of option `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
@@ -4295,7 +4460,7 @@ Automatic detection of shells and proper parameters addition are currently imple
:::
-### Example
+### 예시
```toml
# ~/.config/starship.toml
diff --git a/docs/ko-KR/faq/README.md b/docs/ko-KR/faq/README.md
index 41bb2d39..1cd79ec3 100644
--- a/docs/ko-KR/faq/README.md
+++ b/docs/ko-KR/faq/README.md
@@ -1,14 +1,14 @@
-# Frequently Asked Questions
+# 자주 묻는 질문
-## What is the configuration used in the demo GIF?
+## 데모 GIF에는 어떤 구성을 사용했나요?
-- **Terminal Emulator**: [iTerm2](https://iterm2.com/)
- - **Theme**: Minimal
- - **Color Scheme**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
- - **Font**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
-- **Shell**: [Fish Shell](https://fishshell.com/)
- - **Configuration**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- - **Prompt**: [Starship](https://starship.rs/)
+- **터미널 에뮬레이터**: [iTerm2](https://iterm2.com/)
+ - **테마**: Minimal
+ - **배색**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
+ - **폰트**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
+- **셸**: [Fish Shell](https://fishshell.com/)
+ - **구성**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
+ - **프롬프트**: [Starship](https://starship.rs/)
## How do I get command completion as shown in the demo GIF?
@@ -40,7 +40,7 @@ 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.
-For a list of all flags accepted by `starship prompt`, use the following command:
+`starship 프롬프트`에서 지원하는 모든 플래그 값을 보려면 아래 명령어를 사용하세요:
```sh
starship prompt --help
@@ -48,19 +48,19 @@ starship prompt --help
The prompt will use as much context as is provided, but no flags are "required".
-## How do I run Starship on Linux distributions with older versions of glibc?
+## 오래된 버전의 glibc가 있는 Linux 배포판에서 Starship을 어떻게 실행하나요?
-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`:
+미리 빌드된 바이너리를 실행할 때 (예를 들어 CentOS 6 혹은 7에서) "_version 'GLIBC_2.18' not found (required by starship)_" 같은 오류가 보인다면, `glibc` 대신 `musl`로 컴파일된 바이너리 파일을 사용하세요.
```sh
curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
```
-## Why do I see `Executing command "..." timed out.` warnings?
+## 왜 `Executing command "..." timed out.` 경고가 뜨나요?
Starship executes different commands to get information to display in the prompt, for example the version of a program or the current git status. To make sure starship doesn't hang while trying to execute these commands we set a time limit, if a command takes longer than this limit starship will stop the execution of the command and output the above warning, this is expected behaviour. This time limit is configurable using the [`command_timeout`key](/config/#prompt) so if you want you can increase the time limit. You can also follow the debugging steps below to see which command is being slow and see if you can optimise it. Finally you can set the `STARSHIP_LOG` env var to `error` to hide these warnings.
-## I see symbols I don't understand or expect, what do they mean?
+## 이해할 수 없거나 예상치 못한 기호가 보이는데 무슨 뜻인가요?
If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
@@ -105,18 +105,18 @@ 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.
+Starship은 처음 설치하는 것만큼이나 쉽게 제거할 수 있습니다.
-1. Remove any lines in your shell config (e.g. `~/.bashrc`) used to initialize Starship.
-1. Delete the Starship binary.
+1. 셸 설정 파일 (예시: `~/.bashrc`) 에서 Starship 초기화에 사용되는 모든 줄을 제거하세요.
+1. Starship 바이너리 파일을 제거하세요.
-If Starship was installed using a package manager, please refer to their docs for uninstallation instructions.
+Starship을 패키지 매니저로 설치하였다면 해당 패키지 매니저의 제거 지침 문서를 참조해 주세요.
-If Starship was installed using the install script, the following command will delete the binary:
+Starship을 설치 스크립트로 설치하였다면 바이너리 파일 제거를 위해 아래 명령어를 실행하세요:
```sh
-# Locate and delete the starship binary
+# starship 바이너리 파일을 찾고 제거합니다.
sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/ko-KR/guide/README.md b/docs/ko-KR/guide/README.md
index 4fa27edd..374f9117 100644
--- a/docs/ko-KR/guide/README.md
+++ b/docs/ko-KR/guide/README.md
@@ -2,7 +2,7 @@
@@ -30,7 +30,12 @@
+
@@ -147,25 +152,23 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
-**간결하고 화끈하게 빠르며 무제한으로 커스터마이징이 가능한 프롬프트. 어떤 쉘에서든 사용할 수 있습니다!**
+**아무 셸에나 적용할 수 있는 간결하고, 매우 빠르며, 무한히 커스텀 가능한 프롬프트입니다!**
-- ** Fast:** 빨라요 – _엄청 엄청_ 빠릅니다! 🚀
-- ** Customizable:** 프롬프트의 모든 측면을 커스텀 가능합니다.
-- **Universal:** 어떤 쉘 위에서도, 어떤 운영체제 위에서도 동작합니다.
-- **Intelligent:** 관련 정보를 한눈에 보여줍니다.
-- **Feature rich:** 원하는 모든 도구를 지원합니다.
-- **Easy:** 빠른 설치 - 몇 분 안에 사용할 수 있습니다.
+- ** 빠름:** 빠릅니다. – _정말_ 빠릅니다. 🚀
+- ** 커스텀 가능:** 프롬프트의 모든 부분을 커스텀 할 수 있습니다.
+- **범용적:** 어떤 셸 위에서도, 어떤 운영체제 위에서도 동작합니다.
+- **지능적:** 관련 정보를 한눈에 보여줍니다.
+- **다기능:** 원하는 모든 도구를 지원합니다.
+- **쉬움:** 빠른 설치 - 몇 분만 투자하면 바로 사용할 수 있습니다.
Starship 문서 보기 ▶
@@ -188,7 +191,7 @@
다음 패키지 관리자 중 하나를 사용해 Starship 을 설치하세요:
-| Repository | Instructions |
+| 리포지토리 | 설명 |
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` |
@@ -199,11 +202,11 @@
다음 패키지 관리자 중 하나를 사용해 Starship 을 설치하세요:
-| Distribution | Repository | Instructions |
-| ------------ | -------------------------------------------------------- | --------------------------------- |
-| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
-| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
-| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
+| 배포판 | 리포지토리 | 설명 |
+| -------- | -------------------------------------------------------- | --------------------------------- |
+| **_전체_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
+| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
+| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
@@ -218,18 +221,19 @@ curl -sS https://starship.rs/install.sh | sh
다음의 패키지 관리자를 사용해서 Starship을 설치할 수도 있습니다.
-| Distribution | Repository | Instructions |
-| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
-| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
-| _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
-| _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
-| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
-| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
-| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` `dnf install starship` |
-| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
-| Manjaro | | `pacman -S starship` |
-| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
-| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
+| 배포판 | 리포지토리 | 설명 |
+| ------------------ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
+| **_전체_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
+| _전체_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
+| _전체_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
+| Alpine Linux 3.13+ | [Alpine Linux 패키지](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
+| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
+| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` `dnf install starship` |
+| Gentoo | [Gentoo 패키지](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
+| Manjaro | | `pacman -S starship` |
+| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
+| openSUSE | [OSS](https://software.opensuse.org/package/starship) | `zypper in starship` |
+| Void Linux | [Void Linux 패키지](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
@@ -244,7 +248,7 @@ curl -sS https://starship.rs/install.sh | sh
다음의 패키지 관리자를 사용해서 Starship을 설치할 수도 있습니다.
-| Repository | Instructions |
+| 리포지토리 | 설명 |
| -------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
@@ -256,11 +260,11 @@ curl -sS https://starship.rs/install.sh | sh
Windows
-Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
+[releases 섹션](https://github.com/starship/starship/releases/latest)에서 MSI 인스톨러를 받아 실행하여 시스템에 맞는 최신 버전을 설치하세요.
다음 패키지 관리자 중 하나를 사용해 Starship 을 설치하세요:
-| Repository | Instructions |
+| 리포지토리 | 설명 |
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` |
@@ -270,9 +274,9 @@ Install the latest version for your system with the MSI-installers from the [rel
-### 2단계. Set up your shell to use Starship
+### 2단계. 셸에 Starship 적용하기
-쉘에 Starship 초기 설정을 합니다. 아래의 리스트 중에 해당하는 것을 고르세요:
+Starship 적용을 위해 셸을 구성해야 합니다. 아래의 리스트 중에 해당하는 것을 고르세요:
Bash
@@ -288,7 +292,7 @@ eval "$(starship init bash)"
Cmd
-Cmd를 이용하려면 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 를 사용해야 합니다. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
+Cmd를 이용하려면 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) 를 사용해야 합니다. `%LocalAppData%\clink\starship.lua` 경로에 파일을 만들고 아래 내용으로 채우세요:
```lua
load(io.popen('starship init cmd'):read("*a"))()
@@ -305,7 +309,7 @@ load(io.popen('starship init cmd'):read("*a"))()
eval (starship init elvish)
```
-Note: Only Elvish v0.18+ is supported
+알림: Elvish v0.18 버전 이상에서만 지원됩니다.
@@ -334,20 +338,20 @@ eval $(starship init ion)
Nushell
-Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
+다음 내용을 Nushell env 파일 (찾으려면 Nushell에서 `$nu.env-path` 실행) 마지막 부분에 추가하세요:
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
-And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
+다음 내용을 Nushell 설정 파일 (찾으려면 Nushell에서 `$nu.config-path` 실행) 마지막 부분에 추가하세요:
```sh
use ~/.cache/starship/init.nu
```
-Note: Only Nushell v0.78+ is supported
+알림: Nushell v0.78 버전 이상에서만 지원됩니다.
@@ -409,25 +413,25 @@ Starship을 추가로 커스터마이징 하고싶다면:
우리는 언제나 **기술 수준에 관계없이** 기여자를 찾고 있습니다! 프로젝트에 참여하고자 한다면, [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue) 를 보내보세요.
-If you are fluent in a non-English language, we greatly appreciate any help keeping our docs translated and up-to-date in other languages. 번역에 도움을 주고자 한다면, [Starship Crowdin](https://translate.starship.rs/) 에서 기여할 수 있습니다.
+영어 이외의 언어에 유창하시다면, 저희 문서를 다른 언어로 최신화하는 데 도움을 주시면 대단히 감사하겠습니다. 번역에 도움을 주고자 한다면, [Starship Crowdin](https://translate.starship.rs/) 에서 기여할 수 있습니다.
-Starship 에 기여하는데 관심이 있다면, [Contributing Guide](https://github.com/starship/starship/blob/master/CONTRIBUTING.md) 를 한 번 살펴봐 주세요 그리고 부담갖지 말고 [Discord 서버](https://discord.gg/8Jzqu3T) 에 들러 인사 한 마디 남겨보세요 👋
+Starship에 기여하는데 관심이 있으시다면, [기여 가이드](https://github.com/starship/starship/blob/master/CONTRIBUTING.md)를 읽어주세요. 그리고 부담갖지 말고 [Discord 서버](https://discord.gg/8Jzqu3T) 에 들러 인사 한 마디 남겨보세요 👋
-## 💭 Inspired By
+## 💭 영감받은 곳
Starship 을 만드는 데에 영감이 되었던 이전 작업들도 살펴보세요. 🙏
-- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – A ZSH prompt for astronauts.
+- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – 우주 비행사를 위한 ZSH 프롬프트.
-- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript.
+- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – JavaScript로 작성된 크로스-쉘 robbyrussell 테마.
-- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
+- **[reujab/silver](https://github.com/reujab/silver)** – 아이콘이 있는 커스텀 가능한 powerline 계열 크로스-쉘 프롬프트.
-## ❤️ Sponsors
+## ❤️ 스폰서
-Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+이 [프로젝트를 후원](https://github.com/sponsors/starship)하여 프로젝트를 지원해 주세요. 여러분의 웹사이트로 이동하는 링크가 걸린 이름 혹은 로고가 여기에 걸립니다.
-**Supporter Tier**
+**후원자 티어**
- [Appwrite](https://appwrite.io/)
@@ -438,4 +442,4 @@ Support this project by [becoming a sponsor](https://github.com/sponsors/starshi
## 📝라이선스
-Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors). This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) licensed.
+Copyright © 2019-현재, [Starship 기여자](https://github.com/starship/starship/graphs/contributors). 이 프로젝트는 [ISC](https://github.com/starship/starship/blob/master/LICENSE) 라이선스입니다.
diff --git a/docs/ko-KR/installing/README.md b/docs/ko-KR/installing/README.md
index bf2e01ba..e25fffbd 100644
--- a/docs/ko-KR/installing/README.md
+++ b/docs/ko-KR/installing/README.md
@@ -63,7 +63,7 @@ Enable the `programs.starship` module in your `home.nix` file, and add your sett
{
programs.starship = {
enable = true;
- # Configuration written to ~/.config/starship.toml
+ # ~/.config/starship.toml에 작성된 설정
settings = {
# add_newline = false;
diff --git a/docs/ko-KR/migrating-to-0.45.0/README.md b/docs/ko-KR/migrating-to-0.45.0/README.md
index 18661c3b..3886acc5 100644
--- a/docs/ko-KR/migrating-to-0.45.0/README.md
+++ b/docs/ko-KR/migrating-to-0.45.0/README.md
@@ -80,7 +80,7 @@ format = "took [$duration]($style) "
| Removed Property | Replacement |
| ----------------------- | ---------------- |
-| `symbol` | `success_symbol` |
+| `기호` | `success_symbol` |
| `use_symbol_for_status` | `error_symbol` |
| `style_success` | `success_symbol` |
| `style_failure` | `error_symbol` |
diff --git a/docs/ko-KR/presets/README.md b/docs/ko-KR/presets/README.md
index 3903bc17..7d41e37c 100644
--- a/docs/ko-KR/presets/README.md
+++ b/docs/ko-KR/presets/README.md
@@ -1,14 +1,14 @@
-# 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)해 주세요! 😊
-To get details on how to use a preset, simply click on the image.
+프리셋 사용 방법에 대한 자세한 내용을 보려면 이미지를 클릭하기만 하면 됩니다.
-## [Nerd Font Symbols](./nerd-font.md)
+## [Nerd Font 기호](./nerd-font.md)
-This preset changes the symbols for each module to use Nerd Font symbols.
+이 프리셋은 각 모듈의 기호가 Nerd Font 기호를 사용하도록 변경합니다.
-[![Screenshot of Nerd Font Symbols preset](/presets/img/nerd-font-symbols.png "Click to view Nerd Font Symbols preset")](./nerd-font)
+[![Nerd Font 기호 프리셋 스크린샷](/presets/img/nerd-font-symbols.png "Click to view Nerd Font Symbols preset")](./nerd-font)
## [No Nerd Fonts](./no-nerd-font.md)
@@ -16,11 +16,11 @@ This preset changes the symbols for several modules so that no Nerd Font symbols
::: tip
-This preset will become the default preset [in a future release of starship](https://github.com/starship/starship/pull/3544).
+이 프리셋은 [starship의 추후 배포](https://github.com/starship/starship/pull/3544)에서 기본 프리셋이 될 예정입니다.
:::
-[Click to view No Nerd Font preset](./no-nerd-font)
+[클릭하여 No Nerd Font 프리셋 보기](./no-nerd-font)
## [Bracketed Segments](./bracketed-segments.md)
@@ -40,17 +40,17 @@ This preset hides the version of language runtimes. If you work in containers or
[![Screenshot of Hide Runtime Versions preset](/presets/img/no-runtime-versions.png "Click to view No Runtime Versions preset")](./no-runtimes)
-## [No Empty Icons](./no-empty-icons.md)
+## [빈 아이콘 제거](./no-empty-icons.md)
-This preset does not show icons if the toolset is not found.
+이 프리셋은 툴셋을 찾을 수 없을 때 아이콘을 표시하지 않습니다.
[![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png "Click to view No Runtime Versions preset")](./no-empty-icons.md)
## [Pure Prompt](./pure-preset.md)
-This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure).
+이 프리셋은 [Pure](https://github.com/sindresorhus/pure)의 모습과 동작을 재현합니다.
-[![Screenshot of Pure preset](/presets/img/pure-preset.png "Click to view Pure Prompt preset")](./pure-preset)
+[![Pure 프리셋 스크린샷](/presets/img/pure-preset.png "Click to view Pure Prompt preset")](./pure-preset)
## [Pastel Powerline](./pastel-powerline.md)
@@ -60,6 +60,12 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
## [Tokyo Night](./tokyo-night.md)
-This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
+이 프리셋은 [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme)에서 영감을 받았습니다.
-[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+[![Tokyo Night 프리셋 스크린샷](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+이 프리셋은 [Pastel Powerline](./pastel-powerline.md) 및 [Tokyo Night](./tokyo-night.md)에서 강하게 영감을 받았습니다.
+
+[![Gruvbox Rainbow 프리셋 스크린샷](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/ko-KR/presets/bracketed-segments.md b/docs/ko-KR/presets/bracketed-segments.md
index 982afb20..8d6430df 100644
--- a/docs/ko-KR/presets/bracketed-segments.md
+++ b/docs/ko-KR/presets/bracketed-segments.md
@@ -1,4 +1,4 @@
-[Return to Presets](./README.md#bracketed-segments)
+[프리셋으로 돌아가기](./README.md#bracketed-segments)
# Bracketed Segments Preset
@@ -6,12 +6,12 @@ This preset changes the format of all the built-in modules to show their segment
![Screenshot of Bracketed Segments preset](/presets/img/bracketed-segments.png)
-### Configuration
+### 설정
```sh
starship preset bracketed-segments -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/bracketed-segments.toml)
+[클릭하여 TOML 다운로드](/presets/toml/bracketed-segments.toml)
<<< @/.vuepress/public/presets/toml/bracketed-segments.toml
diff --git a/docs/ko-KR/presets/gruvbox-rainbow.md b/docs/ko-KR/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..e7b246a1
--- /dev/null
+++ b/docs/ko-KR/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[프리셋으로 돌아가기](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow 프리셋
+
+이 프리셋은 [Pastel Powerline](./pastel-powerline.md) 및 [Tokyo Night](./tokyo-night.md)에서 강하게 영감을 받았습니다.
+
+![Gruvbox Rainbow 프리셋 스크린샷](/presets/img/gruvbox-rainbow.png)
+
+### 준비 사항
+
+- 터미널에 [Nerd Font](https://www.nerdfonts.com/) 설치 및 활성화
+
+### 설정
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[클릭하여 TOML 다운로드](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/ko-KR/presets/jetpack.md b/docs/ko-KR/presets/jetpack.md
new file mode 100644
index 00000000..ada3e095
--- /dev/null
+++ b/docs/ko-KR/presets/jetpack.md
@@ -0,0 +1,24 @@
+[프리셋으로 돌아가기](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### 설정
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[클릭하여 TOML 다운로드](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/ko-KR/presets/nerd-font.md b/docs/ko-KR/presets/nerd-font.md
index 6df40328..f4c6c6ea 100644
--- a/docs/ko-KR/presets/nerd-font.md
+++ b/docs/ko-KR/presets/nerd-font.md
@@ -1,21 +1,21 @@
-[Return to Presets](./README.md#nerd-font-symbols)
+[프리셋으로 돌아가기](./README.md#nerd-font-symbols)
-# Nerd Font Symbols Preset
+# Nerd Font 기호 프리셋
-This preset changes the symbols for each module to use Nerd Font symbols.
+이 프리셋은 각 모듈의 기호가 Nerd Font 기호를 사용하도록 변경합니다.
-![Screenshot of Nerd Font Symbols preset](/presets/img/nerd-font-symbols.png)
+![Nerd Font 기호 프리셋 스크린샷](/presets/img/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를 사용합니다.)
-### Configuration
+### 설정
```sh
starship preset nerd-font-symbols -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/nerd-font-symbols.toml)
+[클릭하여 TOML 다운로드](/presets/toml/nerd-font-symbols.toml)
<<< @/.vuepress/public/presets/toml/nerd-font-symbols.toml
diff --git a/docs/ko-KR/presets/no-empty-icons.md b/docs/ko-KR/presets/no-empty-icons.md
index aa4a211f..c3f42973 100644
--- a/docs/ko-KR/presets/no-empty-icons.md
+++ b/docs/ko-KR/presets/no-empty-icons.md
@@ -1,4 +1,4 @@
-[Return to Presets](./README.md#no-empty-icons)
+[프리셋으로 돌아가기](./README.md#no-empty-icons)
# No Empty Icons Preset
@@ -6,12 +6,12 @@ If toolset files are identified the toolset icon is displayed. If the toolset is
![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png)
-### Configuration
+### 설정
```sh
starship preset no-empty-icons -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/no-empty-icons.toml)
+[클릭하여 TOML 다운로드](/presets/toml/no-empty-icons.toml)
<<< @/.vuepress/public/presets/toml/no-empty-icons.toml
diff --git a/docs/ko-KR/presets/no-nerd-font.md b/docs/ko-KR/presets/no-nerd-font.md
index a70e85e7..6f73477e 100644
--- a/docs/ko-KR/presets/no-nerd-font.md
+++ b/docs/ko-KR/presets/no-nerd-font.md
@@ -1,4 +1,4 @@
-[Return to Presets](./README.md#no-nerd-fonts)
+[프리셋으로 돌아가기](./README.md#no-nerd-fonts)
# No Nerd Fonts Preset
@@ -8,12 +8,12 @@ This means that even without a Nerd Font installed, you should be able to view a
This preset will become the default preset in a future release of starship.
-### Configuration
+### 설정
```sh
starship preset no-nerd-font -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/no-nerd-font.toml)
+[클릭하여 TOML 다운로드](/presets/toml/no-nerd-font.toml)
<<< @/.vuepress/public/presets/toml/no-nerd-font.toml
diff --git a/docs/ko-KR/presets/no-runtimes.md b/docs/ko-KR/presets/no-runtimes.md
index c0805d11..767a45f0 100644
--- a/docs/ko-KR/presets/no-runtimes.md
+++ b/docs/ko-KR/presets/no-runtimes.md
@@ -1,4 +1,4 @@
-[Return to Presets](./README.md#no-runtime-versions)
+[프리셋으로 돌아가기](./README.md#no-runtime-versions)
# No Runtime Versions Preset
@@ -6,12 +6,12 @@ This preset hides the version of language runtimes. If you work in containers or
![Screenshot of Hide Runtime Versions preset](/presets/img/no-runtime-versions.png)
-### Configuration
+### 설정
```sh
starship preset no-runtime-versions -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/no-runtime-versions.toml)
+[클릭하여 TOML 다운로드](/presets/toml/no-runtime-versions.toml)
<<< @/.vuepress/public/presets/toml/no-runtime-versions.toml
diff --git a/docs/ko-KR/presets/pastel-powerline.md b/docs/ko-KR/presets/pastel-powerline.md
index 38f7438d..477afea2 100644
--- a/docs/ko-KR/presets/pastel-powerline.md
+++ b/docs/ko-KR/presets/pastel-powerline.md
@@ -1,4 +1,4 @@
-[Return to Presets](./README.md#pastel-powerline)
+[프리셋으로 돌아가기](./README.md#pastel-powerline)
# Pastel Powerline Preset
@@ -10,12 +10,12 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Caskaydia Cove Nerd Font)
-### Configuration
+### 설정
```sh
starship preset pastel-powerline -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/pastel-powerline.toml)
+[클릭하여 TOML 다운로드](/presets/toml/pastel-powerline.toml)
<<< @/.vuepress/public/presets/toml/pastel-powerline.toml
diff --git a/docs/ko-KR/presets/plain-text.md b/docs/ko-KR/presets/plain-text.md
index 1e17b4bc..e2d1087f 100644
--- a/docs/ko-KR/presets/plain-text.md
+++ b/docs/ko-KR/presets/plain-text.md
@@ -1,4 +1,4 @@
-[Return to Presets](./README.md#plain-text-symbols)
+[프리셋으로 돌아가기](./README.md#plain-text-symbols)
## Plain Text Symbols Preset
@@ -6,12 +6,12 @@ This preset changes the symbols for each module into plain text. Great if you do
![Screenshot of Plain Text Symbols preset](/presets/img/plain-text-symbols.png)
-### Configuration
+### 설정
```sh
starship preset plain-text-symbols -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/plain-text-symbols.toml)
+[클릭하여 TOML 다운로드](/presets/toml/plain-text-symbols.toml)
<<< @/.vuepress/public/presets/toml/plain-text-symbols.toml
diff --git a/docs/ko-KR/presets/pure-preset.md b/docs/ko-KR/presets/pure-preset.md
index b75a0056..fec4b572 100644
--- a/docs/ko-KR/presets/pure-preset.md
+++ b/docs/ko-KR/presets/pure-preset.md
@@ -1,17 +1,17 @@
-[Return to Presets](./README.md#pure)
+[프리셋으로 돌아가기](./README.md#pure)
-# Pure Preset
+# Pure 프리셋
-This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure).
+이 프리셋은 [Pure](https://github.com/sindresorhus/pure)의 모습과 동작을 재현합니다.
-![Screenshot of Pure preset](/presets/img/pure-preset.png)
+![Pure 프리셋 스크린샷](/presets/img/pure-preset.png)
-### Configuration
+### 설정
```sh
starship preset pure-preset -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/pure-preset.toml)
+[클릭하여 TOML 다운로드](/presets/toml/pure-preset.toml)
<<< @/.vuepress/public/presets/toml/pure-preset.toml
diff --git a/docs/ko-KR/presets/tokyo-night.md b/docs/ko-KR/presets/tokyo-night.md
index 38702598..fb3a3a3a 100644
--- a/docs/ko-KR/presets/tokyo-night.md
+++ b/docs/ko-KR/presets/tokyo-night.md
@@ -1,21 +1,21 @@
-[Return to Presets](./README.md#pastel-powerline)
+[프리셋으로 돌아가기](./README.md#pastel-powerline)
-# Tokyo Night Preset
+# Tokyo Night 프리셋
-This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
+이 프리셋은 [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme)에서 영감을 받았습니다.
-![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png)
+![Tokyo Night 프리셋 스크린샷](/presets/img/tokyo-night.png)
### 준비 사항
-- 터미널에 [Nerd Font](https://www.nerdfonts.com/)가 설치되어 있고 사용 가능해야 합니다
+- 터미널에 [Nerd Font](https://www.nerdfonts.com/) 설치 및 활성화
-### Configuration
+### 설정
```sh
starship preset tokyo-night -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/tokyo-night.toml)
+[클릭하여 TOML 다운로드](/presets/toml/tokyo-night.toml)
<<< @/.vuepress/public/presets/toml/tokyo-night.toml
diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md
index 396fbb2c..dccdabf2 100644
--- a/docs/nl-NL/config/README.md
+++ b/docs/nl-NL/config/README.md
@@ -206,6 +206,13 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Example
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Default | Description |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | The style for the module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Option | Default | Description |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | The style for the module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | The style for the module. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | The style for the module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | The style for the module. |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ----------------- | ------- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | Default | Description |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | The style for the module. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | The style for the module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | The style for the module. |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | The style for the module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | Default | Description |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | The style for the module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | The style for the module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Options
-| Option | Default | Description |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `style` | `'bold dimmed green'` | The style for the module. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Option | Default | Description |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `style` | `'bold dimmed green'` | The style for the module. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variables
@@ -2126,7 +2215,9 @@ The `hostname` module shows the system hostname.
*: This variable can only be used as a part of a style string
-### Example
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Options
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | Default | Description |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `style` | `'cyan bold'` | The style for the module. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Description |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Example | Description |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | The style for the module. |
| `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. |
+| `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
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | The style for the module. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | The style for the module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `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 |
+| `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 |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | The style for the module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | Default | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | The style for the module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | The style for the module. |
+| `style` | `'bold blue'` | The style for the module. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | The style for the module. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/nl-NL/guide/README.md b/docs/nl-NL/guide/README.md
index ec9b9d83..c4a18ddb 100644
--- a/docs/nl-NL/guide/README.md
+++ b/docs/nl-NL/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Volg @StarshipPrompt op Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/nl-NL/presets/README.md b/docs/nl-NL/presets/README.md
index 3903bc17..2e332ad1 100644
--- a/docs/nl-NL/presets/README.md
+++ b/docs/nl-NL/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/nl-NL/presets/gruvbox-rainbow.md b/docs/nl-NL/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..8f342a04
--- /dev/null
+++ b/docs/nl-NL/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Benodigdheden
+
+- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
+
+### Configuration
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/nl-NL/presets/jetpack.md b/docs/nl-NL/presets/jetpack.md
new file mode 100644
index 00000000..0f52a9a9
--- /dev/null
+++ b/docs/nl-NL/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Configuration
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/no-NO/config/README.md b/docs/no-NO/config/README.md
index 396fbb2c..dccdabf2 100644
--- a/docs/no-NO/config/README.md
+++ b/docs/no-NO/config/README.md
@@ -206,6 +206,13 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Example
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Default | Description |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | The style for the module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Option | Default | Description |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | The style for the module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | The style for the module. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | The style for the module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | The style for the module. |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ----------------- | ------- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | Default | Description |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | The style for the module. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | The style for the module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | The style for the module. |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | The style for the module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | Default | Description |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | The style for the module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | The style for the module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Options
-| Option | Default | Description |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `style` | `'bold dimmed green'` | The style for the module. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Option | Default | Description |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `style` | `'bold dimmed green'` | The style for the module. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variables
@@ -2126,7 +2215,9 @@ The `hostname` module shows the system hostname.
*: This variable can only be used as a part of a style string
-### Example
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Options
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | Default | Description |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `style` | `'cyan bold'` | The style for the module. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Description |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Example | Description |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | The style for the module. |
| `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. |
+| `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
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | The style for the module. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | The style for the module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `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 |
+| `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 |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | The style for the module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | Default | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | The style for the module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | The style for the module. |
+| `style` | `'bold blue'` | The style for the module. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | The style for the module. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/no-NO/guide/README.md b/docs/no-NO/guide/README.md
index f74b800c..8257069b 100644
--- a/docs/no-NO/guide/README.md
+++ b/docs/no-NO/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Følg @StarshipPrompt på Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/no-NO/presets/README.md b/docs/no-NO/presets/README.md
index 3903bc17..2e332ad1 100644
--- a/docs/no-NO/presets/README.md
+++ b/docs/no-NO/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/no-NO/presets/gruvbox-rainbow.md b/docs/no-NO/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..cfe75913
--- /dev/null
+++ b/docs/no-NO/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Nødvendig forutsetninger
+
+- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
+
+### Configuration
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/no-NO/presets/jetpack.md b/docs/no-NO/presets/jetpack.md
new file mode 100644
index 00000000..0f52a9a9
--- /dev/null
+++ b/docs/no-NO/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Configuration
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md
index 10c03d70..a39cc9bb 100644
--- a/docs/pl-PL/config/README.md
+++ b/docs/pl-PL/config/README.md
@@ -206,6 +206,13 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: porada
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Example
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Default | Description |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | The style for the module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Option | Default | Description |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | The style for the module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | The style for the module. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | The style for the module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Zmienne | Example | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | The style for the module. |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Zmienne | Example | Description |
+| ----------------- | ------- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | Default | Description |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | The style for the module. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | The style for the module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | The style for the module. |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | The style for the module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | Default | Description |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | The style for the module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | The style for the module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Options
-| Option | Default | Description |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `style` | `'bold dimmed green'` | The style for the module. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Option | Default | Description |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `style` | `'bold dimmed green'` | The style for the module. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variables
@@ -2126,7 +2215,9 @@ The `hostname` module shows the system hostname.
*: This variable can only be used as a part of a style string
-### Example
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: porada
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Options
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | Default | Description |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `style` | `'cyan bold'` | The style for the module. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Zmienne | Description |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Zmienne | Example | Description |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | The style for the module. |
| `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. |
+| `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
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | The style for the module. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | The style for the module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `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 |
+| `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 |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | The style for the module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | Default | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | The style for the module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | The style for the module. |
+| `style` | `'bold blue'` | The style for the module. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | The style for the module. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Zmienne | Example | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/pl-PL/faq/README.md b/docs/pl-PL/faq/README.md
index f88a28a5..4df19d6b 100644
--- a/docs/pl-PL/faq/README.md
+++ b/docs/pl-PL/faq/README.md
@@ -21,7 +21,7 @@ Yes, they can both be used to disable modules in the prompt. If all you plan to
- Disabling modules is more explicit than omitting them from the top level `format`
- Newly created modules will be added to the prompt as Starship is updated
-## Dokumentacja stwierdza że Starship jest wieloplatformowy. Dlaczego moja preferowana powłoka nie jest obsługiwana?
+## Dokumentacja twierdzi, że Starship jest wieloplatformowy. Dlaczego moja preferowana powłoka nie jest obsługiwana?
The way Starship is built, it should be possible to add support for virtually any shell. The starship binary is stateless and shell agnostic, so as long as your shell supports prompt customization and shell expansion, Starship can be used.
diff --git a/docs/pl-PL/guide/README.md b/docs/pl-PL/guide/README.md
index 0d5c7221..89a4d1b5 100644
--- a/docs/pl-PL/guide/README.md
+++ b/docs/pl-PL/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Śledź @StarshipPrompt na Twitterze"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbaner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/pl-PL/presets/README.md b/docs/pl-PL/presets/README.md
index f72d797b..5bb82d8e 100644
--- a/docs/pl-PL/presets/README.md
+++ b/docs/pl-PL/presets/README.md
@@ -63,3 +63,9 @@ Ten zestaw ustawień jest inspirowany [M365Princess](https://github.com/JanDeDo
Ten zestaw ustawień jest inspirowany [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Zrzut ekranu ustawień Tokio Night](/presets/img/tokyo-night.png "Kliknij, aby wyświetlić ustawienia Tokio Night")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+Zestaw mocno inspirowany przez [Pastel Powerline](./pastel-powerline.md) i [Tokyo Night](./tokyo-night.md).
+
+[![Zrzut ekranu ustawień Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Kliknij, aby wyświetlić ustawienia Gruvbox Rainbow")](./gruvbox-rainbow)
diff --git a/docs/pl-PL/presets/gruvbox-rainbow.md b/docs/pl-PL/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..8e3abe06
--- /dev/null
+++ b/docs/pl-PL/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Powrót do ustawień predefiniowanych](./README.md#gruvbox-rainbow)
+
+# Ustawienia Gruvbox Rainbow
+
+Zestaw mocno inspirowany przez [Pastel Powerline](./pastel-powerline.md) i [Tokyo Night](./tokyo-night.md).
+
+![Zrzut ekranu ustawień Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png)
+
+### Wymagania wstępne
+
+- Czcionka typu [Nerd Font](https://www.nerdfonts.com/) zainstalowana i włączona w twoim terminalu
+
+### Konfiguracja
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Kliknij, aby pobrać TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/pl-PL/presets/jetpack.md b/docs/pl-PL/presets/jetpack.md
new file mode 100644
index 00000000..9206a9dc
--- /dev/null
+++ b/docs/pl-PL/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Powrót do ustawień predefiniowanych](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Wymaganie wstępne
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Konfiguracja
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Kliknij, aby pobrać TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md
index 897722b0..c27f521a 100644
--- a/docs/pt-BR/config/README.md
+++ b/docs/pt-BR/config/README.md
@@ -206,6 +206,13 @@ Esta é a lista de opções de configuração em todo o prompt.
| `add_newline` | `true` | Insere linha vazia entre os prompts do shell. |
| `palette` | `''` | Define qual a paleta de cores de `palettes` será usada. |
| `palettes` | `{}` | Coleção de paletas de cores que atribuem [cores](/advanced-config/#style-strings) aos nomes definidos pelo usuário. Note que paletas de cores não podem referir-se a suas próprias definições de cores. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Exemplo
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ Quando usar [AWSume](https://awsu.me) o perfil é lido da variável `AWSUME_PROF
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Opções
| Opções | Padrão | Descrição |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Tabela de aleases de regiões a serem exibidas, além do nome da AWS. |
| `profile_aliases` | `{}` | Tabela de apelidos de perfil a serem exibidos além do nome da AWS. |
| `style` | `'bold yellow'` | O estilo do módulo. |
-| `expiration_symbol` | `X` | O simbolo exibido quando as credenciais temporárias estão expiradas. |
+| `expiration_symbol` | `'X'` | O simbolo exibido quando as credenciais temporárias estão expiradas. |
| `disabled` | `false` | Desabilita o módulo `AWS`. |
| `force_display` | `false` | Se `true` exibe as informações mesmo que `credentials`, `credential_process` ou `sso_start_url` não tenham sido configurados. |
@@ -423,7 +435,7 @@ Enterprise_Naming_Scheme-voidstars = 'void**'
## Azure
-O módulo `azure` exibe a assinatura Azure atual. This is based on showing the name of the default subscription or the username, as defined in the `~/.azure/azureProfile.json` file.
+O módulo `azure` exibe a assinatura Azure atual. Isto é baseado na exibição do nome da assinatura padrão ou no nome do usuário, como definido no arquivo `~/.azure/azureProfile.json`.
### Opções
@@ -620,17 +632,17 @@ O módulo `c` mostra algumas informações sobre o seu compilador de C. Por padr
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | A string de formato do módulo. |
-| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | O símbolo utilizado antes de exibir os detalhes do compilador |
-| `detect_extensions` | `['c', 'h']` | Quais extensões devem ativar este módulo. |
-| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
-| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | Como detectar qual é o compilador |
-| `style` | `'bold 149'` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `c`. |
+| Opções | Padrão | Descrição |
+| ------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | A string de formato do módulo. |
+| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | O símbolo utilizado antes de exibir os detalhes do compilador |
+| `detect_extensions` | `['c', 'h']` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | Como detectar qual é o compilador |
+| `style` | `'bold 149'` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `c`. |
### Variáveis
@@ -671,7 +683,7 @@ O caractere vai te dizer se o ultimo comando foi bem sucedido ou não. Você pod
Por padrão ele apenas muda de cor. Se você deseja alterar o formato de uma olhada [neste exemplo](#with-custom-error-shape).
-::: warning
+::: atenção
`vimcmd_symbol` is only supported in cmd, fish and zsh. `vimcmd_replace_one_symbol`, `vimcmd_replace_symbol`, and `vimcmd_visual_symbol` are only supported in fish due to [upstream issues with mode detection in zsh](https://github.com/starship/starship/issues/625#issuecomment-732454148).
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | O formato do módulo. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | O estilo do módulo. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `['.envrc']` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Espelha o valor da opção `symbol`. |
+| style\* | `red bold` | Espelha o valor da opção `style`. |
+
+*: Esta variável só pode ser usada como parte de uma string de estilo
+
+### Exemplo
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## Docker Context
O módulo `docker_context` exibe o [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) ativo atualmente se não estiver definido como `default` ou se as variáveis de ambiente `DOCKER_MACHINE_NAME`, `DOCKER_HOST` ou `DOCKER_CONTEXT` estiverem definidas (iram sobrescrever o contexto atual).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | O estilo do módulo. |
-| `detect_extensions` | `[fnl]` | Quais extensões devem ativar este módulo. |
+| `detect_extensions` | `['fnl']` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | O formato do módulo. |
+| `added_style` | `'bold green'` | O estilo para a contagem de adições. |
+| `deleted_style` | `'bold red'` | O estilo para a contagem de exclusões. |
+| `only_nonzero_diffs` | `true` | Exibe apenas o status para itens alterados. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| ----------------- | ------- | --------------------------------------- |
+| added | `1` | O número atual de linhas adicionadas |
+| deleted | `2` | O número atual de linhas excluidas |
+| added_style\* | | Espelha o valor da opção `added_style` |
+| deleted_style\* | | Espelha o valor da opção`deleted_style` |
+
+*: Esta variável só pode ser usada como parte de uma string de estilo
+
+### Exemplo
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
O módulo `gcloud` exibe a configuração atual para a CLI do [`gcloud`](https://cloud.google.com/sdk/gcloud). Isto é baseadp mp arquivo `~/.config/gcloud/active_config` e no arquivo`~/.config/gcloud/configurations/config_{CONFIG NAME}` e a env var `CLOUDSDK_CONFIG`.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Opções
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Opções | Padrão | Descrição |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | O formato do módulo. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | O estilo do módulo. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | O estilo do módulo. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variáveis
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Quais extensões devem ativar este módulo. |
+| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
+| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
-| `detect_folders` | `["gradle"]` | Quais pastas devem ativar este módulo. |
-| `style` | `"bold bright-cyan"` | O estilo do módulo. |
+| `detect_folders` | `['gradle']` | Quais pastas devem ativar este módulo. |
+| `style` | `'bold bright-cyan'` | O estilo do módulo. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Opções | Padrão | Descrição |
| ------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Quais extensões devem ativar este módulo. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Quais nomes de arquivos devem ativar este módulo. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Quais pastas devem ativar este módulo. |
-| `symbol` | `"⌘ "` | O formato de string que representa o simbolo do Helm. |
-| `style` | `"bold fg:202"` | O estilo do módulo. |
+| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
+| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Quais pastas devem ativar este módulo. |
+| `symbol` | `'⌘ '` | O formato de string que representa o simbolo do Helm. |
+| `style` | `'bold fg:202'` | O estilo do módulo. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variáveis
@@ -2107,14 +2195,15 @@ O módulo `hostname` exibe o nome do hostname.
### Opções
-| Opções | Padrão | Descrição |
-| ------------ | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | Apenas exibe o hostname quando conectado em uma sessão SSH. |
-| `ssh_symbol` | `'🌐 '` | Uma formatação de string que representa o símbolo quando conectado à sessão SSH. |
-| `trim_at` | `'.'` | String na qual vai truncar o hostname, após a primeira correspondência. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | O formato do módulo. |
-| `style` | `'bold dimmed green'` | O estilo do módulo. |
-| `disabled` | `false` | Desabilita o módulo `hostname`. |
+| Opções | Padrão | Descrição |
+| ----------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Apenas exibe o hostname quando conectado em uma sessão SSH. |
+| `ssh_symbol` | `'🌐 '` | Uma formatação de string que representa o símbolo quando conectado à sessão SSH. |
+| `trim_at` | `'.'` | String na qual vai truncar o hostname, após a primeira correspondência. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | O formato do módulo. |
+| `style` | `'bold dimmed green'` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `hostname`. |
### Variáveis
@@ -2126,7 +2215,9 @@ O módulo `hostname` exibe o nome do hostname.
*: Esta variável só pode ser usada como parte de uma string de estilo
-### Exemplo
+### Exemplos
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
O módulo `java` exibe o versão atual instalada do [Java](https://www.oracle.com/java/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
@@ -2323,7 +2425,7 @@ kotlin_binary = 'kotlinc'
## Kubernetes
-Exibe o nome atual do [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) e, se definido, o namespace, usuário e cluster do arquivo kubeconfig. O namespace precisa ser definido no arquivo kubeconfig, isso pode ser feito via `kubectl config set-context starship-context --namespace astronaut`. Da mesma forma, o usuário e o cluster podem ser definidos com `kubectl config set-context starship-context --user starship-user` e `kubectl config set-context starship-context --cluster starship-cluster`. Se a env var `$KUBECONFIG` estiver definida o módulo vai usa-la ao invés de usar o `~/.kube/config`.
+Exibe o nome atual do [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) e, se definido, o namespace, usuário e cluster do arquivo kubeconfig. O namespace precisa ser definido no arquivo kubeconfig, isso pode ser feito via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. Se a env var `$KUBECONFIG` estiver definida o módulo vai usa-la ao invés de usar o `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Opções
+::: atenção
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Opções | Padrão | Descrição |
| ------------------- | ---------------------------------------------------- | ------------------------------------------------------------- |
| `symbol` | `'☸ '` | Uma string que representa o simbolo exibido antes do Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | O formato do módulo. |
| `style` | `'cyan bold'` | O estilo do módulo. |
-| `context_aliases` | `{}` | Tabela de aliases de contexto para exibir. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Tabela de aliases de contexto para exibir. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Desabilita o módulo `kubernetes`. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variável | Descrição |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variáveis
| Variável | Exemplo | Descrição |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Correspondência Regex
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_aliases` also supports extended matching and renaming using regular expressions.
-
-A expressão regular deve coincidir com todo o contexto kube, Grupos de captura podem ser referenciados usando `$name` e `$N` na substituição. Isto esta mais explicado na documentação do [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace).
-
-Nomes longos de clusters gerados automaticamente podem ser encurtados usando expressão regular:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Quebra de Linha
@@ -2730,7 +2861,7 @@ O módulo `nodejs` exibe a versão atual instalada do [Node.js](https://nodejs.o
| `detect_folders` | `['node_modules']` | Quais pastas devem ativar este módulo. |
| `style` | `'bold green'` | O estilo do módulo. |
| `disabled` | `false` | Desabilita o módulo `nodejs`. |
-| `not_capable_style` | `bold red` | O estilo para o módulo quando a propriedade engine no package.json não coincide com a versão do Node.js. |
+| `not_capable_style` | `'bold red'` | O estilo para o módulo quando a propriedade engine no package.json não coincide com a versão do Node.js. |
### Variáveis
@@ -2890,8 +3021,8 @@ Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para
| Opções | Padrão | Descrição |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | O formato do módulo. |
-| `style` | `"bold white"` | O estilo do módulo. |
+| `format` | `'[$symbol]($style)'` | O formato do módulo. |
+| `style` | `'bold white'` | O estilo do módulo. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3149,13 +3280,13 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
### Variáveis
-| Variável | Exemplo | Descrição |
-| --------------- | ---------- | --------------------------------- |
-| version | `v0.12.24` | A versão do `pulumi` |
-| stack | `dev` | A stack Pulumi atual |
-| nome do usuário | `alice` | O nome de usuário Pulumi atual |
-| symbol | | Espelha o valor da opção `symbol` |
-| style\* | | Espelha o valor da opção `style` |
+| Variável | Exemplo | Descrição |
+| --------- | ---------- | --------------------------------- |
+| version | `v0.12.24` | A versão do `pulumi` |
+| stack | `dev` | A stack Pulumi atual |
+| username | `alice` | O nome de usuário Pulumi atual |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
*: Esta variável só pode ser usada como parte de uma string de estilo
@@ -3245,7 +3376,7 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
| `symbol` | `'🐍 '` | Uma string que representa o simbolo do Python |
| `style` | `'yellow bold'` | O estilo do módulo. |
| `pyenv_version_name` | `false` | Usa pyenv para pegar a versão do Python |
-| `pyenv_prefix` | `pyenv` | Prefixo antes da versão do pyenv, apenas usado se pyenv for usado |
+| `pyenv_prefix` | `'pyenv'` | Prefixo antes da versão do pyenv, apenas usado se pyenv for usado |
| `python_binary` | `['python', 'python3', 'python2']` | Configura o binário python que o Starship vai executar para obter a versão. |
| `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']` | [] |
@@ -3562,22 +3693,23 @@ Este módulo é desabilitado por padrão. Para habilitar, defina `disabled` para
### Opções
-| Opções | Padrão | Descrição |
-| ---------------------- | ------------------------- | ------------------------------------------------------- |
-| `bash_indicator` | `'bsh'` | Uma string para representar o bash. |
-| `fish_indicator` | `'fsh'` | Uma string usada para representar o fish. |
-| `zsh_indicator` | `'zsh'` | Uma string usada para representar o zsh. |
-| `powershell_indicator` | `'psh'` | Uma string usada para representar o powershell. |
-| `ion_indicator` | `'ion'` | Uma string usada para representar o ion. |
-| `elvish_indicator` | `'esh'` | Uma string usada para representar o elvish. |
-| `tcsh_indicator` | `'tsh'` | Uma string usada para representar o tcsh. |
-| `xonsh_indicator` | `'xsh'` | Uma string usada para representar o xonsh. |
-| `cmd_indicator` | `'cmd'` | Uma string usada para representar o cmd. |
-| `nu_indicator` | `'nu'` | Uma string usada para representar o nu. |
-| `unknown_indicator` | `''` | Valor padrão para exibir quando o shell é desconhecido. |
-| `format` | `'[$indicator]($style) '` | O formato do módulo. |
-| `style` | `'white bold'` | O estilo do módulo. |
-| `disabled` | `true` | Desabilita o módulo `shell`. |
+| Opções | Padrão | Descrição |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | Uma string para representar o bash. |
+| `fish_indicator` | `'fsh'` | Uma string usada para representar o fish. |
+| `zsh_indicator` | `'zsh'` | Uma string usada para representar o zsh. |
+| `powershell_indicator` | `'psh'` | Uma string usada para representar o powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `ion_indicator` | `'ion'` | Uma string usada para representar o ion. |
+| `elvish_indicator` | `'esh'` | Uma string usada para representar o elvish. |
+| `tcsh_indicator` | `'tsh'` | Uma string usada para representar o tcsh. |
+| `xonsh_indicator` | `'xsh'` | Uma string usada para representar o xonsh. |
+| `cmd_indicator` | `'cmd'` | Uma string usada para representar o cmd. |
+| `nu_indicator` | `'nu'` | Uma string usada para representar o nu. |
+| `unknown_indicator` | `''` | Valor padrão para exibir quando o shell é desconhecido. |
+| `format` | `'[$indicator]($style) '` | O formato do módulo. |
+| `style` | `'white bold'` | O estilo do módulo. |
+| `disabled` | `true` | Desabilita o módulo `shell`. |
### Variáveis
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Quais extensões devem ativar este módulo. |
+| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
-| `style` | `"bold blue"` | O estilo do módulo. |
+| `style` | `'bold blue'` | O estilo do módulo. |
| `disabled` | `false` | Disables this module. |
### Variáveis
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+Por padrão, o módulo será exibido se qualquer das seguintes condições for atendida:
+
+- O diretório atual conter um arquivo `template.typ`
+- The current directory contains any `*.typ` file
+
+### Opções
+
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | O formato do módulo. |
+| `version_format` | `'v${raw}'` | A versão formatada. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | O estilo do módulo. |
+| `detect_extensions` | `['.typ']` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `['template.typ']` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variáveis
+
+| Variável | Exemplo | Descrição |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| symbol | | Espelha o valor da opção `symbol` |
+| style\* | | Espelha o valor da opção `style` |
+
+*: Esta variável só pode ser usada como parte de uma string de estilo
+
## Nome do usuário
O módulo `username` mostra o nome de usuário do usuário ativo. O módulo será mostrado se alguma das seguintes condições for atendida:
diff --git a/docs/pt-BR/guide/README.md b/docs/pt-BR/guide/README.md
index 67d28420..f13eb380 100644
--- a/docs/pt-BR/guide/README.md
+++ b/docs/pt-BR/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Siga o @StarshipPrompt no Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/pt-BR/presets/README.md b/docs/pt-BR/presets/README.md
index 9e41bc24..0d58e994 100644
--- a/docs/pt-BR/presets/README.md
+++ b/docs/pt-BR/presets/README.md
@@ -63,3 +63,9 @@ Esta personalização é inspirada em [M365Princess](https://github.com/JanDeDob
Este preset é inspirado por [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Captura de tela de Tokyo Night preset](/presets/img/tokyo-night.png "Clique para visualizar Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/pt-BR/presets/gruvbox-rainbow.md b/docs/pt-BR/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..588b5c3a
--- /dev/null
+++ b/docs/pt-BR/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Retornar para Personalizações](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Pré-requisitos
+
+- Uma fonte [Nerd Font](https://www.nerdfonts.com/) instalada e ativada em seu terminal
+
+### Configuração
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Clique para baixar o TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/pt-BR/presets/jetpack.md b/docs/pt-BR/presets/jetpack.md
new file mode 100644
index 00000000..339ab8c8
--- /dev/null
+++ b/docs/pt-BR/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Retornar para Personalizações](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Configuração
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Clique para baixar o TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md
index 396fbb2c..dccdabf2 100644
--- a/docs/pt-PT/config/README.md
+++ b/docs/pt-PT/config/README.md
@@ -206,6 +206,13 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Example
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Default | Description |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | The style for the module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Option | Default | Description |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | The style for the module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | The style for the module. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | The style for the module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | The style for the module. |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ----------------- | ------- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | Default | Description |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | The style for the module. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | The style for the module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | The style for the module. |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | The style for the module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | Default | Description |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | The style for the module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | The style for the module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Options
-| Option | Default | Description |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `style` | `'bold dimmed green'` | The style for the module. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Option | Default | Description |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `style` | `'bold dimmed green'` | The style for the module. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variables
@@ -2126,7 +2215,9 @@ The `hostname` module shows the system hostname.
*: This variable can only be used as a part of a style string
-### Example
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Options
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | Default | Description |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `style` | `'cyan bold'` | The style for the module. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Description |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Example | Description |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | The style for the module. |
| `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. |
+| `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
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | The style for the module. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | The style for the module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `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 |
+| `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 |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | The style for the module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | Default | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | The style for the module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | The style for the module. |
+| `style` | `'bold blue'` | The style for the module. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | The style for the module. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/pt-PT/guide/README.md b/docs/pt-PT/guide/README.md
index 0289a807..26c72554 100644
--- a/docs/pt-PT/guide/README.md
+++ b/docs/pt-PT/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Follow @StarshipPrompt on Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
diff --git a/docs/pt-PT/presets/README.md b/docs/pt-PT/presets/README.md
index 3903bc17..2e332ad1 100644
--- a/docs/pt-PT/presets/README.md
+++ b/docs/pt-PT/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/pt-PT/presets/gruvbox-rainbow.md b/docs/pt-PT/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..7e2db717
--- /dev/null
+++ b/docs/pt-PT/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Prerequisites
+
+- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
+
+### Configuration
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/pt-PT/presets/jetpack.md b/docs/pt-PT/presets/jetpack.md
new file mode 100644
index 00000000..0f52a9a9
--- /dev/null
+++ b/docs/pt-PT/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Configuration
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/ru-RU/README.md b/docs/ru-RU/README.md
index 9439e767..811871ea 100644
--- a/docs/ru-RU/README.md
+++ b/docs/ru-RU/README.md
@@ -2,7 +2,7 @@
home: true
heroImage: /logo.svg
heroText:
-tagline: Минималистичная, быстрая и бесконечно настраиваемая командная строка для любой оболочки!
+tagline: Минималистичное, быстрое и бесконечно настраиваемое приглашение командной строки для любой оболочки!
actionText: Начало работы →
actionLink: ./guide/
features:
@@ -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 - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
+description: Starship - минимальная, быстрая и бесконечная настраиваемая командная строка для любой оболочки! Показывает нужную вам информацию, оставаясь красивой и минималистичной. Быстрая установка доступна для Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, и PowerShell.
---
@@ -28,34 +28,34 @@ description: Starship - минимальная, быстрая и бесконе
-### Обязательные требования
+### Обязательные условия
- Установленный и включенный шрифт [Nerd Font](https://www.nerdfonts.com/) в вашем терминале.
### Быстрая установка
-1. Установите двоичный файл **starship**:
+1. Установите бинарный файл **starship**:
- #### Установить последнюю версию
+ #### Установка последней версии
- Через Bash:
+ Через Shell:
```sh
curl -sS https://starship.rs/install.sh | sh
```
- Для обновления Starship перезапустите этот скрипт. Он заменит текущую версию без изменения конфигурации.
+ Чтобы обновить Starship, повторно запустите приведенный выше скрипт. Он заменит текущую версию, не затрагивая конфигурацию Starship.
- #### Установить через менеджер пакетов
+ #### Установка через пакетный менеджер
- С [Homebrew](https://brew.sh/):
+ С помощью [Homebrew](https://brew.sh/):
```sh
brew install starship
```
- With [Winget](https://github.com/microsoft/winget-cli):
+ С помощью [Winget](https://github.com/microsoft/winget-cli):
```powershell
winget install starship
@@ -149,7 +149,7 @@ description: Starship - минимальная, быстрая и бесконе
::: warning
- This will change in the future. Only Nushell v0.78+ is supported.
+ This will change in the future. Поддерживается только Nushell v0.78+.
:::
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index 8586667c..005fff03 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -271,14 +271,14 @@ continuation_prompt = '▶▶ '
Цветовой спецификатор может быть одним из следующих:
-- 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`).
+- Один из стандартных цветов терминалов: `black`, `red`, `green`, `blue`, `gellow`, `purple`, `cyan`, `white`. You can optionally prefix these with `bright-` to get the bright version (e.g. `bright-white`).
- `#`, за которой следует шестизначное шестнадцатеричное число. Это определяет [шестнадцатеричный код цвета RGB](https://www.w3schools.com/colors/colors_hexadecimal.asp).
- Число от 0 до 255. Это определяет [8-битный код цвета ANSI](https://i.stack.imgur.com/KTSQa.png).
Если для переднего плана/фона задано несколько цветов, то последняя из строк будет иметь приоритет.
-Not every style string will be displayed correctly by every terminal. In particular, the following known quirks exist:
+Не все строки стиля будут корректно отображаться в терминале. В частности, существуют следующие известные ошибки:
-- Many terminals disable support for `blink` by default
-- `hidden` is [not supported on iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
-- `strikethrough` is not supported by the default macOS Terminal.app
+- Во многих терминалах по умолчанию отключена поддержка `blink`
+- `hidden` [не поддерживается в iTerm](https://gitlab.com/gnachman/iterm2/-/issues/4564).
+- `strikethrough` по умолчанию не поддерживается в macOS Terminal.app
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 1ce293ee..5aeb02e1 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -206,6 +206,13 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Пример
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Опции
| Параметр | По умолчанию | Описание |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Таблица региона псевдонимов, отображаемая вместе с именем AWS. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | Стиль модуля. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Отключение модуля `AWS`. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Опции
-| Параметр | По умолчанию | Описание |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | Стиль модуля. |
-| `disabled` | `false` | Disables the `c` module. |
+| Параметр | По умолчанию | Описание |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | Стиль модуля. |
+| `disabled` | `false` | Disables the `c` module. |
### Переменные
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | Формат модуля. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | Стиль модуля. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ---------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Отражает значение параметра `symbol`. |
+| style\* | `red bold` | Отражает значение параметра `style`. |
+
+*: Эта переменная может использоваться только в качестве части строки style
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## Контекст Docker
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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | Стиль модуля. |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | Формат модуля. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ----------------- | ------ | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: Эта переменная может использоваться только в качестве части строки style
+
+### Пример
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Опции
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Параметр | По умолчанию | Описание |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | Формат модуля. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | Стиль модуля. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | Стиль модуля. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Переменные
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Параметр | По умолчанию | Описание |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | Стиль модуля. |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | Стиль модуля. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Параметр | По умолчанию | Описание |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | Стиль модуля. |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | Стиль модуля. |
| `disabled` | `false` | Disables the `haxe` module. |
### Переменные
@@ -2107,14 +2195,15 @@ format = 'via [⎈ $version](bold white) '
### Опции
-| Параметр | По умолчанию | Описание |
-| ------------ | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | Показывать имя хоста только при подключении через SSH. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | Символы, по которую имя хоста будет сокращено после первого совпадения. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | Формат модуля. |
-| `style` | `'bold dimmed green'` | Стиль модуля. |
-| `disabled` | `false` | Отключает модуль `hostname`. |
+| Параметр | По умолчанию | Описание |
+| ----------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Показывать имя хоста только при подключении через SSH. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | Символы, по которую имя хоста будет сокращено после первого совпадения. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | Формат модуля. |
+| `style` | `'bold dimmed green'` | Стиль модуля. |
+| `disabled` | `false` | Отключает модуль `hostname`. |
### Переменные
@@ -2126,7 +2215,9 @@ format = 'via [⎈ $version](bold white) '
*: Эта переменная может использоваться только в качестве части строки style
-### Пример
+### Примеры
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Опции
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Параметр | По умолчанию | Описание |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | Формат модуля. |
| `style` | `'cyan bold'` | Стиль модуля. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Отключает модуль `kubernetes`. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Переменная | Описание |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Переменные
| Переменная | Пример | Описание |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Разрыв Строки
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | Стиль модуля. |
| `disabled` | `false` | Отключает модуль `nodejs`. |
-| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
+| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
### Переменные
@@ -2890,8 +3021,8 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
| Параметр | По умолчанию | Описание |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | Формат модуля. |
-| `style` | `"bold white"` | Стиль модуля. |
+| `format` | `'[$symbol]($style)'` | Формат модуля. |
+| `style` | `'bold white'` | Стиль модуля. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `style` | `'yellow bold'` | Стиль модуля. |
| `pyenv_version_name` | `false` | Использовать pyenv для получения версии Python |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `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 |
@@ -3562,22 +3693,23 @@ The `shell` module shows an indicator for currently used shell.
### Опции
-| Параметр | По умолчанию | Описание |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | Формат модуля. |
-| `style` | `'white bold'` | Стиль модуля. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Параметр | По умолчанию | Описание |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | Формат модуля. |
+| `style` | `'white bold'` | Стиль модуля. |
+| `disabled` | `true` | Disables the `shell` module. |
### Переменные
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Параметр | По умолчанию | Описание |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | Стиль модуля. |
+| `style` | `'bold blue'` | Стиль модуля. |
| `disabled` | `false` | Disables this module. |
### Переменные
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- Текущий каталог содержит файл `template.typ`
+- The current directory contains any `*.typ` file
+
+### Опции
+
+| Параметр | По умолчанию | Описание |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | Стиль модуля. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Переменные
+
+| Переменная | Пример | Описание |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| symbol | | Отражает значение параметра `symbol` |
+| style\* | | Отражает значение параметра `style` |
+
+*: Эта переменная может использоваться только в качестве части строки style
+
## Имя пользователя
Модуль `username` показывает имя текущего пользователя. Модуль будет показан, если любое из следующих условий соблюдено:
diff --git a/docs/ru-RU/faq/README.md b/docs/ru-RU/faq/README.md
index fd295b14..f3f1992d 100644
--- a/docs/ru-RU/faq/README.md
+++ b/docs/ru-RU/faq/README.md
@@ -1,12 +1,12 @@
-# Frequently Asked Questions
+# Часто задаваемые вопросы
## Какая конфигурация используется в демо-GIF?
- **Эмулятор терминала**: [iTerm2](https://iterm2.com/)
- - **Тема**: Минимальная
+ - **Тема**: Minimal
- **Цветовая схема**: [Snazzy](https://github.com/sindresorhus/iterm2-snazzy)
- - **Font**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
-- **Оболочка**: [Fish Shell](https://fishshell.com/)
+ - **Шрифт**: [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)
+- **Командная оболочка**: [Fish Shell](https://fishshell.com/)
- **Конфигурация**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- **Подсказка**: [Starship](https://starship.rs/)
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index e992d3a4..5795e781 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Подпишитесь на @StarshipPrompt в Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
-**Минималистичная, быстрая и бесконечно настраиваемая командная строка для любой оболочки!**
+**Минималистичное, быстрое и бесконечно настраиваемое приглашение командной строки для любой оболочки!**
- **Быстрая:** она быстрая – _очень-очень_ быстрая! 🚀
- **Настраиваемая:** настройте каждый элемент вашей командной строки.
@@ -229,6 +232,7 @@ Alternatively, install Starship using any of the following package managers:
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
+| openSUSE | [OSS](https://software.opensuse.org/package/starship) | `zypper in starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
diff --git a/docs/ru-RU/presets/README.md b/docs/ru-RU/presets/README.md
index acfaf78f..a20991e9 100644
--- a/docs/ru-RU/presets/README.md
+++ b/docs/ru-RU/presets/README.md
@@ -1,65 +1,71 @@
-# Предустановки
+# Пресеты
-Ниже приведена коллекция предустановок конфигураций сообщества для Starship. Если вы хотите поделиться своей предустановкой, пожалуйста, [создайте PR](https://github.com/starship/starship/edit/master/docs/presets/README.md), обновляя этот файл! 😊
+Ниже представлена коллекция пресетов для Starship, созданных сообществом. Если у вас есть пресет, которым вы хотите поделиться, пожалуйста, [отправьте PR](https://github.com/starship/starship/edit/master/docs/presets/README.md) для обновления этого файла! 😊
-To get details on how to use a preset, simply click on the image.
+Чтобы получить подробную информацию о том, как использовать тот или иной пресет, просто щелкните на его изображение.
-## [Символы Шрифта Nerd Font](./nerd-font.md)
+## [Nerd Font Symbols](./nerd-font.md)
-This preset changes the symbols for each module to use Nerd Font symbols.
+Этот пресет изменяет символы для каждого модуля на символы Nerd Font.
-[![Скриншот предустановки Nerd Font Symbols](/presets/img/nerd-font-symbols.png "Click to view Nerd Font Symbols preset")](./nerd-font)
+[![Скриншот пресета Nerd Font Symbols](/presets/img/nerd-font-symbols.png "Нажмите, чтобы просмотреть пресет Nerd Font Symbols")](./nerd-font)
## [No Nerd Fonts](./no-nerd-font.md)
-This preset changes the symbols for several modules so that no Nerd Font symbols are used anywhere in the prompt.
+Этот пресет изменяет символы для нескольких модулей таким образом, чтобы в приглашении командной строки нигде не использовались символы Nerd Font.
::: tip
-This preset will become the default preset [in a future release of starship](https://github.com/starship/starship/pull/3544).
+Этот пресет станет пресетом по умолчанию [в будущем релизе starship](https://github.com/starship/starship/pull/3544).
:::
-[Click to view No Nerd Font preset](./no-nerd-font)
+[Нажмите, чтобы просмотреть пресет No Nerd Font](./no-nerd-font)
## [Bracketed Segments](./bracketed-segments.md)
-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", и т. д.).
-[![Screenshot of Bracketed Segments preset](/presets/img/bracketed-segments.png "Click to view Bracketed Segments preset")](./bracketed-segments)
+[![Скриншот пресета Bracketed Segments](/presets/img/bracketed-segments.png "Нажмите, чтобы просмотреть пресет Bracketed Segments")](./bracketed-segments)
## [Plain Text Symbols](./plain-text.md)
-This preset changes the symbols for each module into plain text. Great if you don't have access to Unicode.
+Этот пресет изменяет символы для каждого модуля на обычный текст. Отлично подходит, если у вас нет возможности использовать Unicode.
-[![Screenshot of Plain Text Symbols preset](/presets/img/plain-text-symbols.png "Click to view Plain Text Symbols preset")](./plain-text)
+[![Скриншот пресета Plain Text Symbols](/presets/img/plain-text-symbols.png "Нажмите, чтобы просмотреть пресет Plain Text Symbols")](./plain-text)
## [No Runtime Versions](./no-runtimes.md)
-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/img/no-runtime-versions.png "Click to view No Runtime Versions preset")](./no-runtimes)
+[![Скриншот пресета Hide Runtime Versions](/presets/img/no-runtime-versions.png "Нажмите, чтобы просмотреть пресет No Runtime Versions")](./no-runtimes)
## [No Empty Icons](./no-empty-icons.md)
-This preset does not show icons if the toolset is not found.
+Этот пресет не отображает иконки, если набор инструментов не найден.
-[![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png "Click to view No Runtime Versions preset")](./no-empty-icons.md)
+[![Скриншот пресета No Empty Icons](/presets/img/no-empty-icons.png "Нажмите, чтобы просмотреть пресет No Runtime Versions")](./no-empty-icons.md)
## [Pure Prompt](./pure-preset.md)
-This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure).
+Этот пресет имитирует внешний вид и поведение [Pure](https://github.com/sindresorhus/pure).
-[![Screenshot of Pure preset](/presets/img/pure-preset.png "Click to view Pure Prompt preset")](./pure-preset)
+[![Скриншот пресета Pure](/presets/img/pure-preset.png "Нажмите, чтобы просмотреть пресет Pure Prompt")](./pure-preset)
## [Pastel Powerline](./pastel-powerline.md)
-This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json). It also shows how path substitution works in starship.
+Эта пресет вдохновлен [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json). В нем также показано, как работает замена пути в starship.
-[![Screenshot of Pastel Powerline preset](/presets/img/pastel-powerline.png "Click to view Pure Prompt preset")](./pastel-powerline)
+[![Скриншот пресета Pastel Powerline](/presets/img/pastel-powerline.png "Нажмите, чтобы просмотреть пресет Pure Prompt")](./pastel-powerline)
## [Tokyo Night](./tokyo-night.md)
-This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
+Этот пресет вдохновлен [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
-[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+[![Скриншот пресета Tokyo Night](/presets/img/tokyo-night.png "Нажмите, чтобы просмотреть пресет Tokyo Night")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+Этот пресет в значительной степени вдохновлен [Pastel Powerline](./pastel-powerline.md) и [Tokyo Night](./tokyo-night.md).
+
+[![Скриншот пресета Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Нажмите, чтобы просмотреть пресет Gruvbox Rainbow")](./gruvbox-rainbow)
diff --git a/docs/ru-RU/presets/bracketed-segments.md b/docs/ru-RU/presets/bracketed-segments.md
index 668805bb..37737aa7 100644
--- a/docs/ru-RU/presets/bracketed-segments.md
+++ b/docs/ru-RU/presets/bracketed-segments.md
@@ -1,10 +1,10 @@
-[Return to Presets](./README.md#bracketed-segments)
+[Вернуться к пресетам](./README.md#bracketed-segments)
-# Bracketed Segments Preset
+# Пресет 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", и т. д.).
-![Screenshot of Bracketed Segments preset](/presets/img/bracketed-segments.png)
+![Скриншот пресета Bracketed Segments](/presets/img/bracketed-segments.png)
### Конфигурация
@@ -12,6 +12,6 @@ This preset changes the format of all the built-in modules to show their segment
starship preset bracketed-segments -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/bracketed-segments.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/bracketed-segments.toml)
<<< @/.vuepress/public/presets/toml/bracketed-segments.toml
diff --git a/docs/ru-RU/presets/gruvbox-rainbow.md b/docs/ru-RU/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..b60d31d6
--- /dev/null
+++ b/docs/ru-RU/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Вернуться к пресетам](./README.md#gruvbox-rainbow)
+
+# Пресет Gruvbox Rainbow
+
+Этот пресет в значительной степени вдохновлен [Pastel Powerline](./pastel-powerline.md) и [Tokyo Night](./tokyo-night.md).
+
+![Скриншот пресета Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png)
+
+### Обязательные требования
+
+- Установленный и включенный шрифт [Nerd Font](https://www.nerdfonts.com/) в вашем терминале
+
+### Конфигурация
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Нажмите, чтобы загрузить TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/ru-RU/presets/jetpack.md b/docs/ru-RU/presets/jetpack.md
new file mode 100644
index 00000000..5fc4fa80
--- /dev/null
+++ b/docs/ru-RU/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Вернуться к пресетам](./README.md#jetpack)
+
+# Пресет Jetpack
+
+Это псевдоминималистичный пресет, вдохновленный приглашениями командной оболочки [geometry](https://github.com/geometry-zsh/geometry) и [spaceship](https://github.com/spaceship-prompt/spaceship-prompt).
+
+> Jetpack использует цветовую тему терминала.
+
+![Скриншот пресета Jetpack](/presets/img/jetpack.png)
+
+### Обязательные условия
+
+- Требуется оболочка с поддержкой [`правостороннего приглашения`](https://starship.rs/advanced-config/#enable-right-prompt).
+- Рекомендуется [Jetbrains Mono](https://www.jetbrains.com/lp/mono/).
+
+### Конфигурация
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Нажмите, чтобы загрузить TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/ru-RU/presets/nerd-font.md b/docs/ru-RU/presets/nerd-font.md
index 33592888..956eee3f 100644
--- a/docs/ru-RU/presets/nerd-font.md
+++ b/docs/ru-RU/presets/nerd-font.md
@@ -1,8 +1,8 @@
-[Return to Presets](./README.md#nerd-font-symbols)
+[Вернуться к пресетам](./README.md#nerd-font-symbols)
-# Nerd Font Symbols Preset
+# Пресет Nerd Font Symbols
-This preset changes the symbols for each module to use Nerd Font symbols.
+Этот пресет изменяет символы для каждого модуля на символы Nerd Font.
![Скриншот предустановки Nerd Font Symbols](/presets/img/nerd-font-symbols.png)
@@ -16,6 +16,6 @@ This preset changes the symbols for each module to use Nerd Font symbols.
starship preset nerd-font-symbols -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/nerd-font-symbols.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/nerd-font-symbols.toml)
<<< @/.vuepress/public/presets/toml/nerd-font-symbols.toml
diff --git a/docs/ru-RU/presets/no-empty-icons.md b/docs/ru-RU/presets/no-empty-icons.md
index fbb175a2..66b00ce9 100644
--- a/docs/ru-RU/presets/no-empty-icons.md
+++ b/docs/ru-RU/presets/no-empty-icons.md
@@ -1,10 +1,10 @@
-[Return to Presets](./README.md#no-empty-icons)
+[Вернуться к пресетам](./README.md#no-empty-icons)
-# No Empty Icons Preset
+# Пресет No Empty Icons
-If toolset files are identified the toolset icon is displayed. If the toolset is not found to determine its version number, it is not displayed. This preset changes the behavior to display the icon only if the toolset information can be determined.
+Если файлы набора инструментов найдены, то отображается икнока набора инструментов. Если набор инструментов не найден и нельзя определить номер его версии, то он не отображается. Этот пресет изменяет поведение так, чтобы значок отображался только в том случае, если информация о наборе инструментов может быть определена.
-![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png)
+![Скриншот пресета No Empty Icons](/presets/img/no-empty-icons.png)
### Конфигурация
@@ -12,6 +12,6 @@ If toolset files are identified the toolset icon is displayed. If the toolset is
starship preset no-empty-icons -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/no-empty-icons.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/no-empty-icons.toml)
<<< @/.vuepress/public/presets/toml/no-empty-icons.toml
diff --git a/docs/ru-RU/presets/no-nerd-font.md b/docs/ru-RU/presets/no-nerd-font.md
index d236d11d..d0909711 100644
--- a/docs/ru-RU/presets/no-nerd-font.md
+++ b/docs/ru-RU/presets/no-nerd-font.md
@@ -1,12 +1,12 @@
-[Return to Presets](./README.md#no-nerd-fonts)
+[Вернуться к пресетам](./README.md#no-nerd-fonts)
-# No Nerd Fonts Preset
+# Пресет No Nerd Fonts
-This preset restricts the use of symbols to those from emoji and powerline sets.
+Данный пресет ограничивает использование символов только символами из наборов emoji и powerline.
-This means that even without a Nerd Font installed, you should be able to view all module symbols.
+Это означает, что даже без установленного шрифта Nerd Font вы сможете увидеть все символы модулей.
-This preset will become the default preset in a future release of starship.
+Этот пресет станет пресетом по умолчанию в одном из будущих релизов Starship.
### Конфигурация
@@ -14,6 +14,6 @@ This preset will become the default preset in a future release of starship.
starship preset no-nerd-font -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/no-nerd-font.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/no-nerd-font.toml)
<<< @/.vuepress/public/presets/toml/no-nerd-font.toml
diff --git a/docs/ru-RU/presets/no-runtimes.md b/docs/ru-RU/presets/no-runtimes.md
index 03d83467..5d35fda2 100644
--- a/docs/ru-RU/presets/no-runtimes.md
+++ b/docs/ru-RU/presets/no-runtimes.md
@@ -1,10 +1,10 @@
-[Return to Presets](./README.md#no-runtime-versions)
+[Вернуться к пресетам](./README.md#no-runtime-versions)
-# No Runtime Versions Preset
+# Пресет No 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/img/no-runtime-versions.png)
+![Скриншот пресета Hide Runtime Versions](/presets/img/no-runtime-versions.png)
### Конфигурация
@@ -12,6 +12,6 @@ This preset hides the version of language runtimes. If you work in containers or
starship preset no-runtime-versions -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/no-runtime-versions.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/no-runtime-versions.toml)
<<< @/.vuepress/public/presets/toml/no-runtime-versions.toml
diff --git a/docs/ru-RU/presets/pastel-powerline.md b/docs/ru-RU/presets/pastel-powerline.md
index 71cb8972..cb4b13e4 100644
--- a/docs/ru-RU/presets/pastel-powerline.md
+++ b/docs/ru-RU/presets/pastel-powerline.md
@@ -1,14 +1,14 @@
-[Return to Presets](./README.md#pastel-powerline)
+[Вернуться к пресетам](./README.md#pastel-powerline)
-# Pastel Powerline Preset
+# Пресет Pastel Powerline
-This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json). It also shows how path substitution works in starship.
+Этот пресет вдохновлен [M365Princess](https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/M365Princess.omp.json). В нем также показано, как работает замена пути в starship.
-![Screenshot of Pastel Powerline preset](/presets/img/pastel-powerline.png)
+![Скриншот пресета Pastel Powerline](/presets/img/pastel-powerline.png)
### Обязательные требования
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Caskaydia Cove Nerd Font)
+- Установленный и включенный в терминале шрифт [Nerd Font](https://www.nerdfonts.com/) (в примере используется Caskaydia Cove Nerd Font)
### Конфигурация
@@ -16,6 +16,6 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
starship preset pastel-powerline -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/pastel-powerline.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/pastel-powerline.toml)
<<< @/.vuepress/public/presets/toml/pastel-powerline.toml
diff --git a/docs/ru-RU/presets/plain-text.md b/docs/ru-RU/presets/plain-text.md
index bbc602b1..ff106c34 100644
--- a/docs/ru-RU/presets/plain-text.md
+++ b/docs/ru-RU/presets/plain-text.md
@@ -1,10 +1,10 @@
-[Return to Presets](./README.md#plain-text-symbols)
+[Вернуться к пресетам](./README.md#plain-text-symbols)
-## Plain Text Symbols Preset
+## Пресет Plain Text Symbols
-This preset changes the symbols for each module into plain text. Great if you don't have access to Unicode.
+Этот пресет изменяет символы для каждого модуля на обычный текст. Отлично подходит, если у вас нет возможности использовать Unicode.
-![Screenshot of Plain Text Symbols preset](/presets/img/plain-text-symbols.png)
+![Скриншот пресета Plain Text Symbols](/presets/img/plain-text-symbols.png)
### Конфигурация
@@ -12,6 +12,6 @@ This preset changes the symbols for each module into plain text. Great if you do
starship preset plain-text-symbols -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/plain-text-symbols.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/plain-text-symbols.toml)
<<< @/.vuepress/public/presets/toml/plain-text-symbols.toml
diff --git a/docs/ru-RU/presets/pure-preset.md b/docs/ru-RU/presets/pure-preset.md
index 8268f59a..9d9ddf5d 100644
--- a/docs/ru-RU/presets/pure-preset.md
+++ b/docs/ru-RU/presets/pure-preset.md
@@ -1,10 +1,10 @@
-[Return to Presets](./README.md#pure)
+[Вернуться к пресетам](./README.md#pure)
-# Pure Preset
+# Пресет Pure
-This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure).
+Этот пресет имитирует внешний вид и поведение [Pure](https://github.com/sindresorhus/pure).
-![Screenshot of Pure preset](/presets/img/pure-preset.png)
+![Скриншот пресета Pure](/presets/img/pure-preset.png)
### Конфигурация
@@ -12,6 +12,6 @@ This preset emulates the look and behavior of [Pure](https://github.com/sindreso
starship preset pure-preset -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/pure-preset.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/pure-preset.toml)
<<< @/.vuepress/public/presets/toml/pure-preset.toml
diff --git a/docs/ru-RU/presets/tokyo-night.md b/docs/ru-RU/presets/tokyo-night.md
index 0735f82f..ba0c0fb5 100644
--- a/docs/ru-RU/presets/tokyo-night.md
+++ b/docs/ru-RU/presets/tokyo-night.md
@@ -1,10 +1,10 @@
-[Return to Presets](./README.md#pastel-powerline)
+[Вернуться к пресетам](./README.md#pastel-powerline)
-# Tokyo Night Preset
+# Пресет Tokyo Night
-This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
+Этот пресет вдохновлен [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
-![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png)
+![Скриншот пресета Tokyo Night](/presets/img/tokyo-night.png)
### Обязательные требования
@@ -16,6 +16,6 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
starship preset tokyo-night -o ~/.config/starship.toml
```
-[Click to download TOML](/presets/toml/tokyo-night.toml)
+[Нажмите, чтобы загрузить TOML](/presets/toml/tokyo-night.toml)
<<< @/.vuepress/public/presets/toml/tokyo-night.toml
diff --git a/docs/tr-TR/config/README.md b/docs/tr-TR/config/README.md
index 9ac9e840..6c01d99b 100644
--- a/docs/tr-TR/config/README.md
+++ b/docs/tr-TR/config/README.md
@@ -206,6 +206,13 @@ This is the list of prompt-wide configuration options.
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Example
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Options
| Option | Default | Description |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Table of region aliases to display in addition to the AWS name. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `stil` | `'bold yellow'` | The style for the module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Disables the `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Option | Default | Description |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `stil` | `'bold 149'` | The style for the module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `stil` | `'bold 149'` | The style for the module. |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -671,7 +683,7 @@ The character will tell you whether the last command was successful or not. It c
By default it only changes color. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
-::: warning
+::: uyarı
`vimcmd_symbol` yalnızca cmd, fish ve zsh'de desteklenir. `vimcmd_replace_one_symbol`, `vimcmd_replace_symbol`, and `vimcmd_visual_symbol` are only supported in fish due to [upstream issues with mode detection in zsh](https://github.com/starship/starship/issues/625#issuecomment-732454148).
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `stil` | `'bold orange'` | The style for the module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| Variable | Example | Description |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `stil` | `'bold green'` | The style for the module. |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Option | Default | Description |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ----------------- | ------- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | Default | Description |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `stil` | `"yellow bold"` | The style for the module. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `stil` | `'yellow bold'` | The style for the module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `stil` | `"bold bright-cyan"` | The style for the module. |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `stil` | `'bold bright-cyan'` | The style for the module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | Default | Description |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `stil` | `"bold fg:202"` | The style for the module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `stil` | `'bold fg:202'` | The style for the module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ The `hostname` module shows the system hostname.
### Options
-| Option | Default | Description |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
-| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `stil` | `'bold dimmed green'` | The style for the module. |
-| `disabled` | `false` | Disables the `hostname` module. |
+| Option | Default | Description |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Only show hostname when connected to an SSH session. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | String that the hostname is cut off at, after the first match. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `stil` | `'bold dimmed green'` | The style for the module. |
+| `disabled` | `false` | Disables the `hostname` module. |
### Variables
@@ -2126,7 +2215,9 @@ The `hostname` module shows the system hostname.
*: This variable can only be used as a part of a style string
-### Example
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Options
+::: uyarı
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | Default | Description |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `stil` | `'cyan bold'` | The style for the module. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Variable | Description |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `stil` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| Variable | Example | Description |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `stil` | `'bold green'` | The style for the module. |
| `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. |
+| `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
@@ -2890,8 +3021,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Option | Default | Description |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `stil` | `"bold white"` | The style for the module. |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `stil` | `'bold white'` | The style for the module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `stil` | `'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 |
+| `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 |
@@ -3562,22 +3693,23 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
### Options
-| Option | Default | Description |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `stil` | `'white bold'` | The style for the module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | Default | Description |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `stil` | `'white bold'` | The style for the module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `stil` | `"bold blue"` | The style for the module. |
+| `stil` | `'bold blue'` | The style for the module. |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- The current directory contains a `template.typ` file
+- The current directory contains any `*.typ` file
+
+### Options
+
+| Option | Default | Description |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `stil` | `'bold #0093A7'` | The style for the module. |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## Username
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
diff --git a/docs/tr-TR/guide/README.md b/docs/tr-TR/guide/README.md
index a333bb59..f7ddcd9d 100644
--- a/docs/tr-TR/guide/README.md
+++ b/docs/tr-TR/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="@StarshipPrompt'u Twitter'da takip edin"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
@@ -288,7 +292,7 @@ eval "$(starship init bash)"
Cmd
-Cmd ıle beraber [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) kullanmalısınız. `%LocalAppData%\clink\starship.lua` dosyasını belirtilen dizinde aşağıdaki kod içeriği olacak şekilde oluşturun:
+Cmd ile beraber [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) kullanmalısınız. `%LocalAppData%\clink\starship.lua` dosyasını belirtilen dizinde aşağıdaki kod içeriği olacak şekilde oluşturun:
```lua
load(io.popen('starship init cmd'):read("*a"))()
diff --git a/docs/tr-TR/presets/README.md b/docs/tr-TR/presets/README.md
index 79d72c95..1c20e038 100644
--- a/docs/tr-TR/presets/README.md
+++ b/docs/tr-TR/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/tr-TR/presets/gruvbox-rainbow.md b/docs/tr-TR/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..73c65357
--- /dev/null
+++ b/docs/tr-TR/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Ön koşullar
+
+- Terminalinizde bir [Nerd Font](https://www.nerdfonts.com/) yüklü ve etkin olmalı
+
+### Yapılandırma
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/tr-TR/presets/jetpack.md b/docs/tr-TR/presets/jetpack.md
new file mode 100644
index 00000000..ed7cbbbd
--- /dev/null
+++ b/docs/tr-TR/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Yapılandırma
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/uk-UA/config/README.md b/docs/uk-UA/config/README.md
index c41de035..179a76ee 100644
--- a/docs/uk-UA/config/README.md
+++ b/docs/uk-UA/config/README.md
@@ -206,6 +206,13 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
| `add_newline` | `true` | Вставити порожній рядок між командними рядками в оболонці. |
| `palette` | `''` | Встановлює кольорову палітру використовуючи `palettes`. |
| `palettes` | `{}` | Колекція кольорових палітр, для призначення [кольорів](/advanced-config/#style-strings) до назв визначених користувачем. Зверніть увагу, що кольорові палітри не можуть посилатися на їх власні визначення кольору. |
+| `follow_symlinks` | `true` | Перевіряти символічні посилання чи вони посилаються на теки; використовується в таких модулях як git. |
+
+::: tip
+
+Якщо у вас є символічні посилання не мережеві файлові системи, зважте на встановлення `follow_symlink` у `false`.
+
+:::
### Приклад
@@ -242,7 +249,7 @@ mustard = '#af8700'
```toml
format = '$all'
-# Є тотожним
+# Which is equivalent to
format = """
$username\
$hostname\
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ format = '$all$directory$character'
Під час використання [saml2aws](https://github.com/Versent/saml2aws) інформація про закінчення терміну дії, отримана з `~/.aws/credentials`, повертається до ключа `x_security_token_expires`.
+Під час використання [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) профіль читається зі змінної `AWS_SSO_PROFILE`.
+
### Параметри
| Параметр | Стандартно | Опис |
@@ -360,7 +372,7 @@ format = '$all$directory$character'
| `region_aliases` | `{}` | Таблиця псевдонімів регіону для показу на додачу до назви AWS. |
| `profile_aliases` | `{}` | Таблиця псевдонімів профілю для показу на додачу до назви AWS. |
| `style` | `'bold yellow'` | Стиль модуля. |
-| `expiration_symbol` | `X` | Символ, який показується, коли закінчився термін дії тимчасових облікових даних. |
+| `expiration_symbol` | `'X'` | Символ, який показується, коли закінчився термін дії тимчасових облікових даних. |
| `disabled` | `false` | Вимикає модуль `AWS`. |
| `force_display` | `false` | Якщо `true`, інформація показується, навіть якщо `credentials`, `credential_process` або `sso_start_url` не вказано. |
@@ -620,17 +632,17 @@ format = 'via [🍔 $version](bold green) '
### Параметри
-| Параметр | Стандартно | Опис |
-| ------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | Формат рядка модуля. |
-| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
-| `symbol` | `'C '` | Символ, який знаходиться перед інформацією про компілятор |
-| `detect_extensions` | `['c', 'h']` | Які розширення повинні запускати цей модуль. |
-| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
-| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | Як виявити компілятор |
-| `style` | `'bold 149'` | Стиль модуля. |
-| `disabled` | `false` | Вимикає модуль `c`. |
+| Параметр | Стандартно | Опис |
+| ------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | Формат рядка модуля. |
+| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
+| `symbol` | `'C '` | Символ, який знаходиться перед інформацією про компілятор |
+| `detect_extensions` | `['c', 'h']` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
+| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | Як виявити компілятор |
+| `style` | `'bold 149'` | Стиль модуля. |
+| `disabled` | `false` | Вимикає модуль `c`. |
### Змінні
@@ -643,7 +655,7 @@ format = 'via [🍔 $version](bold green) '
NB `версія` не має стандартного формату.
-### Commands
+### Команди
Параметр `commands` отримує список команд для визначення версії та назви компілятора.
@@ -673,7 +685,7 @@ format = 'via [$name $version]($style)'
::: warning
-`vimcmd_symbol` працює лише з cmd, fish та zsh. `vimcmd_replace_one_symbol`, `vimcmd_replace_symbol`, and `vimcmd_visual_symbol` працює лише з fish через [проблемою визначення режиму роботи в zsh](https://github.com/starship/starship/issues/625#issuecomment-732454148).
+`vimcmd_symbol` працює лише з cmd, fish та zsh. `vimcmd_replace_one_symbol`, `vimcmd_replace_symbol`, and `vimcmd_visual_symbol` працює лише з fish через [проблему визначення режиму роботи в zsh](https://github.com/starship/starship/issues/625#issuecomment-732454148).
:::
@@ -789,15 +801,15 @@ vimcmd_symbol = '[V](bold green) '
## Command Duration – час виконання
-Модуль `cmd_duration` показує, скільки часу виконувалась остання команда. Модуль буде показаний лише в тому випадку, якщо на виконання команди пішло понад дві секунди або більше, ніж значення змінної `min_time`, якщо воно задане.
+Модуль `cmd_duration` показує, скільки часу виконувалась остання команда. Модуль буде показаний лише в тому випадку, якщо на виконання команди пішло понад дві секунди або більше, ніж значення змінної `min_time`, якщо воно задане.
::: warning Не вмикайте DEBUG trap в Bash
-Якщо ви запускаєте Starship у `bash`, не вмикайте `DEBUG` trap після запуску `eval $(starship init $0)`, або цей модуль **** не працюватиме.
+Якщо ви запускаєте Starship у `bash`, не вмикайте `DEBUG trap` після запуску `eval $(starship init $0)`, бо цей модуль **не працюватиме**.
:::
-Користувачі Bash, яким потрібна функція preexec, можуть використовувати [фреймворк bash_preexec від rcaloras](https://github.com/rcaloras/bash-preexec). Просто визначте масиви `preexec_function` і `precmd_functions` перед запуском `eval $(starship init $0)`, а потім продовжуй як зазвичай.
+Користувачі Bash, яким потрібна функція preexec, можуть використовувати [фреймворк bash_preexec від rcaloras](https://github.com/rcaloras/bash-preexec). Просто визначте масиви `preexec_function` і `precmd_functions` перед запуском `eval $(starship init $0)`, а потім продовжуйте як зазвичай.
### Параметри
@@ -837,7 +849,7 @@ format = 'underwent [$duration](bold yellow)'
::: tip
-Це не призводить до придушення власного модифікатора командного рядка в conda. Можливо, вам доведеться виконати `conda config --set changeps1 False`.
+Це не призводить до вимикання власного модифікатора командного рядка в conda. Можливо, вам доведеться виконати `conda config --set changeps1 False`.
:::
@@ -944,7 +956,7 @@ format = 'via [✨ $version](bold blue) '
## Daml
-Модуль `daml` показує поточну версію SDK [Daml](https://www.digitalasset.com/developers), коли ви перебуваєте в кореневій теці проєкту Daml. `sdk-version` у файлі `daml.yaml` буде використовуватись, якщо значення не буде перевизначене змінною оточення `DAML_SDK_VERSION`. Типово, модуль показується, якщо виконується будь-яка з наступних умов:
+Модуль `daml` показує поточну версію SDK <1">Daml, коли ви перебуваєте в кореневій теці проєкту Daml. `sdk-version` у файлі `daml.yaml` буде використовуватись, якщо значення не буде перевизначене змінною оточення `DAML_SDK_VERSION`. Типово, модуль показується, якщо виконується будь-яка з наступних умов:
- Поточна тека містить файл `daml.yaml`
@@ -1058,11 +1070,11 @@ format = 'via [🦕 $version](green bold) '
## Directory
-Модуль `directory` показує шлях до поточної теки, урізаючи його до трьох останніх батьківських тек. Шлях до теки також буде скорочений до кореня git-репозиторію, якому ви перебуваєте.
+Модуль `directory` показує шлях до поточної теки, урізаючи його до трьох останніх батьківських тек. Шлях до теки також буде скорочений до кореня git-репозиторію, в якому ви перебуваєте.
Якщо використовується параметр `fish_style_pwd_dir_length`, замість того, щоб приховувати скорочений шлях, ви побачите скорочену назву кожної теки в залежності від числа, яке ви вказали для цього параметра.
-Наприклад, маємо `~/Dev/Nix/nixpkgs/pkgs` де `nixpkgs` є коренем репозиторію, а параметр — `1`. Ви побачите `~/D/N/nixpkgs/pkgs`, тоді як до цього було `nixpkgs/pkg`.
+Наприклад, маємо `~/Dev/Nix/nixpkgs/pkgs` де `nixpkgs` є коренем репозиторію, а параметр — `1`. Ви побачите `~/D/N/nixpkgs/pkgs`, тоді як до цього було `nixpkgs/pkgs`.
### Параметри
@@ -1091,7 +1103,7 @@ format = 'via [🦕 $version](green bold) '
| `fish_style_pwd_dir_length` | `0` | Кількість символів, які використовуються при застосуванні логіки шляху fish shell pwd. |
| `use_logical_path` | `true` | Якщо `true` показувати логічний шлях оболонки через `PWD` або `--logical-path`. Якщо `false` – показувати шлях фізичної файлової системи з розвʼязанням шляхів для символічних посилань. |
-`substitutions` дозволяє визначити довільні заміни літер рядків, що зустрічаються в шляху, наприклад, довга префікси мережа або теки розробки (в Java). Зауважте, що це відключить стиль fish у PWD.
+`substitutions` дозволяє визначити довільні заміни літер рядків, що зустрічаються в шляху, наприклад, довгі префікси мережі або теки розробки (в Java). Зауважте, що це відключить стиль fish у PWD.
```toml
[directory.substitutions]
@@ -1099,7 +1111,7 @@ format = 'via [🦕 $version](green bold) '
'src/com/long/java/path' = 'mypath'
```
-`fish_style_pwd_dir_length` взаємодіє зі стандартними опціями скорочення, по-перше, що може бути дивним, якщо значення не нуль, замість цього будуть показуватись компоненти шляху, які звичайно скорочені, зі вказаною кількістю символів. Наприклад, шлях `/built/this/on/on/rock/and/roll`, який зазвичай показуватиметься як `rock/and/roll`, буде показаний як `/b/t/c/o/rock/and/roll` з `fish_style_pwd_dir_length = 1` — шлях компонентів, які зазвичай вилучаються, показуються одним символом. Для `fish_style_pwd_dir_length = 2` це буде `/bu/th/ci/on/rock/and/roll`.
+`fish_style_pwd_dir_length` взаємодіє зі стандартними опціями скорочення, по-перше, що може бути дивним, якщо значення не нуль, замість цього будуть показуватись компоненти шляху, які звичайно скорочені, зі вказаною кількістю символів. Наприклад, шлях `/built/this/city/on/rock/and/roll`, який зазвичай показуватиметься як `rock/and/roll`, буде показаний як `/b/t/c/o/rock/and/roll` з `fish_style_pwd_dir_length = 1` — шлях компонентів, які зазвичай вилучаються, показуються одним символом. Для `fish_style_pwd_dir_length = 2` це буде `/bu/th/ci/on/rock/and/roll`.
@@ -1137,9 +1149,50 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+Модуль `direnv` показує статус rc-файла якщо він існує. Статус включає: шлях до файлу rc, чи він завантажений та, чи `direnv` дозволяє його використання.
+
+### Параметри
+
+| Параметр | Стандартно | Опис |
+| ------------------- | -------------------------------------- | ------------------------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | Формат модуля. |
+| `symbol` | `'direnv '` | Символ, що показується перед direnv context. |
+| `style` | `'bold orange'` | Стиль модуля. |
+| `disabled` | `true` | Вимикає модуль `direnv`. |
+| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `['.envrc']` | Які імена файлів мають запускати цей модуль. |
+| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
+| `allowed_msg` | `'allowed'` | Повідомлення, що показується коли використання rc-файлу дозволене. |
+| `denied_msg` | `'denied'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
+| `loaded_msg` | `'loaded'` | Повідомлення, що показується коли rc-файл завантажений. |
+| `unloaded_msg` | `'not loaded'` | Повідомлення, що показується коли rc-файл не завантажений. |
+
+### Змінні
+
+| Змінна | Приклад | Опис |
+| --------- | ------------------- | ----------------------------------------- |
+| loaded | `loaded` | Чи завантажений rc-файл. |
+| allowed | `denied` | Чи дозволене використання rc-файлу. |
+| rc_path | `/home/test/.envrc` | Шлях до rc-файлу. |
+| symbol | | Віддзеркалює значення параметра `symbol`. |
+| style\* | `red bold` | Віддзеркалює значення параметра `style`. |
+
+*: Ця змінна може бути використана лише як частина стилю рядка
+
+### Приклад
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## Docker Context
-Модуль `docker_context` показує поточний [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) якщо його не встановлено у `default`, або якщо `DOCKER_MACHINE_NAME` `DOCKER_HOST` або `DOCKER_CONTEXT` змінні середовища встановлені (оскільки вони призначені для перевизначення контексту).
+Модуль `docker_context` показує поточний [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) якщо його не встановлено у `default`, або якщо змінні середовища `DOCKER_MACHINE_NAME`, `DOCKER_HOST` або `DOCKER_CONTEXT` встановлені (оскільки вони призначені для перевизначення контексту).
### Параметри
@@ -1177,7 +1230,7 @@ format = 'via [🐋 $context](blue bold)'
Модуль `dotnet` показує відповідну версію [.NET Core SDK](https://dotnet.microsoft.com/) для поточної теки. Якщо SDK закріплена в поточній теці, показується закріплена версія. В іншому випадку модуль покаже останню встановлену версію SDK.
-Стандартно модуль буде показаний в командному рядку, коли один чи більше з наступних файлів є в теці:
+Стандартно модуль буде показаний в командному рядку, коли в теці присутні один чи більше наступних файлів:
- `global.json`
- `project.json`
@@ -1190,9 +1243,9 @@ format = 'via [🐋 $context](blue bold)'
Вам також знадобиться .NET Core SDK, встановлений для того, щоб використовувати його правильно.
-Всередині, цей модуль використовує власний механізм для виявлення версій. Як правило, він удвічі швидший ніж запуск `dotnet --version`, але він може показувати некоректну версію, якщо ваш проєкт .NET має не звичайне розташування тек. Якщо точність важливіша за швидкість, ви можете вимкнути механізм встановивши `heuristic = false` в налаштуваннях модуля.
+Всередині, цей модуль використовує власний механізм для виявлення версій. Як правило, він удвічі швидший ніж запуск `dotnet --version`, але він може показувати некоректну версію, якщо ваш проєкт .NET має незвичайне розташування тек. Якщо точність важливіша за швидкість, ви можете вимкнути механізм встановивши `heuristic = false` в налаштуваннях модуля.
-Модуль також показуватиме Target Framework Monamework ([https://docs.microsoft. om/en-us/dotnet/standard/frameworks#supported-target-frameworks](https://docs.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-frameworks)), коли у поточній теці є файл `.csproj`.
+Модуль також показуватиме Target Framework Monamework (), коли у поточній теці є файл `.csproj`.
### Параметри
@@ -1232,7 +1285,7 @@ heuristic = false
## Elixir
-Модуль `elixir` показує поточну встановлену версію [Elixir](https://elixir-lang.org/) та [Erlang/OTP](https://erlang.org/doc/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
+Модуль `elixir` показує поточну встановлену версію [Elixir](https://elixir-lang.org/) та <2">Erlang/OTP. Типово, модуль показується, якщо виконується будь-яка з наступних умов:
- Поточна тека містить файл `mix.exs`.
@@ -1320,13 +1373,13 @@ format = 'via [ $version](cyan bold) '
::: tip
-Порядок в якому модуль env_var показується може встановлюватись індивідуально додавання `${env_var.foo}` в `format` верхнього рівня (через те, що використовуються крапки, потрібно використовувати `${...}`). Типово, модуль `env_var` покаже усі модулі env_var, в тому порядку того, як вони були визначені.
+Порядок в якому модуль env_var показується може встановлюватись індивідуально додаванням `${env_var.foo}` в `format` верхнього рівня (через те, що використовуються крапки, потрібно використовувати `${...}`). Типово, модуль `env_var` покаже усі модулі env_var, в тому порядку, в якому вони були визначені.
:::
::: tip
-Кілька змінних оточення можуть бути показані за допомоги `.`. (див. приклад) Якщо опції конфігурації `variable` не встановлено, модуль показуватиме значення змінної після символу `.` під назвою.
+Кілька змінних оточення можуть бути показані за допомоги `.`. (див. приклад) Якщо параметр конфігурації `variable` не встановлено, модуль показуватиме значення змінної під назвою тексту після символу `.`.
Приклад: наступна конфігурація показуватиме значення змінної середовища USER
@@ -1435,7 +1488,7 @@ format = 'via [e $version](bold red) '
| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
| `symbol` | `'🧅 '` | Символ, який знаходиться перед версією fennel. |
| `style` | `'bold green'` | Стиль модуля. |
-| `detect_extensions` | `[fnl]` | Які розширення повинні запускати цей модуль. |
+| `detect_extensions` | `['fnl']` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | Які теки мають запускати цей модуль. |
| `disabled` | `false` | Вимикає модуль `fennel`. |
@@ -1524,6 +1577,41 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+Модуль `fossil_metrics` покаже кількість доданих та видалених рядків у поточній теці. Потрібна версія Fossil не нижче v2.14 (2021-01-20).
+
+### Параметри
+
+| Параметр | Стандартно | Опис |
+| -------------------- | ------------------------------------------------------------ | -------------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | Формат модуля. |
+| `added_style` | `'bold green'` | Стиль для показу кількості доданих рядків. |
+| `deleted_style` | `'bold red'` | Стиль для показу кількості видалених рядків. |
+| `only_nonzero_diffs` | `true` | Показувати стан лише для змінених елементів. |
+| `disabled` | `true` | Вимикає модуль `fossil_metrics`. |
+
+### Змінні
+
+| Змінна | Приклад | Опис |
+| ----------------- | ------- | ----------------------------------------------- |
+| added | `1` | Поточна кількість доданих рядків |
+| deleted | `2` | Поточна кількість видалених рядків |
+| added_style\* | | Віддзеркалює значення параметра `added_style` |
+| deleted_style\* | | Віддзеркалює значення параметра `deleted_style` |
+
+*: Ця змінна може бути використана лише як частина стилю рядка
+
+### Приклад
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
Модуль `gcloud` показує поточну конфігурацію [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. Він базується на файлі `~/.config/gcloud/active_config` та на `~/.config/gcloud/configurations/config_{CONFIG NAME}` і на змінній оточення `CLOUDSDK_CONFIG`.
@@ -1681,7 +1769,7 @@ tag_symbol = '🔖 '
## Git State
-Модуль `git_state` показується в теках, які є частиною репозиторію git, під час виконання операцій на зразок _REBASING_, _BISECTING1 > тощо. Інформація про прогрес операції (наприклад, REBASING 3/10), також буде показана якщо вона доступна.
+Модуль `git_state` показується в теках, які є частиною репозиторію git, під час виконання операцій на зразок _REBASING_, _BISECTING_ тощо. Якщо є інформація про прогрес (наприклад, REBASING 3/10), ця інформація також буде показана.
### Параметри
@@ -1725,7 +1813,7 @@ cherry_pick = '[🍒 PICKING](bold red)'
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
@@ -1767,7 +1855,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
::: tip
-Модуль Git Status дуже повільно працює в теках Windows у середовищі WSL (наприклад, під `/mnt/c/`). Ви можете вимкнути модуль або використати `windows_starship` для використання Windows-native Starship `git_status` для цих шляхів.
+Модуль Git Status дуже повільно працює в теках Windows у середовищі WSL (наприклад, під `/mnt/c/`). Ви можете вимкнути модуль або використати `windows_starship` для використання Windows-версії Starship для тримання `git_status` для цих шляхів.
:::
@@ -1931,8 +2019,8 @@ format = 'via [$symbol($version )($mod_version )]($style)'
| Параметр | Стандартно | Опис |
| ---------- | -------------------------- | ----------------------------------------------- |
| `format` | `'via [$symbol]($style) '` | Формат модуля. |
-| `symbol` | `"🐃 "` | Формат рядка, що представляє символ guix-shell. |
-| `style` | `"yellow bold"` | Стиль модуля. |
+| `symbol` | `'🐃 '` | Формат рядка, що представляє символ guix-shell. |
+| `style` | `'yellow bold'` | Стиль модуля. |
| `disabled` | `false` | Вимикає модуль `guix_shell`. |
### Змінні
@@ -1969,13 +2057,13 @@ format = 'via [🐂](yellow bold) '
| Параметр | Стандартно | Опис |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
-| `version_format` | `"v${raw}"` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
-| `symbol` | `"🅶 "` | Формат рядка, що представляє символ Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Які розширення повинні запускати цей модуль. |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
+| `symbol` | `'🅶 '` | Формат рядка, що представляє символ Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
-| `detect_folders` | `["gradle"]` | В яких теках цей модуль має запускатись. |
-| `style` | `"bold bright-cyan"` | Стиль модуля. |
+| `detect_folders` | `['gradle']` | В яких теках цей модуль має запускатись. |
+| `style` | `'bold bright-cyan'` | Стиль модуля. |
| `disabled` | `false` | Вимикає модуль `gradle`. |
| `recursive` | `false` | Дозволяє рекурсивний пошук теки `gradle`. |
@@ -2034,13 +2122,13 @@ format = 'via [🐂](yellow bold) '
| Параметр | Стандартно | Опис |
| ------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
-| `version_format` | `"v${raw}"` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Які розширення повинні запускати цей модуль. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Які імена файлів мають запускати цей модуль. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Які теки мають запускати цей модуль. |
-| `symbol` | `"⌘ "` | Формат рядка, що представляє символ Helm. |
-| `style` | `"bold fg:202"` | Стиль модуля. |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Які імена файлів мають запускати цей модуль. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Які теки мають запускати цей модуль. |
+| `symbol` | `'⌘ '` | Формат рядка, що представляє символ Helm. |
+| `style` | `'bold fg:202'` | Стиль модуля. |
| `disabled` | `false` | Вимикає модуль `haxe`. |
### Змінні
@@ -2107,14 +2195,15 @@ format = 'via [⎈ $version](bold white) '
### Параметри
-| Параметр | Стандартно | Опис |
-| ------------ | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | Показувати назву хоста лише при підключенні через SSH. |
-| `ssh_symbol` | `'🌐 '` | Формат рядка для показу символу підключення до SSH-сеансу. |
-| `trim_at` | `'.'` | Рядок, у якому назва хоста буде обрізано після першого збігу. `'.'` зупиниться після першої точки. `''` вимкне будь-яке скорочення |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | Формат модуля. |
-| `style` | `'bold dimmed green'` | Стиль модуля. |
-| `disabled` | `false` | Вимикає модуль `hostname`. |
+| Параметр | Стандартно | Опис |
+| ----------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Показувати назву хоста лише при підключенні через SSH. |
+| `ssh_symbol` | `'🌐 '` | Формат рядка для показу символу підключення до SSH-сеансу. |
+| `trim_at` | `'.'` | Рядок, у якому назва хоста буде обрізано після першого збігу. `'.'` зупиниться після першої точки. `''` вимкне будь-яке скорочення. |
+| `detect_env_vars` | `[]` | Які змінні середовища повинні запускати цей модуль. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | Формат модуля. |
+| `style` | `'bold dimmed green'` | Стиль модуля. |
+| `disabled` | `false` | Вимикає модуль `hostname`. |
### Змінні
@@ -2126,7 +2215,9 @@ format = 'via [⎈ $version](bold white) '
*: Ця змінна може бути використана лише як частина стилю рядка
-### Приклад
+### Приклади
+
+#### Завжди показувати hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Приховувати hostname для віддалених сеансів tmux
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
Модуль `java` показує поточну встановлену версію [Java](https://www.oracle.com/java/). Типово, модуль показується, якщо виконується будь-яка з наступних умов:
@@ -2211,7 +2313,7 @@ symbol = '🌟 '
| `style` | `'bold blue'` | Стиль модуля. |
| `disabled` | `false` | Вимикає модуль `jobs`. |
-*: Цей параметр застарів, використовуйте параметри `number_threshold` і `symbol_threshold` замість цього.
+*: Цей параметр застарів, використовуйте параметри `number_threshold` та `symbol_threshold` замість цього.
### Змінні
@@ -2327,7 +2429,7 @@ kotlin_binary = 'kotlinc'
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
Коли модуль увімкнено, він завжди буде активним, якщо будь-який з параметрів `detect_extensions`, `detect_files` або `detect_folders` встановлені, модуль буде активним тільки в теках, що відповідають умовам.
@@ -2335,17 +2437,39 @@ kotlin_binary = 'kotlinc'
### Параметри
-| Параметр | Стандартно | Опис |
-| ------------------- | ---------------------------------------------------- | -------------------------------------------- |
-| `symbol` | `'☸ '` | Символ, що показується перед Кластером. |
-| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | Формат модуля. |
-| `style` | `'cyan bold'` | Стиль модуля. |
-| `context_aliases` | `{}` | Таблиця контекстних псевдонімів. |
-| `user_aliases` | `{}` | Таблиця псевдонімів користувача. |
-| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
-| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
-| `detect_folders` | `[]` | Які теки мають запускати цей модуль. |
-| `disabled` | `true` | Вимикає модуль `kubernetes`. |
+::: warning
+
+Параметри `context_aliases` та `user_aliases` є застарілими. Використовуйте `contexts` та, відповідно, `context_alias` та `user_alias`, натомість.
+
+:::
+
+| Параметр | Стандартно | Опис |
+| ------------------- | ---------------------------------------------------- | --------------------------------------------------------- |
+| `symbol` | `'☸ '` | Символ, що показується перед Кластером. |
+| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | Формат модуля. |
+| `style` | `'cyan bold'` | Стиль модуля. |
+| `context_aliases`* | `{}` | Таблиця контекстних псевдонімів. |
+| `user_aliases`* | `{}` | Таблиця псевдонімів користувача. |
+| `detect_extensions` | `[]` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
+| `detect_folders` | `[]` | Які теки мають запускати цей модуль. |
+| `contexts` | `[]` | Кастомізовані стилі та символи для конкретних контекстів. |
+| `disabled` | `true` | Вимикає модуль `kubernetes`. |
+
+*: Цей параметр є застарілими, додайте `contexts`, відповідно, `context_alias` та `user_alias`, натомість.
+
+Для налаштування стилю модуля для конкретних середовищ використовуйте наступну конфігурацію як частину списку `contexts`:
+
+| Змінна | Опис |
+| ----------------- | --------------------------------------------------------------------------------------------------------- |
+| `context_pattern` | **Обовʼязково** Регулярний вираз, що повертає збіг з назвою поточного контексту Kubernetes. |
+| `user_pattern` | Регулярний вираз, що відповідає поточному імені користувача Kubernetes. |
+| `context_alias` | Псевдонім контексту для показу замість назви повного контексту. |
+| `user_alias` | Псевдонім користувача для показу замість повного імені користувача. |
+| `style` | Стиль для модуля, при використанні цього контексту. Якщо не вказано, використовуватиметься стиль модуля. |
+| `symbol` | Символ для модуля при використанні цього контексту. Якщо не вказано, використовуватиметься символ модуля. |
+
+Зверніть увагу, що всі регулярні вирази виглядають як `^$` і мають збігатись з усім рядком. Регулярний вираз `*_pattern` може мати групи, які можуть зазначатись у відповідних аліасах як `$name` та `$N` (дивіться приклад нижче та [документації rust Regex::replace()](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
### Змінні
@@ -2368,13 +2492,9 @@ kotlin_binary = 'kotlinc'
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Показує модуль лише у теках, що містять файл `k8s`.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Регулярні вирази
+#### Kubernetes Context спец налаштування
-Крім простого псевдоніма, `context_aliases` і `user_aliases` також підтримують розширене зіставлення та перейменування за допомогою регулярних виразів.
-
-Регулярний вираз має збігатися в усьому kube context, на групи захоплення можна посилатися за допомогою `$name` і `$N` при заміні. Трохи більше пояснень в документації [regex crate](https://docs.rs/regex/1.5.4/regex/struct.Regex.html#method.replace).
-
-Довгі автоматично згенеровані назви кластерів можуть бути визначені та скорочені за допомогою регулярних виразів:
+Параметр `contexts` використовується для налаштування того, як виглядає назва контексту Kubernetes (стиль та символ), якщо назва збігається з визначеною регулярним виразом.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
-# 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-$var_cluster'
+[[kubernetes.contexts]]
+# стиль "bold red" + типовий символ, коли назва поточного контексту Kubernetes збігається з "production" *та* поточний користувач
+# збігається з "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# стиль "green" + інший символ, коли назва поточного контексту Kubernetes містить openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Використання груп
+# Контекст з GKE, AWS та інших хмарних постачальників зазвичай має додаткову інформацію, наприклад регіон/зону.
+# Наступний елемент збігається з форматом GKE format (`gke_projectname_zone_cluster-name`)
+# та змінює кожний відповідний kube context на більш зрозумілий формат (`gke-cluster-name`):
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2509,7 +2640,7 @@ format = 'via [🌕 $version](bold blue) '
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
@@ -2730,7 +2861,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| `detect_folders` | `['node_modules']` | В яких теках цей модуль має запускатись. |
| `style` | `'bold green'` | Стиль модуля. |
| `disabled` | `false` | Вимикає модуль `nodejs`. |
-| `not_capable_style` | `bold red` | Стиль для модуля, коли версія рушія у package.json не відповідає версії Node.js. |
+| `not_capable_style` | `'bold red'` | Стиль для модуля, коли версія рушія у package.json не відповідає версії Node.js. |
### Змінні
@@ -2882,7 +3013,7 @@ symbol = '☁️ '
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
@@ -2890,12 +3021,12 @@ symbol = '☁️ '
| Параметр | Стандартно | Опис |
| ---------- | --------------------- | ------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | Формат модуля. |
-| `style` | `"bold white"` | Стиль модуля. |
+| `format` | `'[$symbol]($style)'` | Формат модуля. |
+| `style` | `'bold white'` | Стиль модуля. |
| `disabled` | `true` | Вимикає модуль `os`. |
| `symbols` | | Таблиця символів для кожної операційної системи. |
-`symbols` дозволяє визначити довільні символи для кожного типу операційної системи. Типи операційних систем не визначені вашою конфігурацією, використовують стандартну таблицю символів, дивись нижче. На цю мить усі операційні системи, що підтримуються модулем, перераховані нижче. Якщо ви бажаєте додати операційну систему, то можете створити [запит на функцію](https://github.com/starship/starship/issues/new/choose).
+`symbols` дозволяє визначити довільні символи для кожного типу операційної системи. Типи операційних систем не визначені вашою конфігурацією, використовують стандартну таблицю символів, дивись нижче. На цю мить усі операційні системи, що підтримуються модулем, перераховані нижче. Якщо ви бажаєте додати операційну систему, то можете створити [відповідний запит](https://github.com/starship/starship/issues/new/choose).
```toml
# Це таблиця стандартних символів.
@@ -2974,7 +3105,7 @@ Arch = "Arch is the best! "
## Package Version
-Модуль `package` показується, коли поточна тека є сховищем для пакунка, і показує його поточну версію. Наразі модуль підтримує такі пакунки: `npm`, `nimble`, `cargo`, `poetry`, `python`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards`, `daml` and `dart`.
+Модуль `package` показується, коли поточна тека є сховищем для пакунка, і показує його поточну версію. Наразі модуль підтримує такі пакунки: `npm`, `nimble`, `cargo`, `poetry`, `python`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards`, `daml` та `dart`.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) — версія пакунка `npm` отримується з `package.json` з поточної теки
- [**Cargo**](https://doc.rust-lang.org/cargo/) — версія пакунка `cargo` отримується з `Cargo.toml` з поточної теки
@@ -3127,7 +3258,7 @@ format = 'via [🔹 $version](147 bold) '
::: tip
-За замовчуванням, версія Pulumi не показана, тому що отримання версії потребує на порядок більше часу, ніж потрібно іншим плагінам (близько 70мc). Якщо ви все ще хочете увімкнути показ версії, [дивіться приклад нижче](#with-pulumi-version).
+Стандартно версія Pulumi не показується, через те що для цього потрібно набагато більше часу ніж на завантаження більшості втулків (~70ms). Якщо ви все ще хочете увімкнути показ версії, [дивіться приклад нижче](#with-pulumi-version).
:::
@@ -3245,7 +3376,7 @@ format = 'via [$symbol$version](bold white)'
| `symbol` | `'🐍 '` | Формат рядка, що представляє символ Python |
| `style` | `'yellow bold'` | Стиль модуля. |
| `pyenv_version_name` | `false` | Використовувати pyenv для отримання версії Python |
-| `pyenv_prefix` | `pyenv` | Префікс перед версією pyenv, показується якщо pyenv використовується |
+| `pyenv_prefix` | `'pyenv'` | Префікс перед версією pyenv, показується якщо pyenv використовується |
| `python_binary` | `['python', 'python3', 'python2']` | Налаштовує бінарні файли python, який Starship буде використовувати для отримання версії. |
| `detect_extensions` | `['py']` | Які розширення повинні запускати цей модуль |
| `detect_files` | `['.python-version', 'Pipfile', '__init__.py', 'pyproject.toml', 'requirements.txt', 'setup.py', 'tox.ini']` | Назви файлів, які активують модуль |
@@ -3254,7 +3385,7 @@ format = 'via [$symbol$version](bold white)'
::: tip
-Змінна `python_binary` приймає як рядок, так список рядків. Starship спробує запустити кожен бінарний файл, поки це не дасть результат. Зауважте, що можна змінити двійковий файл, який використовується Starship, щоб отримати версію Python, а не параметрів, які використовуються.
+Змінна `python_binary` приймає як рядок, так і список рядків. Starship спробує запустити кожен бінарний файл, поки це не дасть результат. Зауважте, що можна змінити двійковий файл, який використовується Starship, щоб отримати версію Python, а не параметрів, які використовуються.
Стандартні значення та порядок для `python_binary` було вибрано так, щоб спочатку ідентифікувати версію Python у середовищах virtualenv/conda (які наразі все ще додають `python`, незалежно від того, чи вказує він на `python3` чи на `python2`). Це може мати побічний ефект: якщо у вас все ще встановлено системний Python 2, він може бути обраний перед будь-яким Python 3 (принаймні в дистрибутивах Linux, які завжди містять символічне посилання `/usr/bin/python` на Python 2). Якщо ви більше не працюєте з Python 2, але не можете видалити системний Python 2, змінивши його на `'python3'`, ви приховаєте будь-яку версію Python 2, див. приклад нижче.
@@ -3284,7 +3415,7 @@ pyenv_version_name = true
# ~/.config/starship.toml
[python]
-# Використання лише двійкового файлу `python3` для отримання версії.
+# Використання лише `python3` для отримання версії.
python_binary = 'python3'
```
@@ -3556,28 +3687,29 @@ symbol = '🌟 '
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
### Параметри
-| Параметр | Стандартно | Опис |
-| ---------------------- | ------------------------- | -------------------------------------------------------------- |
-| `bash_indicator` | `'bsh'` | Формат рядка, що використовується для bash. |
-| `fish_indicator` | `'fsh'` | Формат рядка, що використовується для fish. |
-| `zsh_indicator` | `'zsh'` | Формат рядка, що використовується для zsh. |
-| `powershell_indicator` | `'psh'` | Формат рядка, що використовується для powershell. |
-| `ion_indicator` | `'ion'` | Формат рядка, що використовується для ion. |
-| `elvish_indicator` | `'esh'` | Формат рядка, що використовується для elvish. |
-| `tcsh_indicator` | `'tsh'` | Формат рядка, що використовується для tcsh. |
-| `xonsh_indicator` | `'xsh'` | Формат рядка, що використовується для xonsh. |
-| `cmd_indicator` | `'cmd'` | Формат рядка, що використовується для cmd. |
-| `nu_indicator` | `'nu'` | Формат рядка, що використовується для nu. |
-| `unknown_indicator` | `''` | Типове значення, що буде показане, якщо оболонка не визначена. |
-| `format` | `'[$indicator]($style) '` | Формат модуля. |
-| `style` | `'white bold'` | Стиль модуля. |
-| `disabled` | `true` | Вимикає модуль `shell`. |
+| Параметр | Стандартно | Опис |
+| ---------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------- |
+| `bash_indicator` | `'bsh'` | Формат рядка, що використовується для bash. |
+| `fish_indicator` | `'fsh'` | Формат рядка, що використовується для fish. |
+| `zsh_indicator` | `'zsh'` | Формат рядка, що використовується для zsh. |
+| `powershell_indicator` | `'psh'` | Формат рядка, що використовується для powershell. |
+| `pwsh_indicator` | | Формат рядка, що використовується для pwsh. Типове значення віддзеркалює значення `powershell_indicator`. |
+| `ion_indicator` | `'ion'` | Формат рядка, що використовується для ion. |
+| `elvish_indicator` | `'esh'` | Формат рядка, що використовується для elvish. |
+| `tcsh_indicator` | `'tsh'` | Формат рядка, що використовується для tcsh. |
+| `xonsh_indicator` | `'xsh'` | Формат рядка, що використовується для xonsh. |
+| `cmd_indicator` | `'cmd'` | Формат рядка, що використовується для cmd. |
+| `nu_indicator` | `'nu'` | Формат рядка, що використовується для nu. |
+| `unknown_indicator` | `''` | Типове значення, що буде показане, якщо оболонка не визначена. |
+| `format` | `'[$indicator]($style) '` | Формат модуля. |
+| `style` | `'white bold'` | Стиль модуля. |
+| `disabled` | `true` | Вимикає модуль `shell`. |
### Змінні
@@ -3686,7 +3818,7 @@ format = '[📦 \[$env\]]($style) '
## Solidity
-Модуль `solidity` показує поточну версію [Solidity](https://soliditylang.org/) Модуль буде показано, якщо буде вказано якісь з наступних умов:
+Модуль `solidity` показує поточну версію [Solidity](https://soliditylang.org/). Модуль буде показано, якщо буде виконуються наступні умови:
- Поточна тека містить файл `.sol`
@@ -3694,14 +3826,14 @@ format = '[📦 \[$env\]]($style) '
| Параметр | Стандартно | Опис |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Формат модуля. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
-| `symbol` | `"S "` | Формат рядка, що представляє символ Solidity |
-| `compiler | ["solc"] | Стандартний компілятор Solidity. |
-| `detect_extensions` | `["sol"]` | Які розширення повинні запускати цей модуль. |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
+| `symbol` | `'S '` | Формат рядка, що представляє символ Solidity |
+| `compiler | ['solc'] | Стандартний компілятор Solidity. |
+| `detect_extensions` | `['sol']` | Які розширення повинні запускати цей модуль. |
| `detect_files` | `[]` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
-| `style` | `"bold blue"` | Стиль модуля. |
+| `style` | `'bold blue'` | Стиль модуля. |
| `disabled` | `false` | Вмикає цей модуль. |
### Змінні
@@ -3761,7 +3893,7 @@ format = '[$symbol$environment](dimmed blue) '
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
@@ -3822,7 +3954,7 @@ disabled = false
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
@@ -3969,7 +4101,7 @@ format = '[🏎💨 $workspace]($style) '
::: tip
-За замовчуванням цей модуль вимкнутий. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
+Цей модуль типово є вимкненим. Щоб його увімкнути, встановіть значення параметра `disabled` в `false` у вашому файлі налаштувань.
:::
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+Модуль `typst` показує поточну встановлену версію Typst, що використовується в проєкті.
+
+Типово, модуль показується, якщо виконується будь-яка з наступних умов:
+
+- Поточна тека містить файл `template.typ`
+- Поточна тека містить файл `.typ`
+
+### Параметри
+
+| Параметр | Стандартно | Опис |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Формат модуля. |
+| `version_format` | `'v${raw}'` | Формат версії. Доступні змінні `raw`, `major`, `minor` та `patch` |
+| `symbol` | `'t '` | Формат рядка, що представляє символ Daml |
+| `style` | `'bold #0093A7'` | Стиль модуля. |
+| `detect_extensions` | `['.typ']` | Які розширення повинні запускати цей модуль. |
+| `detect_files` | `['template.typ']` | Які імена файлів мають запускати цей модуль. |
+| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
+| `disabled` | `false` | Вимикає модуль `daml`. |
+
+### Змінні
+
+| Змінна | Приклад | Опис |
+| ------------- | --------- | ------------------------------------------- |
+| version | `v0.9.0` | Версія `typst`, псевдонім для typst_version |
+| typst_version | `default` | Поточна версія Typest |
+| symbol | | Віддзеркалює значення параметра `symbol` |
+| style\* | | Віддзеркалює значення параметра `style` |
+
+*: Ця змінна може бути використана лише як частина стилю рядка
+
## Username
Модуль `username` показує імʼя активного користувача. Модуль показується, якщо виконується будь-яка з наступних умов:
@@ -4204,8 +4369,8 @@ symbol = '⚡️ '
Модулі показуються, якщо виконується будь-яка з наступних умов:
-- Поточна тека містить файл, ім'я якого є в `detect_files`
-- Поточна тека містить теки, ім'я яких вказано в `detect_folders`
+- Поточна тека містить файл, імʼя якого є в `detect_files`
+- Поточна тека містить теки, імʼя яких вказано в `detect_folders`
- Поточна тека містить файл, розширення якого є в `detect_extensions`
- Команда `when` повертає 0
- Поточна операційна система (std::env::consts::OS) збігається з полем `os`, якщо визначено.
@@ -4228,7 +4393,7 @@ symbol = '⚡️ '
:::
-::: warning Вихідні дані команди друкуються без екранування
+::: warning Результати роботи команди виводяться без екранування
Незалежно від результату, який генерує команда, він виводиться в командний рядок у незміненому вигляді. Це означає, що якщо вивід містить спеціальні послідовності, які інтерпретуються оболонкою, вони будуть оброблені та перетворені оболонкою при виводі. Ці спеціальні послідовності є специфічними для оболонки, напр. ви можете написати модуль, який записує послідовності bash, наприклад. `\h`, але цей модуль не працюватиме в оболонці fish або zsh.
@@ -4244,7 +4409,7 @@ symbol = '⚡️ '
| `when` | `false` | Або булеве значення (`true` чи `false`, без лапок) або команди shell, що використовуються як умова для показу модуля. У випадку рядка команди, модуль буде показаний, якщо команда повертає код завершення `0`. |
| `require_repo` | `false` | Якщо `true`, модуль буде показано лише в шляхах, що містять репозиторій (git). Цей параметр сам по собі не є достатньою умовою для показу модуля за відсутності інших варіантів. |
| `shell` | | [Дивіться нижче](#custom-command-shell) |
-| `опис` | `''` | Опис модуля, який показується під час запуску `starship explain`. |
+| `description` | `''` | Опис модуля, який показується під час запуску `starship explain`. |
| `detect_files` | `[]` | Файли, які треба шукати у робочій теці для отримання збігу. |
| `detect_folders` | `[]` | Теки, які треба шукати у робочій теці для отримання збігу. |
| `detect_extensions` | `[]` | Розширення файлів, які треба шукати у робочій теці для отримання збігу. |
@@ -4285,13 +4450,13 @@ shell = ['pwsh', '-Command', '-']
::: warning Переконайтеся, що ваша оболонка завершує процеси правильно
-Якщо ви вказуєте власну команду, переконайтеся, що стандартний Shell, який використовується starship, буде виконувати команді з чистим (graceful) завершенням, за допомогою параметра `shell`.
+Якщо ви вказуєте власну команду, переконайтеся, що стандартний Shell, який використовується starship, буде виконувати команди з чистим (graceful) завершенням, за допомогою параметра `shell`.
Наприклад, PowerShell потребує параметр `-Command` для виконання однорядкової команди. Пропуск цього параметра може призвести до рекурсивного циклу starship, де оболонка може спробувати знову завантажити повний профіль середовища з самим starship і, отже, повторно виконати власну команду, потрапивши в нескінченний цикл.
Параметри, подібні до `-NoProfile` у PowerShell, також рекомендовані для інших оболонок, щоб уникнути додаткового часу завантаження власного профілю під час кожного виклику Starship.
-Наразі реалізовано автоматичне виявлення оболонок і правильне додавання параметрів, але можливо, що охоплено не всі оболонки. [Будь ласка, сповістіть про проблему](https://github.com/starship/starship/issues/new/choose) з подробицями про термінал та конфігурацію автозапуску, якщо ви зіткнулись з таким сценарій.
+Наразі реалізовано автоматичне виявлення оболонок і правильне додавання параметрів, але можливо, що охоплено не всі оболонки. [Будь ласка, сповістіть про проблему](https://github.com/starship/starship/issues/new/choose) з подробицями про термінал та конфігурацію автозапуску, якщо ви зіткнулись з таким сценарієм.
:::
diff --git a/docs/uk-UA/guide/README.md b/docs/uk-UA/guide/README.md
index d93495bb..5782ac00 100644
--- a/docs/uk-UA/guide/README.md
+++ b/docs/uk-UA/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Слідкуйте за @StarshipPrompt на Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
Android
-Встановіть Starship використовуючи будь-який з наступних пакетних менеджерів:
+Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:
| Репозиторій | Команда для встановлення |
| --------------------------------------------------------------------------------- | ------------------------ |
@@ -197,7 +200,7 @@
BSD
-Встановіть Starship використовуючи будь-який з наступних пакетних менеджерів:
+Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:
| Дистрибутив | Репозиторій | Команда для встановлення |
| --------------- | -------------------------------------------------------- | --------------------------------- |
@@ -216,7 +219,7 @@
curl -sS https://starship.rs/install.sh | sh
```
-Як варіант, можете встановити Starship через будь-який з наступних пакетних менеджерів:
+Як варіант, можете встановити Starship скориставшись будь-яким з наступних менеджерів пакунків:
| Дистрибутив | Репозиторій | Команда для встановлення |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
@@ -229,6 +232,7 @@ curl -sS https://starship.rs/install.sh | sh
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
+| openSUSE | [OSS](https://software.opensuse.org/package/starship) | `zypper in starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
@@ -242,7 +246,7 @@ curl -sS https://starship.rs/install.sh | sh
curl -sS https://starship.rs/install.sh | sh
```
-Як варіант, можете встановити Starship скориставшись будь-яким з наступних пакетних менеджерів:
+Як варіант, можете встановити Starship скориставшись будь-яким з наступних менеджерів пакунків:
| Репозиторій | Команда для встановлення |
| -------------------------------------------------------- | --------------------------------------- |
@@ -256,9 +260,9 @@ curl -sS https://starship.rs/install.sh | sh
Windows
-Встановіть останню версію системи за допомогою MSI-інсталятора з розділу [релізів](https://github.com/starship/starship/releases/latest).
+Встановіть останню версію для вашої системи за допомогою MSI-інсталятора з розділу [релізів](https://github.com/starship/starship/releases/latest).
-Встановіть Starship використовуючи будь-який з наступних менеджерів пакетів:
+Встановіть Starship використовуючи будь-який з наступних менеджерів пакунків:
| Репозиторій | Команда для встановлення |
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
@@ -341,7 +345,7 @@ mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
-Додайте наступний рядок наприкінці налаштувань Nushell (знайдіть її за допомоги `$nu.config-path`):
+Додайте наступний рядок наприкінці Вашої конфігурації Nushell (знайдіть її виконавши `$nu.config-path`):
```sh
use ~/.cache/starship/init.nu
@@ -354,7 +358,7 @@ use ~/.cache/starship/init.nu
PowerShell
-Додайте наступний рядок наприкінці Вашої конфігурації PowerShell (знайдіть її виконавши `$PROFILE`):
+Додайте наступний рядок наприкінці вашої конфігурації PowerShell (знайдіть її виконавши команду `$PROFILE`):
```powershell
Invoke-Expression (&starship init powershell)
@@ -397,9 +401,9 @@ eval "$(starship init zsh)"
### Крок 3. Налаштуйте starship
-Запустіть новий екземпляр вашої оболонки і ви побачите новий яскравий командний рядок. Якщо вас влаштовують стандартні налаштування – насолоджуйтесь результатом!
+Запустіть новий екземпляр вашої оболонки і ви побачите новий яскравий командний рядок. Якщо ви задоволені налаштуваннями, насолоджуйтесь!
-Якщо ви бажаєте, ви можете продовжити налаштування Starship:
+Якщо ви бажаєте додатково налаштувати Starship:
- **[Налаштування](https://starship.rs/config/)** – дізнайтесь як налаштувати Starship, щоб підлаштувати командний рядок під свої потреби
@@ -425,7 +429,7 @@ eval "$(starship init zsh)"
## ❤️ Спонсори
-Підтримайте цей проект [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.
+Підтримайте цей проєкт [ставши спонсором](https://github.com/sponsors/starship). Ваше імʼя або логотип показуватимуться тут з посиланням на ваш сайт.
**Підтримувачі**
diff --git a/docs/uk-UA/presets/README.md b/docs/uk-UA/presets/README.md
index 50c8fdba..e1dc7d3c 100644
--- a/docs/uk-UA/presets/README.md
+++ b/docs/uk-UA/presets/README.md
@@ -63,3 +63,9 @@
Цей шаблон створений під враженням від [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Скріншот шаблона Tokyo Night](/presets/img/tokyo-night.png "Натисніть, щоб переглянути шаблон Токіо Night")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+Цей шаблон створено під впливом [Pastel Powerline](./pastel-powerline.md) та [Tokyo Night](./tokyo-night.md).
+
+[![Скріншот шаблона Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Натисніть, щоб переглянути шаблон Gruvbox Rainbow")](./gruvbox-rainbow)
diff --git a/docs/uk-UA/presets/gruvbox-rainbow.md b/docs/uk-UA/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..b6272ae5
--- /dev/null
+++ b/docs/uk-UA/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Повернутися до Шаблонів](./README.md#gruvbox-rainbow)
+
+# Шаблон Gruvbox Rainbow
+
+Цей шаблон створено під впливом [Pastel Powerline](./pastel-powerline.md) та [Tokyo Night](./tokyo-night.md).
+
+![Скріншот шаблона Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png)
+
+### Передумови
+
+- Встановлений та увімкнений шрифт [Nerd Font](https://www.nerdfonts.com/) у вашому терміналі
+
+### Налаштування
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Натисніть, щоб завантажити TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/uk-UA/presets/jetpack.md b/docs/uk-UA/presets/jetpack.md
new file mode 100644
index 00000000..be6565d3
--- /dev/null
+++ b/docs/uk-UA/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Повернутися до Шаблонів](./README.md#jetpack)
+
+# Jetpack
+
+Цей псевдомінімалістичний шаблон створений під враженням від [geometry](https://github.com/geometry-zsh/geometry) та командного рядка [spaceship](https://github.com/spaceship-prompt/spaceship-prompt).
+
+> Jetpack використовує колірну тему термінала.
+
+![Скріншот шаблона Jetpack](/presets/img/jetpack.png)
+
+### Передумови
+
+- Потрібна командна оболонка з підтримкою [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt).
+- Рекомендується [Jetbrains Mono](https://www.jetbrains.com/lp/mono/).
+
+### Налаштування
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Натисніть, щоб завантажити TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md
index e38d4c4e..72769990 100644
--- a/docs/vi-VN/config/README.md
+++ b/docs/vi-VN/config/README.md
@@ -206,6 +206,13 @@ Cái này là danh sách các tuỳ chọn cho cấu hình prompt-wide.
| `add_newline` | `true` | Chèn dòng trắng giữa các dấu nhắc lệnh. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### Ví dụ
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | Bảng của các region alias để hiển thị ngoài tên AWS. |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | Kiểu cho module. |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | Vô hiệu `AWS` module. |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### Options
-| Tuỳ chọn | Mặc định | Mô tả |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
-| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
-| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | Kiểu cho module. |
-| `disabled` | `false` | Disables the `c` module. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
+| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | Kiểu cho module. |
+| `disabled` | `false` | Disables the `c` module. |
### Các biến
@@ -671,7 +683,7 @@ Kí tự sẽ nói cho bạn câu lệnh cuối liệu thành công hay thất b
Mặc định, nó chỉ thay đổi màu. If you also want to change its shape take a look at [this example](#with-custom-error-shape).
-::: warning
+::: cảnh báo
`vimcmd_symbol` is only supported in cmd, fish and zsh. `vimcmd_replace_one_symbol`, `vimcmd_replace_symbol`, and `vimcmd_visual_symbol` are only supported in fish due to [upstream issues with mode detection in zsh](https://github.com/starship/starship/issues/625#issuecomment-732454148).
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### Options
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | Định dạng cho module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | Kiểu cho module. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `['.envrc']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
+| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Các biến
+
+| Biến | Ví dụ | Mô tả |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Giá trị ghi đè tuỳ chọn `symbol`. |
+| style\* | `red bold` | 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
+
+### Ví dụ
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1427,7 +1480,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
- The current directory contains a file with the `.fnl` extension
-### Options
+### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | Kiểu cho module. |
-| `detect_extensions` | `[fnl]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_extensions` | `['fnl']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào nên kích hoạt các mô đun này. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1463,7 +1516,7 @@ symbol = '⫰ '
The `fill` module fills any extra space on the line with a symbol. If multiple `fill` modules are present in a line they will split the space evenly between them. This is useful for aligning other modules.
-### Các tuỳ chọn
+### Options
| Tuỳ chọn | Mặc định | Mô tả |
| ---------- | -------------- | --------------------------------- |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### Options
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | Định dạng cho module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Các biến
+
+| Biến | Ví dụ | Mô tả |
+| ----------------- | ----- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: Biến này có thể chỉ được sử dụng như một phần của style string
+
+### Ví dụ
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## 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`.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### Options
@@ -1771,7 +1859,7 @@ The Git Status module is very slow in Windows directories (for example under `/m
:::
-### Options
+### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
@@ -1879,7 +1967,7 @@ The `golang` module shows the currently installed version of [Go](https://golang
- Thư mục hiện tại chứa một thư mục `Godeps`
- Thư mục hiện tại chứa một tệp tin với phần mở rộng `.go`
-### Options
+### Các tuỳ chọn
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Tuỳ chọn | Mặc định | Mô tả |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | Định dạng cho module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | Kiểu cho module. |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | Kiểu cho module. |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Các biến
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Định dạng cho module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
-| `detect_folders` | `["gradle"]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
-| `style` | `"bold bright-cyan"` | Kiểu cho module. |
+| `detect_folders` | `['gradle']` | Những thư mục nào sẽ kích hoạt mô-đun này. |
+| `style` | `'bold bright-cyan'` | Kiểu cho module. |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Định dạng cho module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Những thư mục nào nên kích hoạt các mô đun này. |
-| `symbol` | `"⌘ "` | Một format string đại diện cho biểu tượng của Helm. |
-| `style` | `"bold fg:202"` | Kiểu cho module. |
+| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Những thư mục nào nên kích hoạt các mô đun này. |
+| `symbol` | `'⌘ '` | Một format string đại diện cho biểu tượng của Helm. |
+| `style` | `'bold fg:202'` | Kiểu cho module. |
| `disabled` | `false` | Disables the `haxe` module. |
### Các biến
@@ -2107,14 +2195,15 @@ Mô đun `hostname` hiển thị hostnam hệ thống.
### Các tuỳ chọn
-| Tuỳ chọn | Mặc định | Mô tả |
-| ------------ | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | Chỉ hiển thị hostname khi được kết nối tới một phiên SSH. |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | Chuỗi mà hostname được cắt ngắn, sau khi khớp lần đầu tiên. `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | Định dạng cho module. |
-| `style` | `'bold dimmed green'` | Kiểu cho module. |
-| `disabled` | `false` | Vô hiệu `hastname` module. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ----------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | Chỉ hiển thị hostname khi được kết nối tới một phiên SSH. |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | Chuỗi mà hostname được cắt ngắn, sau khi khớp lần đầu tiên. `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | Định dạng cho module. |
+| `style` | `'bold dimmed green'` | Kiểu cho module. |
+| `disabled` | `false` | Vô hiệu `hastname` module. |
### Các biến
@@ -2126,7 +2215,9 @@ Mô đun `hostname` hiển thị hostnam hệ thống.
*: Biến này có thể chỉ được sử dụng như một phần của style string
-### Ví dụ
+### Các ví dụ
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). Mặc định module sẽ được hiển thị nếu có bất kì điều kiện nào dưới đây thoả mãn:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. 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`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### Các tuỳ chọn
+::: cảnh báo
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | Định dạng cho module. |
| `style` | `'cyan bold'` | Kiểu cho module. |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào nên kích hoạt các mô đun này. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| Biến | Mô tả |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Các biến
| Biến | Ví dụ | Mô tả |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Những thư mục nào sẽ kích hoạt mô-đun này. |
| `style` | `'bold green'` | Kiểu cho module. |
| `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. |
+| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
### Các biến
@@ -2890,8 +3021,8 @@ Mặc định, mô đun này được vô hiệu. Để kích hoạt nó, thiế
| Tuỳ chọn | Mặc định | Mô tả |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | Định dạng cho module. |
-| `style` | `"bold white"` | Kiểu cho module. |
+| `format` | `'[$symbol]($style)'` | Định dạng cho module. |
+| `style` | `'bold white'` | Kiểu cho module. |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ Mặc định module sẽ được hiển thị nếu có bất kì điều ki
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `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 |
+| `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']` | 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 |
@@ -3562,22 +3693,23 @@ 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ả |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | Định dạng cho module. |
-| `style` | `'white bold'` | Kiểu cho module. |
-| `disabled` | `true` | Disables the `shell` module. |
+| Tuỳ chọn | Mặc định | Mô tả |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | Định dạng cho module. |
+| `style` | `'white bold'` | Kiểu cho module. |
+| `disabled` | `true` | Disables the `shell` module. |
### Các biến
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Tuỳ chọn | Mặc định | Mô tả |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | Định dạng cho module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
| `detect_files` | `[]` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
-| `style` | `"bold blue"` | Kiểu cho module. |
+| `style` | `'bold blue'` | Kiểu cho module. |
| `disabled` | `false` | Disables this module. |
### Các biến
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- Thư mục hiện tại chứa một tập tin `template.typ`
+- The current directory contains any `*.typ` file
+
+### Các tuỳ chọn
+
+| Tuỳ chọn | Mặc định | Mô tả |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | Định dạng cho module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | Kiểu cho module. |
+| `detect_extensions` | `['.typ']` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
+| `detect_files` | `['template.typ']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
+| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Các biến
+
+| Biến | Ví dụ | Mô tả |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## 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:
diff --git a/docs/vi-VN/guide/README.md b/docs/vi-VN/guide/README.md
index 0900d31b..70bc2f10 100644
--- a/docs/vi-VN/guide/README.md
+++ b/docs/vi-VN/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="Theo dõi @StarshipPrompt trên Twitter"
/>
+
@@ -147,8 +152,6 @@
/>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
@@ -236,7 +240,7 @@ Hoặc là, cài đặt Starship bằng một package manager bất kì:
macOS
-Cài phiên bản mới nhất cho hệ điều hành của bạn:
+Cài đặt phiên bản mới nhất cho hệ điều hành của bạn:
```sh
curl -sS https://starship.rs/install.sh | sh
diff --git a/docs/vi-VN/presets/README.md b/docs/vi-VN/presets/README.md
index 0e28b2a5..ea3f1b6f 100644
--- a/docs/vi-VN/presets/README.md
+++ b/docs/vi-VN/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/vi-VN/presets/gruvbox-rainbow.md b/docs/vi-VN/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..5986631c
--- /dev/null
+++ b/docs/vi-VN/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### Yêu cầu
+
+- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
+
+### Cấu hình
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/vi-VN/presets/jetpack.md b/docs/vi-VN/presets/jetpack.md
new file mode 100644
index 00000000..4b83fa3d
--- /dev/null
+++ b/docs/vi-VN/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### Cấu hình
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md
index 90ac6fea..316497e0 100644
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@ -162,7 +162,7 @@ description: Starship是一款轻量级、反应迅速、可自定义的高颜
然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
```sh
- use ~/.cache/starship/init.nu
+ 使用 ~/.cache/starship/init.nu
```
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index 9807ad5d..b41d3714 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -206,6 +206,13 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
| `add_newline` | `true` | 在 shell 提示符之间插入空行。 |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### 示例
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### 配置项
| 选项 | 默认值 | 描述 |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | 地区缩写列表,用来显示在 AWS 主机名之后。 |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | 此组件的样式。 |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | 禁用 `AWS` 组件。 |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `c` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `符号` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `c` module. |
### 变量
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### 配置项
+
+| 选项 | 默认值 | 描述 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | 组件格式化模板。 |
+| `符号` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | 此组件的样式。 |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### 变量
+
+| 字段 | 示例 | 描述 |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| 符号 | | `symbol`对应值. |
+| style\* | `red bold` | `style`对应值. |
+
+*: 此变量只能作为样式字符串的一部分使用
+
+### 示例
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `符号` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | 此组件的样式。 |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### 配置项
+
+| 选项 | 默认值 | 描述 |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | 组件格式化模板。 |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### 变量
+
+| 字段 | 示例 | 描述 |
+| ----------------- | --- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: 此变量只能作为样式字符串的一部分使用
+
+### 示例
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### 配置项
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| 选项 | 默认值 | 描述 |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | 组件格式化模板。 |
-| `符号` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | 此组件的样式。 |
+| `符号` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | 此组件的样式。 |
| `disabled` | `false` | Disables the `guix_shell` module. |
### 变量
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `符号` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | 此组件的样式。 |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | 此组件的样式。 |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| 选项 | 默认值 | 描述 |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `符号` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | 此组件的样式。 |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `符号` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | 此组件的样式。 |
| `disabled` | `false` | Disables the `haxe` module. |
### 变量
@@ -2107,14 +2195,15 @@ format = 'via [⎈ $version](bold white) '
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------ | -------------------------------------- | ----------------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | 仅在连接到 SSH 会话时显示主机名。 |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | 当主机名过长被截断时,会截断成第一次匹配该字符串之前的主机名。 `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | 组件格式化模板。 |
-| `style` | `'bold dimmed green'` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `hostname` 组件。 |
+| 选项 | 默认值 | 描述 |
+| ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `ssh_only` | `true` | 仅在连接到 SSH 会话时显示主机名。 |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | 当主机名过长被截断时,会截断成第一次匹配该字符串之前的主机名。 `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | 组件格式化模板。 |
+| `style` | `'bold dimmed green'` | 此组件的样式。 |
+| `disabled` | `false` | 禁用 `hostname` 组件。 |
### 变量
@@ -2126,7 +2215,9 @@ format = 'via [⎈ $version](bold white) '
*: 此变量只能作为样式字符串的一部分使用
-### 示例
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### 配置项
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| 选项 | 默认值 | 描述 |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `符号` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | 组件格式化模板。 |
| `style` | `'cyan bold'` | 此组件的样式。 |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| 字段 | 描述 |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `符号` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### 变量
| 字段 | 示例 | 描述 |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## Line Break
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | 此组件的样式。 |
| `disabled` | `false` | 禁用 `nodejs` 组件。 |
-| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
+| `not_capable_style` | `'bold red'` | The style for the module when an engines property in package.json does not match the Node.js version. |
### 变量
@@ -2890,8 +3021,8 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
| 选项 | 默认值 | 描述 |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | 组件格式化模板。 |
-| `style` | `"bold white"` | 此组件的样式。 |
+| `format` | `'[$symbol]($style)'` | 组件格式化模板。 |
+| `style` | `'bold white'` | 此组件的样式。 |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `符号` | `'🐍 '` | 用于表示Python的格式化字符串。 |
| `style` | `'yellow bold'` | 此组件的样式。 |
| `pyenv_version_name` | `false` | 使用 pyenv 获取 Python 版本 |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `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 |
@@ -3562,22 +3693,23 @@ The `shell` module shows an indicator for currently used shell.
### 配置项
-| 选项 | 默认值 | 描述 |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | 组件格式化模板。 |
-| `style` | `'white bold'` | 此组件的样式。 |
-| `disabled` | `true` | Disables the `shell` module. |
+| 选项 | 默认值 | 描述 |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | 组件格式化模板。 |
+| `style` | `'white bold'` | 此组件的样式。 |
+| `disabled` | `true` | Disables the `shell` module. |
### 变量
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| 选项 | 默认值 | 描述 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | 组件格式化模板。 |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `符号` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | 此组件的样式。 |
+| `style` | `'bold blue'` | 此组件的样式。 |
| `disabled` | `false` | Disables this module. |
### 变量
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- 当前目录包含一个 `template.typ` 文件
+- The current directory contains any `*.typ` file
+
+### 配置项
+
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `符号` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | 此组件的样式。 |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### 变量
+
+| 字段 | 示例 | 描述 |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 符号 | | `symbol`对应值 |
+| style\* | | `style`对应值 |
+
+*: 此变量只能作为样式字符串的一部分使用
+
## Username
`username` 组件显示当前活跃的用户名。 此组件将在符合以下任意条件时显示:
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index eeeeebc3..b2b95546 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="在 Twitter 上关注 @Starshipmpt"
/>
+
@@ -119,7 +124,7 @@
>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
Android
@@ -224,11 +227,12 @@ curl -sS https://starship.rs/install.sh | sh
| _任意发行版_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| _任意发行版_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
-| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
+| Arch Linux | [Arch Linux 额外](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` `dnf install starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` |
+| openSUSE | [OSS](https://software.opensuse.org/package/starship) | `zypper in starship` |
| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` |
@@ -270,7 +274,7 @@ curl -sS https://starship.rs/install.sh | sh
-### 步骤 2. Set up your shell to use Starship
+### 步骤 2. 设置您的 shell 以使用 Starship
配置你的终端来初始化 starship。 请从下面列表选择你的终端:
@@ -341,10 +345,10 @@ mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
-然后将以下内容添加到您 Nushell 配置文件的末尾(使用 `$nu.config-path` 来获取它的路径):
+然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
```sh
-use ~/.cache/starship/init.nu
+使用 ~/.cache/starship/init.nu
```
注意:仅支持 Nushell v0.78+
diff --git a/docs/zh-CN/presets/README.md b/docs/zh-CN/presets/README.md
index 6dd4b87d..1bec89ef 100644
--- a/docs/zh-CN/presets/README.md
+++ b/docs/zh-CN/presets/README.md
@@ -63,3 +63,9 @@ This preset does not show icons if the toolset is not found.
此预设受 [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme) 的启发。
[![Tokyo Night预设预览](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/zh-CN/presets/gruvbox-rainbow.md b/docs/zh-CN/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..4701cd1a
--- /dev/null
+++ b/docs/zh-CN/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[返回全部预设](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### 前置要求
+
+- 安装一种 [Nerd fonts](https://www.nerdfonts.com/) 并在您的终端启用。
+
+### 配置
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[点击下载 TOML 文件](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/zh-CN/presets/jetpack.md b/docs/zh-CN/presets/jetpack.md
new file mode 100644
index 00000000..27ba891e
--- /dev/null
+++ b/docs/zh-CN/presets/jetpack.md
@@ -0,0 +1,24 @@
+[返回全部预设](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### 配置
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[点击下载 TOML 文件](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
diff --git a/docs/zh-TW/README.md b/docs/zh-TW/README.md
index 4b57ac59..3f72e0d4 100644
--- a/docs/zh-TW/README.md
+++ b/docs/zh-TW/README.md
@@ -179,7 +179,7 @@ description: Starship 是適合任何 shell 的最小、極速、高度客製化
#### 命令提示字元
- You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
+ 您需要在 Cmd 中使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+)。 Add the following to a file `starship.lua` and place this file in Clink scripts directory:
```lua
-- starship.lua
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index 6626d765..7f0845e4 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -206,6 +206,13 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
| `add_newline` | `true` | Inserts blank line between shell prompts. |
| `palette` | `''` | Sets which color palette from `palettes` to use. |
| `palettes` | `{}` | Collection of color palettes that assign [colors](/advanced-config/#style-strings) to user-defined names. Note that color palettes cannot reference their own color definitions. |
+| `follow_symlinks` | `true` | Follows symlinks to check if they're directories; used in modules such as git. |
+
+::: tip
+
+If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+
+:::
### 範例
@@ -253,6 +260,7 @@ $kubernetes\
$directory\
$vcsh\
$fossil_branch\
+$fossil_metrics\
$git_branch\
$git_commit\
$git_state\
@@ -301,6 +309,7 @@ $scala\
$solidity\
$swift\
$terraform\
+$typst\
$vlang\
$vagrant\
$zig\
@@ -314,6 +323,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$direnv\
$env_var\
$crystal\
$custom\
@@ -351,6 +361,8 @@ When using [AWSume](https://awsu.me) the profile is read from the `AWSUME_PROFIL
When using [saml2aws](https://github.com/Versent/saml2aws) the expiration information obtained from `~/.aws/credentials` falls back to the `x_security_token_expires` key.
+When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile is read from the `AWS_SSO_PROFILE` env var.
+
### 選項
| Option | 預設 | 說明 |
@@ -360,7 +372,7 @@ When using [saml2aws](https://github.com/Versent/saml2aws) the expiration inform
| `region_aliases` | `{}` | 除了AWS名稱外,顯示區域別名表 |
| `profile_aliases` | `{}` | Table of profile aliases to display in addition to the AWS name. |
| `style` | `'bold yellow'` | 這個模組的風格。 |
-| `expiration_symbol` | `X` | The symbol displayed when the temporary credentials have expired. |
+| `expiration_symbol` | `'X'` | The symbol displayed when the temporary credentials have expired. |
| `disabled` | `false` | 停用 `AWS` 模組。 |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
@@ -620,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### 選項
-| Option | 預設 | 說明 |
-| ------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | [ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ] | How to detect what the compiler is |
-| `style` | `'bold 149'` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `c` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `c` module. |
### Variables
@@ -1137,6 +1149,47 @@ truncation_length = 8
truncation_symbol = '…/'
```
+## Direnv
+
+The `direnv` module shows the status of the current rc file if one is present. The status includes the path to the rc file, whether it is loaded, and whether it has been allowed by `direnv`.
+
+### 選項
+
+| Option | 預設 | 說明 |
+| ------------------- | -------------------------------------- | ----------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | 這個模組的風格。 |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+
+### Variables
+
+| 變數 | 範例 | 說明 |
+| --------- | ------------------- | --------------------------------------- |
+| loaded | `loaded` | Whether the current rc file is loaded. |
+| allowed | `denied` | Whether the current rc file is allowed. |
+| rc_path | `/home/test/.envrc` | The current rc file path. |
+| symbol | | Mirrors the value of option `symbol`. |
+| style\* | `red bold` | Mirrors the value of option `style`. |
+
+*: This variable can only be used as a part of a style string
+
+### 範例
+
+```toml
+# ~/.config/starship.toml
+
+[direnv]
+disabled = false
+```
+
## 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_MACHINE_NAME`, `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant to override the context in use).
@@ -1435,7 +1488,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🧅 '` | The symbol used before displaying the version of fennel. |
| `style` | `'bold green'` | 這個模組的風格。 |
-| `detect_extensions` | `[fnl]` | Which extensions should trigger this module. |
+| `detect_extensions` | `['fnl']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
@@ -1524,11 +1577,46 @@ truncation_length = 4
truncation_symbol = ''
```
+## Fossil Metrics
+
+The `fossil_metrics` module will show the number of added and deleted lines in the check-out in your current directory. At least v2.14 (2021-01-20) of Fossil is required.
+
+### 選項
+
+| Option | 預設 | 說明 |
+| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
+| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
+| `added_style` | `'bold green'` | The style for the added count. |
+| `deleted_style` | `'bold red'` | The style for the deleted count. |
+| `only_nonzero_diffs` | `true` | Render status only for changed items. |
+| `disabled` | `true` | Disables the `fossil_metrics` module. |
+
+### Variables
+
+| 變數 | 範例 | 說明 |
+| ----------------- | --- | ------------------------------------------- |
+| added | `1` | The current number of added lines |
+| deleted | `2` | The current number of deleted lines |
+| added_style\* | | Mirrors the value of option `added_style` |
+| deleted_style\* | | Mirrors the value of option `deleted_style` |
+
+*: This variable can only be used as a part of a style string
+
+### 範例
+
+```toml
+# ~/.config/starship.toml
+
+[fossil_metrics]
+added_style = 'bold blue'
+format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
+```
+
## Google Cloud (`gcloud`)
The `gcloud` module shows the current configuration for [`gcloud`](https://cloud.google.com/sdk/gcloud) CLI. This is based on the `~/.config/gcloud/active_config` file and the `~/.config/gcloud/configurations/config_{CONFIG NAME}` file and the `CLOUDSDK_CONFIG` env var.
-When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active be active when one of the environment variables has been set.
+When the module is enabled it will always be active, unless `detect_env_vars` has been set in which case the module will only be active when one of the environment variables has been set.
### 選項
@@ -1931,8 +2019,8 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
| Option | 預設 | 說明 |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
-| `symbol` | `"🐃 "` | A format string representing the symbol of guix-shell. |
-| `style` | `"yellow bold"` | 這個模組的風格。 |
+| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
+| `style` | `'yellow bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `guix_shell` module. |
### Variables
@@ -1969,13 +2057,13 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| Option | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🅶 "` | A format string representing the symbol of Gradle. |
-| `detect_extensions` | `["gradle", "gradle.kts"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'🅶 '` | A format string representing the symbol of Gradle. |
+| `detect_extensions` | `['gradle', 'gradle.kts']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `["gradle"]` | Which folders should trigger this module. |
-| `style` | `"bold bright-cyan"` | 這個模組的風格。 |
+| `detect_folders` | `['gradle']` | Which folders should trigger this module. |
+| `style` | `'bold bright-cyan'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
@@ -2034,13 +2122,13 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| Option | 預設 | 說明 |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["hx", "hxml"]` | Which extensions should trigger this module. |
-| `detect_files` | `["project.xml", "Project.xml", "application.xml", "haxelib.json", "hxformat.json", ".haxerc"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[".haxelib", "haxe_libraries"]` | Which folders should trigger this modules. |
-| `symbol` | `"⌘ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold fg:202"` | 這個模組的風格。 |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `detect_extensions` | `['hx', 'hxml']` | Which extensions should trigger this module. |
+| `detect_files` | `['project.xml', 'Project.xml', 'application.xml', 'haxelib.json', 'hxformat.json', '.haxerc']` | Which filenames should trigger this module. |
+| `detect_folders` | `['.haxelib', 'haxe_libraries']` | Which folders should trigger this modules. |
+| `symbol` | `'⌘ '` | A format string representing the symbol of Helm. |
+| `style` | `'bold fg:202'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `haxe` module. |
### Variables
@@ -2107,14 +2195,15 @@ format = 'via [⎈ $version](bold white) '
### 選項
-| Option | 預設 | 說明 |
-| ------------ | -------------------------------------- | ------------------------------------------------------------------------------------------- |
-| `ssh_only` | `true` | 只在連接到一個 SSH session 時顯示主機名稱。 |
-| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
-| `trim_at` | `'.'` | 擷取出主機名稱的斷點,以第一個符合的為準。 `'.'` will stop after the first dot. `''` will disable any truncation |
-| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
-| `style` | `'bold dimmed green'` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `hostname` 模組。 |
+| Option | 預設 | 說明 |
+| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------- |
+| `ssh_only` | `true` | 只在連接到一個 SSH session 時顯示主機名稱。 |
+| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
+| `trim_at` | `'.'` | 擷取出主機名稱的斷點,以第一個符合的為準。 `'.'` will stop after the first dot. `''` will disable any truncation. |
+| `detect_env_vars` | `[]` | Which environment variable(s) should trigger this module. |
+| `format` | `'[$ssh_symbol$hostname]($style) in '` | The format for the module. |
+| `style` | `'bold dimmed green'` | 這個模組的風格。 |
+| `disabled` | `false` | 停用 `hostname` 模組。 |
### Variables
@@ -2126,7 +2215,9 @@ format = 'via [⎈ $version](bold white) '
*: This variable can only be used as a part of a style string
-### 範例
+### Examples
+
+#### Always show the hostname
```toml
# ~/.config/starship.toml
@@ -2138,6 +2229,17 @@ trim_at = '.companyname.com'
disabled = false
```
+#### Hide the hostname in remote tmux sessions
+
+```toml
+# ~/.config/starship.toml
+
+[hostname]
+ssh_only = false
+detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
+disabled = false
+```
+
## Java
The `java` module shows the currently installed version of [Java](https://www.oracle.com/java/). By default the module will be shown if any of the following conditions are met:
@@ -2323,7 +2425,7 @@ 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, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
+Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace, user and cluster from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-context --namespace astronaut`. Similarly, the user and cluster can be set with `kubectl config set-context starship-context --user starship-user` and `kubectl config set-context starship-context --cluster starship-cluster`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
::: tip
@@ -2335,18 +2437,40 @@ When the module is enabled it will always be active, unless any of `detect_exten
### 選項
+::: warning
+
+The `context_aliases` and `user_aliases` options are deprecated. Use `contexts` and the corresponding `context_alias` and `user_alias` options instead.
+
+:::
+
| Option | 預設 | 說明 |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
| `style` | `'cyan bold'` | 這個模組的風格。 |
-| `context_aliases` | `{}` | Table of context aliases to display. |
-| `user_aliases` | `{}` | Table of user aliases to display. |
+| `context_aliases`* | `{}` | Table of context aliases to display. |
+| `user_aliases`* | `{}` | Table of user aliases to display. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `contexts` | `[]` | Customized styles and symbols for specific contexts. |
| `disabled` | `true` | Disables the `kubernetes` module. |
+*: This option is deprecated, please add `contexts` with the corresponding `context_alias` and `user_alias` options instead.
+
+To customize the style of the module for specific environments, use the following configuration as part of the `contexts` list:
+
+| 變數 | 說明 |
+| ----------------- | ---------------------------------------------------------------------------------------- |
+| `context_pattern` | **Required** Regular expression to match current Kubernetes context name. |
+| `user_pattern` | Regular expression to match current Kubernetes user name. |
+| `context_alias` | Context alias to display instead of the full context name. |
+| `user_alias` | User alias to display instead of the full user name. |
+| `style` | The style for the module when using this context. If not set, will use module's style. |
+| `symbol` | The symbol for the module when using this context. If not set, will use module's symbol. |
+
+Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
+
### Variables
| 變數 | 範例 | 說明 |
@@ -2368,13 +2492,9 @@ When the module is enabled it will always be active, unless any of `detect_exten
[kubernetes]
format = 'on [⛵ ($user on )($cluster in )$context \($namespace\)](dimmed green) '
disabled = false
-[kubernetes.context_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'.*/openshift-cluster/.*' = 'openshift'
-'gke_.*_(?P[\w-]+)' = 'gke-$var_cluster'
-[kubernetes.user_aliases]
-'dev.local.cluster.k8s' = 'dev'
-'root/.*' = 'root'
+contexts = [
+ { context_pattern = "dev.local.cluster.k8s", style = "green", symbol = "💔 " },
+]
```
Only show the module in directories that contain a `k8s` file.
@@ -2387,25 +2507,36 @@ disabled = false
detect_files = ['k8s']
```
-#### Regex Matching
+#### Kubernetes Context specific config
-Additional to simple aliasing, `context_aliases` and `user_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:
+The `contexts` configuration option is used to customise what the current Kubernetes context name looks like (style and symbol) if the name matches the defined regular expression.
```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-]+)/.*' = '$var_cluster'
+# ~/.config/starship.toml
+[[kubernetes.contexts]]
+# "bold red" style + default symbol when Kubernetes current context name equals "production" *and* the current user
+# equals "admin_user"
+context_pattern = "production"
+user_pattern = "admin_user"
+style = "bold red"
+context_alias = "prod"
+user_alias = "admin"
+
+[[kubernetes.contexts]]
+# "green" style + a different symbol when Kubernetes current context name contains openshift
+context_pattern = ".*openshift.*"
+style = "green"
+symbol = "💔 "
+context_alias = "openshift"
+
+[[kubernetes.contexts]]
+# Using capture groups
# 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-$var_cluster'
+context_pattern = "gke_.*_(?P[\\w-]+)"
+context_alias = "gke-$cluster"
```
## 換行
@@ -2730,7 +2861,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `detect_folders` | `['node_modules']` | Which folders should trigger this module. |
| `style` | `'bold green'` | 這個模組的風格。 |
| `disabled` | `false` | 停用 `nodejs` 模組。 |
-| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
+| `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
@@ -2890,8 +3021,8 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
| Option | 預設 | 說明 |
| ---------- | --------------------- | ------------------------------------------------------ |
-| `format` | `"[$symbol]($style)"` | The format for the module. |
-| `style` | `"bold white"` | 這個模組的風格。 |
+| `format` | `'[$symbol]($style)'` | The format for the module. |
+| `style` | `'bold white'` | 這個模組的風格。 |
| `disabled` | `true` | Disables the `os` module. |
| `symbols` | | A table that maps each operating system to its symbol. |
@@ -3245,7 +3376,7 @@ By default the module will be shown if any of the following conditions are met:
| `symbol` | `'🐍 '` | A format string representing the symbol of Python |
| `style` | `'yellow bold'` | 這個模組的風格。 |
| `pyenv_version_name` | `false` | 使用 pyenv 取得 Python 的版本。 |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
+| `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 |
@@ -3562,22 +3693,23 @@ The `shell` module shows an indicator for currently used shell.
### 選項
-| Option | 預設 | 說明 |
-| ---------------------- | ------------------------- | ------------------------------------------------------------ |
-| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
-| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
-| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
-| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
-| `ion_indicator` | `'ion'` | A format string used to represent ion. |
-| `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. |
-| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
-| `nu_indicator` | `'nu'` | A format string used to represent nu. |
-| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
-| `format` | `'[$indicator]($style) '` | The format for the module. |
-| `style` | `'white bold'` | 這個模組的風格。 |
-| `disabled` | `true` | Disables the `shell` module. |
+| Option | 預設 | 說明 |
+| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
+| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
+| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
+| `zsh_indicator` | `'zsh'` | A format string used to represent zsh. |
+| `powershell_indicator` | `'psh'` | A format string used to represent powershell. |
+| `pwsh_indicator` | | A format string used to represent pwsh. The default value mirrors the value of `powershell_indicator`. |
+| `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. |
+| `cmd_indicator` | `'cmd'` | A format string used to represent cmd. |
+| `nu_indicator` | `'nu'` | A format string used to represent nu. |
+| `unknown_indicator` | `''` | The default value to be displayed when the shell is unknown. |
+| `format` | `'[$indicator]($style) '` | The format for the module. |
+| `style` | `'white bold'` | 這個模組的風格。 |
+| `disabled` | `true` | Disables the `shell` module. |
### Variables
@@ -3694,14 +3826,14 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| Option | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${major}.${minor}.${patch}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"S "` | A format string representing the symbol of Solidity |
-| `compiler | ["solc"] | The default compiler for Solidity. |
-| `detect_extensions` | `["sol"]` | Which extensions should trigger this module. |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"bold blue"` | 這個模組的風格。 |
+| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables this module. |
### Variables
@@ -4009,6 +4141,39 @@ utc_time_offset = '-5'
time_range = '10:00:00-14:00:00'
```
+## Typst
+
+The `typst` module shows the current installed version of Typst used in a project.
+
+By default, the module will be shown if any of the following conditions are met:
+
+- 目前資料夾中有一個 `template.typ` 檔案
+- The current directory contains any `*.typ` file
+
+### 選項
+
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
+| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | 這個模組的風格。 |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `disabled` | `false` | Disables the `daml` module. |
+
+### Variables
+
+| 變數 | 範例 | 說明 |
+| ------------- | --------- | ----------------------------------------------- |
+| version | `v0.9.0` | The version of `typst`, alias for typst_version |
+| typst_version | `default` | The current Typst version |
+| 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
+
## 使用者名稱
`username` 模組顯示現在使用中的使用者名稱。 這個模組將在下列其中一個條件滿足時顯示:
diff --git a/docs/zh-TW/guide/README.md b/docs/zh-TW/guide/README.md
index c93a1f46..f17404c2 100644
--- a/docs/zh-TW/guide/README.md
+++ b/docs/zh-TW/guide/README.md
@@ -32,6 +32,11 @@
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
alt="在推特上追蹤 @StarshipPrompt"
/>
+
@@ -79,7 +84,7 @@
>
-[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)
-
@@ -270,7 +274,7 @@ Install Starship using any of the following package managers:
-### 第二步 Set up your shell to use Starship
+### 第二步 設定您的 shell 以啟用 Starship
設定您的 shell 以啟用 Starship。 請從下列選單選取您的 shell:
@@ -288,7 +292,7 @@ eval "$(starship init bash)"
命令提示字元
-You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
+您需要在 Cmd 中使用 [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+)。 在此路徑 `%LocalAppData%\clink\starship.lua` 建立一個檔案,並填入以下內容:
```lua
load(io.popen('starship init cmd'):read("*a"))()
@@ -305,7 +309,7 @@ load(io.popen('starship init cmd'):read("*a"))()
eval (starship init elvish)
```
-Note: Only Elvish v0.18+ is supported
+注意:只支援 Elvish v0.18+ 以上的版本
@@ -376,7 +380,7 @@ eval `starship init tcsh`
Xonsh
-將以下內容放到 `~/.xonshrc` 的結尾:
+將以下內容加到 `~/.xonshrc` 的結尾:
```python
execx($(starship init xonsh))
@@ -423,13 +427,13 @@ eval "$(starship init zsh)"
- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
-## ❤️ Sponsors
+## ❤️ 贊助我們
-Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+你可以[成爲一個贊助者](https://github.com/sponsors/starship)來支持這個專案! 你的名字和頭像會在這裏顯示,並且會帶有一個前往你網站的鏈接。
-**Supporter Tier**
+**贊助者等級**
-- [Appwrite](https://appwrite.io/)
+- [後端](https://appwrite.io/)
diff --git a/docs/zh-TW/presets/README.md b/docs/zh-TW/presets/README.md
index 7bc035a3..0e6678b3 100644
--- a/docs/zh-TW/presets/README.md
+++ b/docs/zh-TW/presets/README.md
@@ -63,3 +63,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/tokyo-night-vscode-theme).
[![Screenshot of Tokyo Night preset](/presets/img/tokyo-night.png "Click to view Tokyo Night preset")](./tokyo-night)
+
+## [Gruvbox Rainbow](./gruvbox-rainbow.md)
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/zh-TW/presets/gruvbox-rainbow.md b/docs/zh-TW/presets/gruvbox-rainbow.md
new file mode 100644
index 00000000..d1f3c343
--- /dev/null
+++ b/docs/zh-TW/presets/gruvbox-rainbow.md
@@ -0,0 +1,21 @@
+[Return to Presets](./README.md#gruvbox-rainbow)
+
+# Gruvbox Rainbow Preset
+
+This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+
+![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+
+### 先決要求
+
+- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
+
+### 設定
+
+```sh
+starship preset gruvbox-rainbow -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/gruvbox-rainbow.toml)
+
+<<< @/.vuepress/public/presets/toml/gruvbox-rainbow.toml
diff --git a/docs/zh-TW/presets/jetpack.md b/docs/zh-TW/presets/jetpack.md
new file mode 100644
index 00000000..0d85a56b
--- /dev/null
+++ b/docs/zh-TW/presets/jetpack.md
@@ -0,0 +1,24 @@
+[Return to Presets](./README.md#jetpack)
+
+# Jetpack Preset
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+> Jetpack uses the terminal's color theme.
+
+![Screenshot of Jetpack preset](/presets/img/jetpack.png)
+
+### Prerequisite
+
+- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support.
+- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended.
+
+### 設定
+
+```sh
+starship preset jetpack -o ~/.config/starship.toml
+```
+
+[Click to download TOML](/presets/toml/jetpack.toml)
+
+<<< @/.vuepress/public/presets/toml/jetpack.toml
From 88e1471b64cd9a32c60cdd6753e9c62bbeae2e84 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 28 Dec 2023 19:29:58 +0100
Subject: [PATCH 053/651] chore(master): release 1.17.0 (#5348)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++
Cargo.lock | 2 +-
Cargo.toml | 2 +-
3 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 310ce9f3..9de27f44 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,37 @@
# Changelog
+## [1.17.0](https://github.com/starship/starship/compare/v1.16.0...v1.17.0) (2023-12-28)
+
+
+### Features
+
+* add additional exit status code meanings from libc ([#5412](https://github.com/starship/starship/issues/5412)) ([81c7d0c](https://github.com/starship/starship/commit/81c7d0cc5805dc10018f0589a6671e1b727a0e9c))
+* add typst module ([7b21705](https://github.com/starship/starship/commit/7b217056bdb8dcb5b328b51fa3b68fe837f9fb3c))
+* **aws:** Adding the AWS SSO CLI env variable to profile list ([#5640](https://github.com/starship/starship/issues/5640)) ([6d96df3](https://github.com/starship/starship/commit/6d96df3c6828161bb9dc922fe45ef35a1ce33771))
+* **direnv:** add new direnv module ([#5157](https://github.com/starship/starship/issues/5157)) ([e47bfba](https://github.com/starship/starship/commit/e47bfbabb9b7d6af12a29db9413a6ec03fba174b))
+* **fossil_metrics:** add fossil_metrics module ([#4874](https://github.com/starship/starship/issues/4874)) ([e867cda](https://github.com/starship/starship/commit/e867cda1eb90ba452768bd2e0738afc2fd0db613))
+* **hostname:** add detect_env_vars as option ([#5196](https://github.com/starship/starship/issues/5196)) ([43b2d42](https://github.com/starship/starship/commit/43b2d42cd526e34c5f0290e7409fbd6d3a54e908))
+* **kubernetes:** Add styling based on current context ([#4550](https://github.com/starship/starship/issues/4550)) ([6b444e0](https://github.com/starship/starship/commit/6b444e05c688f9b871d0fe4624cd5559eba1f95c))
+* R lang packages version, remove .Rprofile from rlang detection ([#5588](https://github.com/starship/starship/issues/5588)) ([5267c46](https://github.com/starship/starship/commit/5267c464eb5e4b23e44cdb7c56919991f4f67ae3))
+* **scanner:** add option not to follow symlinks ([#5325](https://github.com/starship/starship/issues/5325)) ([7b851fc](https://github.com/starship/starship/commit/7b851fc30e109213e911eec38460315872f1ae59))
+* **shell:** allow distinguishing between pwsh and powershell ([#5478](https://github.com/starship/starship/issues/5478)) ([d7a34b4](https://github.com/starship/starship/commit/d7a34b45f88ced63bd79a582c14a6b2f8ebd9544))
+
+
+### Bug Fixes
+
+* **bash:** unbound variable error with STARSHIP_PREEXEC_READY ([#5438](https://github.com/starship/starship/issues/5438)) ([8168c21](https://github.com/starship/starship/commit/8168c21293de8118af1e95778b1eee8f26cd6d6a))
+* **docker_context:** ignore unix domain socket path from Docker Context ([#5616](https://github.com/starship/starship/issues/5616)) ([a910e09](https://github.com/starship/starship/commit/a910e094f77ba6d67349a561e5e9780becfe823a)), closes [#5548](https://github.com/starship/starship/issues/5548)
+* **git_status:** Avoid printing error on missing stash ref ([#5434](https://github.com/starship/starship/issues/5434)) ([00d3dc8](https://github.com/starship/starship/commit/00d3dc86a21d11aede96f81ffbe49babe487984e))
+* **git:** prevent `core.fsmonitor` from executing external commands ([#3981](https://github.com/starship/starship/issues/3981)) ([03278e4](https://github.com/starship/starship/commit/03278e4de4f540cbd0e346e9df878c7e6798d757))
+* **install:** do not use curl installed through snap ([#5442](https://github.com/starship/starship/issues/5442)) ([0e73817](https://github.com/starship/starship/commit/0e738175c57d5789350b996b69c5713aac03835e))
+* **pastel-powerline:** remove `$path` from docker-context module format string ([#5534](https://github.com/starship/starship/issues/5534)) ([6abc83d](https://github.com/starship/starship/commit/6abc83decdf176842985b4daa5b09771c6b93415))
+
+
+### Performance Improvements
+
+* **git_status:** avoid running in bare repos ([#5581](https://github.com/starship/starship/issues/5581)) ([ac4a839](https://github.com/starship/starship/commit/ac4a83910357d69950ca304a3fb41d1d39bc3592))
+* Skip unnecessary indirection in starship init zsh ([#5322](https://github.com/starship/starship/issues/5322)) ([5ca8daa](https://github.com/starship/starship/commit/5ca8daacd4ce936f97170f814a780b34bfaa486e))
+
## [1.16.0](https://github.com/starship/starship/compare/v1.15.0...v1.16.0) (2023-07-30)
diff --git a/Cargo.lock b/Cargo.lock
index 45eed417..aa886b82 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2787,7 +2787,7 @@ dependencies = [
[[package]]
name = "starship"
-version = "1.16.0"
+version = "1.17.0"
dependencies = [
"chrono",
"clap",
diff --git a/Cargo.toml b/Cargo.toml
index 9d3b1070..c7833b5b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "starship"
-version = "1.16.0"
+version = "1.17.0"
authors = ["Starship Contributors"]
build = "build.rs"
categories = ["command-line-utilities"]
From 89dc19214bb671fe50a8f1be79a4594e7998ddea Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sat, 30 Dec 2023 17:28:50 +0100
Subject: [PATCH 054/651] fix: v1.17.0 post-release fix-ups (#5660)
* chore: cargo update
* chore(fmt): ignore `bn-BD`-tl in dprint
* ci(release): downgrade node in `notarize_and_pkgbuild`
* refactor(dprint): use generic excludes for translated docs
---
.dprint.json | 24 +-
.github/workflows/release.yml | 5 +
Cargo.lock | 434 ++++++++++++++++++----------------
3 files changed, 244 insertions(+), 219 deletions(-)
diff --git a/.dprint.json b/.dprint.json
index b144d976..60535dff 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -18,26 +18,10 @@
"**/node_modules",
"**/*-lock.json",
".github/*",
- "docs/ar-SA/**",
- "docs/ckb-IR/**",
- "docs/de-DE/**",
- "docs/es-ES/**",
- "docs/fr-FR/**",
- "docs/id-ID/**",
- "docs/it-IT/**",
- "docs/ja-JP/**",
- "docs/ko-KR/**",
- "docs/nl-NL/**",
- "docs/no-NO/**",
- "docs/pl-PL/**",
- "docs/pt-BR/**",
- "docs/pt-PT/**",
- "docs/ru-RU/**",
- "docs/tr-TR/**",
- "docs/uk-UA/**",
- "docs/vi-VN/**",
- "docs/zh-CN/**",
- "docs/zh-TW/**",
+ "docs/??-??/**",
+ "docs/??-???/**",
+ "docs/???-??/**",
+ "docs/???-???/**",
"target/"
],
"plugins": [
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ba52a75b..1219eb9e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -214,6 +214,11 @@ jobs:
# Add Apple Developer ID credentials to keychain
xcrun notarytool store-credentials "$KEYCHAIN_ENTRY" --team-id "$APPLEID_TEAMID" --apple-id "$APPLEID_USERNAME" --password "$APPLEID_PASSWORD" --keychain "$KEYCHAIN_PATH"
+ - name: Setup | Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+
- name: Notarize | Build docs
run: |
cd docs
diff --git a/Cargo.lock b/Cargo.lock
index aa886b82..3391e755 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "anstream"
-version = "0.6.4"
+version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44"
+checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6"
dependencies = [
"anstyle",
"anstyle-parse",
@@ -54,37 +54,37 @@ checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87"
[[package]]
name = "anstyle-parse"
-version = "0.2.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "317b9a89c1868f5ea6ff1d9539a69f45dffc21ce321ac1fd1160dfa48c8e2140"
+checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c"
dependencies = [
"utf8parse",
]
[[package]]
name = "anstyle-query"
-version = "1.0.0"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b"
+checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
dependencies = [
- "windows-sys 0.48.0",
+ "windows-sys 0.52.0",
]
[[package]]
name = "anstyle-wincon"
-version = "3.0.1"
+version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0699d10d2f4d628a98ee7b57b289abbc98ff3bad977cb3152709d4bf2330628"
+checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
dependencies = [
"anstyle",
- "windows-sys 0.48.0",
+ "windows-sys 0.52.0",
]
[[package]]
name = "anyhow"
-version = "1.0.75"
+version = "1.0.77"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
+checksum = "c9d19de80eff169429ac1e9f48fffb163916b448a44e8e046186232046d9e1f9"
[[package]]
name = "arc-swap"
@@ -110,26 +110,28 @@ dependencies = [
[[package]]
name = "async-channel"
-version = "1.9.0"
+version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"
+checksum = "1ca33f4bc4ed1babef42cad36cc1f51fa88be00420404e5b1e80ab1b18f7678c"
dependencies = [
"concurrent-queue",
- "event-listener 2.5.3",
+ "event-listener 4.0.1",
+ "event-listener-strategy",
"futures-core",
+ "pin-project-lite",
]
[[package]]
name = "async-executor"
-version = "1.6.0"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b0c4a4f319e45986f347ee47fef8bf5e81c9abc3f6f58dc2391439f30df65f0"
+checksum = "17ae5ebefcc48e7452b4987947920dac9450be1110cadf34d1b8c116bdbaf97c"
dependencies = [
- "async-lock",
+ "async-lock 3.2.0",
"async-task",
"concurrent-queue",
"fastrand 2.0.1",
- "futures-lite",
+ "futures-lite 2.1.0",
"slab",
]
@@ -139,10 +141,10 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06"
dependencies = [
- "async-lock",
+ "async-lock 2.8.0",
"autocfg",
"blocking",
- "futures-lite",
+ "futures-lite 1.13.0",
]
[[package]]
@@ -151,11 +153,11 @@ version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af"
dependencies = [
- "async-lock",
+ "async-lock 2.8.0",
"autocfg",
"cfg-if",
"concurrent-queue",
- "futures-lite",
+ "futures-lite 1.13.0",
"log",
"parking",
"polling 2.8.0",
@@ -167,22 +169,21 @@ dependencies = [
[[package]]
name = "async-io"
-version = "2.1.0"
+version = "2.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10da8f3146014722c89e7859e1d7bb97873125d7346d10ca642ffab794355828"
+checksum = "6afaa937395a620e33dc6a742c593c01aced20aa376ffb0f628121198578ccc7"
dependencies = [
- "async-lock",
+ "async-lock 3.2.0",
"cfg-if",
"concurrent-queue",
"futures-io",
- "futures-lite",
+ "futures-lite 2.1.0",
"parking",
- "polling 3.3.0",
+ "polling 3.3.1",
"rustix 0.38.28",
"slab",
"tracing",
- "waker-fn",
- "windows-sys 0.48.0",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -194,6 +195,17 @@ dependencies = [
"event-listener 2.5.3",
]
+[[package]]
+name = "async-lock"
+version = "3.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7125e42787d53db9dd54261812ef17e937c95a51e4d291373b670342fa44310c"
+dependencies = [
+ "event-listener 4.0.1",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
[[package]]
name = "async-process"
version = "1.8.1"
@@ -201,12 +213,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea6438ba0a08d81529c69b36700fa2f95837bfe3e776ab39cde9c14d9149da88"
dependencies = [
"async-io 1.13.0",
- "async-lock",
+ "async-lock 2.8.0",
"async-signal",
"blocking",
"cfg-if",
- "event-listener 3.0.1",
- "futures-lite",
+ "event-listener 3.1.0",
+ "futures-lite 1.13.0",
"rustix 0.38.28",
"windows-sys 0.48.0",
]
@@ -219,7 +231,7 @@ checksum = "5fd55a5ba1179988837d24ab4c7cc8ed6efdeff578ede0416b4225a5fca35bd0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -228,8 +240,8 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e47d90f65a225c4527103a8d747001fc56e375203592b25ad103e1ca13124c5"
dependencies = [
- "async-io 2.1.0",
- "async-lock",
+ "async-io 2.2.2",
+ "async-lock 2.8.0",
"atomic-waker",
"cfg-if",
"futures-core",
@@ -242,19 +254,19 @@ dependencies = [
[[package]]
name = "async-task"
-version = "4.5.0"
+version = "4.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4eb2cdb97421e01129ccb49169d8279ed21e829929144f4a22a6e54ac549ca1"
+checksum = "e1d90cd0b264dfdd8eb5bad0a2c217c1f88fa96a8573f40e7b12de23fb468f46"
[[package]]
name = "async-trait"
-version = "0.1.74"
+version = "0.1.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9"
+checksum = "fdf6721fb0140e4f897002dd086c06f6c27775df19cfe1fccb21181a48fd2c98"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -313,25 +325,25 @@ dependencies = [
[[package]]
name = "blocking"
-version = "1.4.1"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c36a4d0d48574b3dd360b4b7d95cc651d2b6557b6402848a27d4b228a473e2a"
+checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118"
dependencies = [
"async-channel",
- "async-lock",
+ "async-lock 3.2.0",
"async-task",
"fastrand 2.0.1",
"futures-io",
- "futures-lite",
+ "futures-lite 2.1.0",
"piper",
"tracing",
]
[[package]]
name = "bstr"
-version = "1.7.0"
+version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c79ad7fb2dd38f3dabd76b09c6a5a20c038fc0213ef1e9afd30eb777f120f019"
+checksum = "c48f0051a4b4c5e0b6d365cd04af53aeaa209e3cc15ec2cdb69e73cc87fbd0dc"
dependencies = [
"memchr",
"regex-automata",
@@ -396,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.11"
+version = "4.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfaff671f6b22ca62406885ece523383b9b64022e341e53e009a62ebc47a45f2"
+checksum = "dcfab8ba68f3668e89f6ff60f5b205cea56aa7b769451a59f34b8682f51c056d"
dependencies = [
"clap_builder",
"clap_derive",
@@ -406,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.11"
+version = "4.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a216b506622bb1d316cd51328dce24e07bdff4a6128a47c7e7fad11878d5adbb"
+checksum = "fb7fb5e4e979aec3be7791562fcba452f94ad85e954da024396433e0e25a79e9"
dependencies = [
"anstream",
"anstyle",
@@ -436,7 +448,7 @@ dependencies = [
"heck",
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -468,9 +480,9 @@ checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
[[package]]
name = "concurrent-queue"
-version = "2.3.0"
+version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f057a694a54f12365049b0958a1685bb52d567f5593b355fbf685838e873d400"
+checksum = "d16048cd947b08fa32c24458a22f5dc5e835264f689f4f5653210c69fd107363"
dependencies = [
"crossbeam-utils",
]
@@ -517,9 +529,9 @@ dependencies = [
[[package]]
name = "core-foundation"
-version = "0.9.3"
+version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
dependencies = [
"core-foundation-sys",
"libc",
@@ -527,9 +539,9 @@ dependencies = [
[[package]]
name = "core-foundation-sys"
-version = "0.8.4"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
+checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
[[package]]
name = "cpufeatures"
@@ -551,9 +563,9 @@ dependencies = [
[[package]]
name = "crossbeam"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2801af0d36612ae591caa9568261fddce32ce6e08a7275ea334a06a4ad021a2c"
+checksum = "6eb9105919ca8e40d437fc9cbb8f1975d916f1bd28afe795a48aae32a2cc8920"
dependencies = [
"cfg-if",
"crossbeam-channel",
@@ -565,9 +577,9 @@ dependencies = [
[[package]]
name = "crossbeam-channel"
-version = "0.5.8"
+version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
+checksum = "82a9b73a36529d9c47029b9fb3a6f0ea3cc916a261195352ba19e770fc1748b2"
dependencies = [
"cfg-if",
"crossbeam-utils",
@@ -575,9 +587,9 @@ dependencies = [
[[package]]
name = "crossbeam-deque"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
+checksum = "fca89a0e215bab21874660c67903c5f143333cab1da83d041c7ded6053774751"
dependencies = [
"cfg-if",
"crossbeam-epoch",
@@ -586,22 +598,20 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.15"
+version = "0.9.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
+checksum = "0e3681d554572a651dda4186cd47240627c3d0114d45a95f6ad27f2f22e7548d"
dependencies = [
"autocfg",
"cfg-if",
"crossbeam-utils",
- "memoffset 0.9.0",
- "scopeguard",
]
[[package]]
name = "crossbeam-queue"
-version = "0.3.8"
+version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add"
+checksum = "adc6598521bb5a83d491e8c1fe51db7296019d2ca3cb93cc6c2a20369a4d78a2"
dependencies = [
"cfg-if",
"crossbeam-utils",
@@ -609,9 +619,9 @@ dependencies = [
[[package]]
name = "crossbeam-utils"
-version = "0.8.16"
+version = "0.8.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
+checksum = "c3a430a770ebd84726f584a90ee7f020d28db52c6d02138900f22341f866d39c"
dependencies = [
"cfg-if",
]
@@ -648,9 +658,9 @@ dependencies = [
[[package]]
name = "deranged"
-version = "0.3.9"
+version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f32d04922c60427da6f9fef14d042d9edddef64cb9d4ce0d64d0685fbeb1fd3"
+checksum = "8eb30d70a07a3b04884d2677f06bec33509dc67ca60d92949e5535352d3191dc"
dependencies = [
"powerfmt",
]
@@ -777,7 +787,7 @@ checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -825,9 +835,9 @@ checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
[[package]]
name = "event-listener"
-version = "3.0.1"
+version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01cec0252c2afff729ee6f00e903d479fba81784c8e2bd77447673471fdfaea1"
+checksum = "d93877bcde0eb80ca09131a08d23f0a5c18a620b01db137dba666d18cd9b30c2"
dependencies = [
"concurrent-queue",
"parking",
@@ -835,10 +845,31 @@ dependencies = [
]
[[package]]
-name = "faster-hex"
-version = "0.8.1"
+name = "event-listener"
+version = "4.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "239f7bfb930f820ab16a9cd95afc26f88264cf6905c960b340a615384aa3338a"
+checksum = "84f2cdcf274580f2d63697192d744727b3198894b1bf02923643bf59e2c26712"
+dependencies = [
+ "concurrent-queue",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "event-listener-strategy"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3"
+dependencies = [
+ "event-listener 4.0.1",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "faster-hex"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2a2b11eda1d40935b26cf18f6833c526845ae8c41e58d09af6adeb6f0269183"
dependencies = [
"serde",
]
@@ -871,14 +902,14 @@ dependencies = [
[[package]]
name = "filetime"
-version = "0.2.22"
+version = "0.2.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0"
+checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd"
dependencies = [
"cfg-if",
"libc",
- "redox_syscall 0.3.5",
- "windows-sys 0.48.0",
+ "redox_syscall",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -901,9 +932,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "form_urlencoded"
-version = "1.2.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652"
+checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
dependencies = [
"percent-encoding",
]
@@ -916,15 +947,15 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa"
[[package]]
name = "futures-core"
-version = "0.3.29"
+version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c"
+checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"
[[package]]
name = "futures-io"
-version = "0.3.29"
+version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa"
+checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
[[package]]
name = "futures-lite"
@@ -942,22 +973,35 @@ dependencies = [
]
[[package]]
-name = "futures-sink"
-version = "0.3.29"
+name = "futures-lite"
+version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817"
+checksum = "aeee267a1883f7ebef3700f262d2d54de95dfaf38189015a74fdc4e0c7ad8143"
+dependencies = [
+ "fastrand 2.0.1",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.30"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"
[[package]]
name = "futures-task"
-version = "0.3.29"
+version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2"
+checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
[[package]]
name = "futures-util"
-version = "0.3.29"
+version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104"
+checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"
dependencies = [
"futures-core",
"futures-io",
@@ -981,9 +1025,9 @@ dependencies = [
[[package]]
name = "getrandom"
-version = "0.2.10"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
+checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f"
dependencies = [
"cfg-if",
"libc",
@@ -1080,9 +1124,9 @@ dependencies = [
[[package]]
name = "gix-config"
-version = "0.32.0"
+version = "0.32.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ada0e0b904b17a3f2636b70a33e2c8b075b8eb947db80f6c6e94549f2d5b78d1"
+checksum = "0341471d55d8676e98b88e121d7065dfa4c9c5acea4b6d6ecdd2846e85cce0c3"
dependencies = [
"bstr",
"gix-config-value",
@@ -1196,9 +1240,9 @@ dependencies = [
[[package]]
name = "gix-hash"
-version = "0.13.2"
+version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "99c1e554a87759e672c7d2e37211e761aa390c61ffcd3753a57c51173143f3cb"
+checksum = "1f8cf8c2266f63e582b7eb206799b63aa5fa68ee510ad349f637dfe2d0653de0"
dependencies = [
"faster-hex",
"thiserror",
@@ -1211,15 +1255,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "feb61880816d7ec4f0b20606b498147d480860ddd9133ba542628df2f548d3ca"
dependencies = [
"gix-hash",
- "hashbrown 0.14.2",
+ "hashbrown 0.14.3",
"parking_lot",
]
[[package]]
name = "gix-index"
-version = "0.27.0"
+version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65ce8d03ec25de952be7d2a9adce2a4c2cb8f7fc2d4c25be91301be9707f380b"
+checksum = "f3f308f5cd2992e96a274b0d1931e9a0e44fdcba87695ead3f6df30d8a697e9c"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1242,9 +1286,9 @@ dependencies = [
[[package]]
name = "gix-lock"
-version = "11.0.0"
+version = "11.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4feb1dcd304fe384ddc22edba9dd56a42b0800032de6537728cea2f033a4f37"
+checksum = "7e5c65e6a29830a435664891ced3f3c1af010f14900226019590ee0971a22f37"
dependencies = [
"gix-tempfile",
"gix-utils",
@@ -1259,7 +1303,7 @@ checksum = "02a5bcaf6704d9354a3071cede7e77d366a5980c7352e102e2c2f9b645b1d3ae"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -1347,9 +1391,9 @@ dependencies = [
[[package]]
name = "gix-ref"
-version = "0.39.0"
+version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ac23ed741583c792f573c028785db683496a6dfcd672ec701ee54ba6a77e1ff"
+checksum = "3b2069adc212cf7f3317ef55f6444abd06c50f28479dbbac5a86acf3b05cbbfe"
dependencies = [
"gix-actor",
"gix-date",
@@ -1425,9 +1469,9 @@ dependencies = [
[[package]]
name = "gix-tempfile"
-version = "11.0.0"
+version = "11.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05cc2205cf10d99f70b96e04e16c55d4c7cf33efc151df1f793e29fd12a931f8"
+checksum = "388dd29114a86ec69b28d1e26d6d63a662300ecf61ab3f4cc578f7d7dc9e7e23"
dependencies = [
"gix-fs",
"libc",
@@ -1511,9 +1555,9 @@ checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
[[package]]
name = "hashbrown"
-version = "0.14.2"
+version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156"
+checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
[[package]]
name = "heck"
@@ -1567,9 +1611,9 @@ dependencies = [
[[package]]
name = "idna"
-version = "0.4.0"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c"
+checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
dependencies = [
"unicode-bidi",
"unicode-normalization",
@@ -1593,7 +1637,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
dependencies = [
"equivalent",
- "hashbrown 0.14.2",
+ "hashbrown 0.14.3",
"serde",
]
@@ -1662,15 +1706,15 @@ dependencies = [
[[package]]
name = "itoa"
-version = "1.0.9"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
+checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
[[package]]
name = "js-sys"
-version = "0.3.65"
+version = "0.3.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8"
+checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca"
dependencies = [
"wasm-bindgen",
]
@@ -1711,7 +1755,7 @@ checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8"
dependencies = [
"bitflags 2.4.1",
"libc",
- "redox_syscall 0.4.1",
+ "redox_syscall",
]
[[package]]
@@ -1784,9 +1828,9 @@ dependencies = [
[[package]]
name = "mach2"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6d0d1830bcd151a6fc4aea1369af235b36c1528fe976b8ff678683c9995eade8"
+checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709"
dependencies = [
"libc",
]
@@ -1802,15 +1846,15 @@ dependencies = [
[[package]]
name = "memchr"
-version = "2.6.4"
+version = "2.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
+checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
[[package]]
name = "memmap2"
-version = "0.9.0"
+version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "deaba38d7abf1d4cca21cc89e932e542ba2b9258664d2a9ef0e61512039c9375"
+checksum = "45fd3a57831bf88bc63f8cebc0cf956116276e97fef3966103e96416209f7c92"
dependencies = [
"libc",
]
@@ -1856,9 +1900,9 @@ dependencies = [
[[package]]
name = "mockall"
-version = "0.12.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a978c8292954bcb9347a4e28772c0a0621166a1598fc1be28ac0076a4bb810e"
+checksum = "43766c2b5203b10de348ffe19f7e54564b64f3d6018ff7648d1e2d6d3a0f0a48"
dependencies = [
"cfg-if",
"downcast",
@@ -1871,14 +1915,14 @@ dependencies = [
[[package]]
name = "mockall_derive"
-version = "0.12.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad2765371d0978ba4ace4ebef047baa62fc068b431e468444b5610dd441c639b"
+checksum = "af7cbce79ec385a1d4f54baa90a76401eb15d9cab93685f62e7e9f942aa00ae2"
dependencies = [
"cfg-if",
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -2043,7 +2087,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4d6a8c22fc714f0c2373e6091bf6f5e9b37b1bc0b1184874b7e0a4e303d318f"
dependencies = [
"dlv-list",
- "hashbrown 0.14.2",
+ "hashbrown 0.14.3",
]
[[package]]
@@ -2091,7 +2135,7 @@ checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
dependencies = [
"cfg-if",
"libc",
- "redox_syscall 0.4.1",
+ "redox_syscall",
"smallvec",
"windows-targets 0.48.5",
]
@@ -2120,9 +2164,9 @@ dependencies = [
[[package]]
name = "percent-encoding"
-version = "2.3.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
+checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "pest"
@@ -2155,7 +2199,7 @@ dependencies = [
"pest_meta",
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -2232,9 +2276,9 @@ dependencies = [
[[package]]
name = "pkg-config"
-version = "0.3.27"
+version = "0.3.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
+checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a"
[[package]]
name = "polling"
@@ -2254,16 +2298,16 @@ dependencies = [
[[package]]
name = "polling"
-version = "3.3.0"
+version = "3.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531"
+checksum = "cf63fa624ab313c11656b4cda960bfc46c410187ad493c41f6ba2d8c1e991c9e"
dependencies = [
"cfg-if",
"concurrent-queue",
"pin-project-lite",
"rustix 0.38.28",
"tracing",
- "windows-sys 0.48.0",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -2317,9 +2361,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.69"
+version = "1.0.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
+checksum = "75cb1540fadbd5b8fbccc4dddad2734eba435053f725621c070711a14bb5f4b8"
dependencies = [
"unicode-ident",
]
@@ -2419,15 +2463,6 @@ dependencies = [
"crossbeam-utils",
]
-[[package]]
-name = "redox_syscall"
-version = "0.3.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
-dependencies = [
- "bitflags 1.3.2",
-]
-
[[package]]
name = "redox_syscall"
version = "0.4.1"
@@ -2516,9 +2551,9 @@ dependencies = [
[[package]]
name = "ryu"
-version = "1.0.15"
+version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
+checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c"
[[package]]
name = "same-file"
@@ -2602,7 +2637,7 @@ checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -2635,14 +2670,14 @@ checksum = "3081f5ffbb02284dda55132aa26daecedd7372a42417bbbab6f14ab7d6bb9145"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
name = "serde_spanned"
-version = "0.6.4"
+version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12022b835073e5b11e90a14f86838ceb1c8fb0325b72416845c487ac0fa95e80"
+checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
dependencies = [
"serde",
]
@@ -2771,9 +2806,9 @@ dependencies = [
[[package]]
name = "smallvec"
-version = "1.11.1"
+version = "1.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
+checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
[[package]]
name = "socket2"
@@ -2884,9 +2919,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.38"
+version = "2.0.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b"
+checksum = "ee659fb5f3d355364e1f3e5bc10fb82068efbf824a1e9d1c9504244a6469ad53"
dependencies = [
"proc-macro2",
"quote",
@@ -2925,7 +2960,7 @@ checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"
dependencies = [
"cfg-if",
"fastrand 2.0.1",
- "redox_syscall 0.4.1",
+ "redox_syscall",
"rustix 0.38.28",
"windows-sys 0.52.0",
]
@@ -3002,29 +3037,29 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "1.0.50"
+version = "1.0.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
+checksum = "83a48fd946b02c0a526b2e9481c8e2a17755e47039164a86c4070446e3a4614d"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "1.0.50"
+version = "1.0.52"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
+checksum = "e7fbe9b594d6568a6a1443250a7e67d80b74e1e96f6d1715e1e21cc1888291d3"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
name = "time"
-version = "0.3.30"
+version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5"
+checksum = "f657ba42c3f86e7680e53c8cd3af8abbe56b5491790b46e22e19c0d57463583e"
dependencies = [
"deranged",
"itoa",
@@ -3044,9 +3079,9 @@ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
[[package]]
name = "time-macros"
-version = "0.2.15"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20"
+checksum = "26197e33420244aeb70c3e8c78376ca46571bc4e701e4791c2cd9f57dcb3a43f"
dependencies = [
"time-core",
]
@@ -3149,7 +3184,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
]
[[package]]
@@ -3175,10 +3210,11 @@ checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
[[package]]
name = "uds_windows"
-version = "1.0.2"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce65604324d3cce9b966701489fbd0cf318cb1f7bd9dd07ac9a4ee6fb791930d"
+checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9"
dependencies = [
+ "memoffset 0.9.0",
"tempfile",
"winapi",
]
@@ -3203,15 +3239,15 @@ dependencies = [
[[package]]
name = "unicode-bidi"
-version = "0.3.13"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
+checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416"
[[package]]
name = "unicode-bom"
-version = "2.0.2"
+version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98e90c70c9f0d4d1ee6d0a7d04aa06cb9bbd53d8cfbdd62a0269a7c2eb640552"
+checksum = "7eec5d1121208364f6793f7d2e222bf75a915c19557537745b195b253dd64217"
[[package]]
name = "unicode-ident"
@@ -3258,9 +3294,9 @@ dependencies = [
[[package]]
name = "url"
-version = "2.4.1"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5"
+checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633"
dependencies = [
"form_urlencoded",
"idna",
@@ -3334,9 +3370,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
-version = "0.2.88"
+version = "0.2.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce"
+checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
@@ -3344,24 +3380,24 @@ dependencies = [
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.88"
+version = "0.2.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217"
+checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.88"
+version = "0.2.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2"
+checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -3369,22 +3405,22 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.88"
+version = "0.2.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907"
+checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.38",
+ "syn 2.0.43",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.88"
+version = "0.2.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b"
+checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f"
[[package]]
name = "which"
@@ -3598,9 +3634,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
[[package]]
name = "winnow"
-version = "0.5.25"
+version = "0.5.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7e87b8dfbe3baffbe687eef2e164e32286eff31a5ee16463ce03d991643ec94"
+checksum = "97a4882e6b134d6c28953a387571f1acdd3496830d5e36c5e3a1075580ea641c"
dependencies = [
"memchr",
]
@@ -3643,7 +3679,7 @@ dependencies = [
"async-executor",
"async-fs",
"async-io 1.13.0",
- "async-lock",
+ "async-lock 2.8.0",
"async-process",
"async-recursion",
"async-task",
From cd0fdb7ce0501cd101c7bb33352efcf609f72c80 Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sat, 30 Dec 2023 17:29:37 +0100
Subject: [PATCH 055/651] chore: apply new rust 1.75 & nightly clippy fixes
(#5646)
chore: apply clippy fixes
---
src/context.rs | 2 +-
src/main.rs | 6 +++---
src/modules/direnv.rs | 26 ++++++++++++++++----------
src/modules/dotnet.rs | 4 ++--
src/modules/fossil_metrics.rs | 4 ++--
src/modules/kubernetes.rs | 21 +++++++++------------
src/modules/nix_shell.rs | 2 +-
src/modules/openstack.rs | 2 +-
src/modules/python.rs | 8 ++++----
src/modules/rust.rs | 12 ++++++------
src/modules/shlvl.rs | 2 +-
src/print.rs | 4 ++--
src/utils.rs | 2 +-
13 files changed, 49 insertions(+), 46 deletions(-)
diff --git a/src/context.rs b/src/context.rs
index 56074469..1bd9c560 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -244,7 +244,7 @@ impl<'a> Context<'a> {
.any(|env_var| self.get_env(env_var).is_some())
}
- /// Returns true if 'detect_env_vars' is empty,
+ /// Returns true if `detect_env_vars` is empty,
/// or if at least one environment variable is set and no negated environment variable is set
pub fn detect_env_vars(&'a self, env_vars: &'a [&'a str]) -> bool {
if env_vars.is_empty() {
diff --git a/src/main.rs b/src/main.rs
index cc30950a..1e22ce6c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -188,7 +188,7 @@ fn main() {
(_, _, true) => Target::Continuation,
(_, _, _) => Target::Main,
};
- print::prompt(properties, target)
+ print::prompt(properties, target);
}
Commands::Module {
name,
@@ -211,7 +211,7 @@ fn main() {
let context = Context::default();
if let Some(name) = name {
if let Some(value) = value {
- configure::update_configuration(&context, &name, &value)
+ configure::update_configuration(&context, &name, &value);
}
} else if let Err(reason) = configure::edit_configuration(&context, None) {
eprintln!("Could not edit configuration: {reason}");
@@ -222,7 +222,7 @@ fn main() {
configure::print_configuration(&Context::default(), default, &name);
}
Commands::Toggle { name, value } => {
- configure::toggle_configuration(&Context::default(), &name, &value)
+ configure::toggle_configuration(&Context::default(), &name, &value);
}
Commands::BugReport => bug_report::create(),
Commands::Time => {
diff --git a/src/modules/direnv.rs b/src/modules/direnv.rs
index 4f67800e..6378cb96 100644
--- a/src/modules/direnv.rs
+++ b/src/modules/direnv.rs
@@ -117,8 +117,8 @@ impl FromStr for AllowStatus {
fn from_str(s: &str) -> Result {
match s {
- "true" => Ok(AllowStatus::Allowed),
- "false" => Ok(AllowStatus::Denied),
+ "true" => Ok(Self::Allowed),
+ "false" => Ok(Self::Denied),
_ => Err(Cow::from("invalid allow status")),
}
}
@@ -152,7 +152,7 @@ mod tests {
let dir = tempfile::tempdir()?;
let rc_path = dir.path().join(".envrc");
- std::fs::File::create(&rc_path)?.sync_all()?;
+ std::fs::File::create(rc_path)?.sync_all()?;
let renderer = ModuleRenderer::new("direnv")
.config(toml::toml! {
@@ -169,7 +169,7 @@ mod tests {
);
assert_eq!(
- Some(format!("direnv not loaded/allowed ")),
+ Some("direnv not loaded/allowed ".to_string()),
renderer.collect()
);
@@ -180,7 +180,7 @@ mod tests {
let dir = tempfile::tempdir()?;
let rc_path = dir.path().join(".envrc");
- std::fs::File::create(&rc_path)?.sync_all()?;
+ std::fs::File::create(rc_path)?.sync_all()?;
let renderer = ModuleRenderer::new("direnv")
.config(toml::toml! {
@@ -196,7 +196,10 @@ mod tests {
}),
);
- assert_eq!(Some(format!("direnv loaded/allowed ")), renderer.collect());
+ assert_eq!(
+ Some("direnv loaded/allowed ".to_string()),
+ renderer.collect()
+ );
dir.close()
}
@@ -205,7 +208,7 @@ mod tests {
let dir = tempfile::tempdir()?;
let rc_path = dir.path().join(".envrc");
- std::fs::File::create(&rc_path)?.sync_all()?;
+ std::fs::File::create(rc_path)?.sync_all()?;
let renderer = ModuleRenderer::new("direnv")
.config(toml::toml! {
@@ -221,13 +224,16 @@ mod tests {
}),
);
- assert_eq!(Some(format!("direnv loaded/denied ")), renderer.collect());
+ assert_eq!(
+ Some("direnv loaded/denied ".to_string()),
+ renderer.collect()
+ );
dir.close()
}
fn status_cmd_output_without_rc() -> String {
String::from(
- r#"\
+ r"\
direnv exec path /usr/bin/direnv
DIRENV_CONFIG /home/test/.config/direnv
bash_path /usr/bin/bash
@@ -236,7 +242,7 @@ warn_timeout 5s
whitelist.prefix []
whitelist.exact map[]
No .envrc or .env loaded
-No .envrc or .env found"#,
+No .envrc or .env found",
)
}
fn status_cmd_output_with_rc(dir: impl AsRef, loaded: bool, allowed: bool) -> String {
diff --git a/src/modules/dotnet.rs b/src/modules/dotnet.rs
index e3c59008..4539b4d5 100644
--- a/src/modules/dotnet.rs
+++ b/src/modules/dotnet.rs
@@ -599,13 +599,13 @@ mod tests {
}
fn make_csproj_with_tfm(tfm_element: &str, tfm: &str) -> String {
- let json_text = r#"
+ let json_text = r"
TFM_VALUE
- "#;
+ ";
json_text
.replace("TFM_ELEMENT", tfm_element)
.replace("TFM_VALUE", tfm)
diff --git a/src/modules/fossil_metrics.rs b/src/modules/fossil_metrics.rs
index 5ec97b6c..45ceb2b4 100644
--- a/src/modules/fossil_metrics.rs
+++ b/src/modules/fossil_metrics.rs
@@ -287,10 +287,10 @@ mod tests {
"{}{}",
expect_added
.map(|added| format!("{} ", expect_added_style.paint(format!("+{added}"))))
- .unwrap_or(String::from("")),
+ .unwrap_or_default(),
expect_deleted
.map(|deleted| format!("{} ", expect_deleted_style.paint(format!("-{deleted}"))))
- .unwrap_or(String::from("")),
+ .unwrap_or_default(),
));
assert_eq!(expected, actual);
}
diff --git a/src/modules/kubernetes.rs b/src/modules/kubernetes.rs
index c56514ba..042f4773 100644
--- a/src/modules/kubernetes.rs
+++ b/src/modules/kubernetes.rs
@@ -21,7 +21,7 @@ fn get_current_kube_context_name(filename: path::PathBuf) -> Option {
let contents = utils::read_file(filename).ok()?;
let yaml_docs = YamlLoader::load_from_str(&contents).ok()?;
- let conf = yaml_docs.get(0)?;
+ let conf = yaml_docs.first()?;
conf["current-context"]
.as_str()
.filter(|s| !s.is_empty())
@@ -35,7 +35,7 @@ fn get_kube_ctx_components(
let contents = utils::read_file(filename).ok()?;
let yaml_docs = YamlLoader::load_from_str(&contents).ok()?;
- let conf = yaml_docs.get(0)?;
+ let conf = yaml_docs.first()?;
let contexts = conf["contexts"].as_vec()?;
// Find the context with the name we're looking for
@@ -118,16 +118,13 @@ pub fn module<'a>(context: &'a Context) -> Option> {
.any(|v| !v.is_empty());
let is_kube_project = have_scan_config.then(|| {
- context
- .try_begin_scan()
- .map(|scanner| {
- scanner
- .set_files(&config.detect_files)
- .set_folders(&config.detect_folders)
- .set_extensions(&config.detect_extensions)
- .is_match()
- })
- .unwrap_or(false)
+ context.try_begin_scan().map_or(false, |scanner| {
+ scanner
+ .set_files(&config.detect_files)
+ .set_folders(&config.detect_folders)
+ .set_extensions(&config.detect_extensions)
+ .is_match()
+ })
});
if !is_kube_project.unwrap_or(true) {
diff --git a/src/modules/nix_shell.rs b/src/modules/nix_shell.rs
index d8666ee8..4d5cc9a1 100644
--- a/src/modules/nix_shell.rs
+++ b/src/modules/nix_shell.rs
@@ -23,7 +23,7 @@ impl NixShellType {
};
if use_heuristic {
- Self::in_new_nix_shell(context).map(|_| Unknown)
+ Self::in_new_nix_shell(context).map(|()| Unknown)
} else {
None
}
diff --git a/src/modules/openstack.rs b/src/modules/openstack.rs
index 35c488ba..d5e59f63 100644
--- a/src/modules/openstack.rs
+++ b/src/modules/openstack.rs
@@ -27,7 +27,7 @@ fn get_osp_project_from_config(context: &Context, osp_cloud: &str) -> Option Some(("v1.40.0", "x86_64-unknown-linux-gnu")),
diff --git a/src/modules/shlvl.rs b/src/modules/shlvl.rs
index 48d22ec8..03e32728 100644
--- a/src/modules/shlvl.rs
+++ b/src/modules/shlvl.rs
@@ -242,7 +242,7 @@ mod tests {
disabled = false
threshold = threshold
})
- .env(SHLVL_ENV_VAR, format!("{}", shlvl))
+ .env(SHLVL_ENV_VAR, format!("{shlvl}"))
.collect()
}
diff --git a/src/print.rs b/src/print.rs
index 4fcba218..78c3dd6c 100644
--- a/src/print.rs
+++ b/src/print.rs
@@ -391,7 +391,7 @@ pub fn format_duration(duration: &Duration) -> String {
/// Return the modules from $all that are not already in the list
fn all_modules_uniq(module_list: &BTreeSet) -> Vec {
let mut prompt_order: Vec = Vec::new();
- for module in PROMPT_ORDER.iter() {
+ for module in PROMPT_ORDER {
if !module_list.contains(*module) {
prompt_order.push(String::from(*module))
}
@@ -452,7 +452,7 @@ fn load_formatter_and_modules<'a>(context: &'a Context) -> (StringFormatter<'a>,
let modules = [&lf, &rf]
.into_iter()
.flatten()
- .flat_map(|f| f.get_variables())
+ .flat_map(VariableHolder::get_variables)
.collect();
let main_formatter = match context.target {
diff --git a/src/utils.rs b/src/utils.rs
index 0459f5f7..7eaeba3f 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -71,7 +71,7 @@ pub fn write_file, S: AsRef>(file_name: P, text: S) -> Resul
};
match file.write_all(text.as_bytes()) {
- Ok(_) => {
+ Ok(()) => {
log::trace!("File {file_name:?} written successfully");
}
Err(err) => {
From adc1b2503ea63f4ec147554428be98f8037ee8e0 Mon Sep 17 00:00:00 2001
From: Andre Wiggins <459878+andrewiggins@users.noreply.github.com>
Date: Sat, 30 Dec 2023 08:32:11 -0800
Subject: [PATCH 056/651] docs(install): Add FAQ entry for installing Starship
without sudo (#5648)
Add FAQ entry for installing Starship without sudo
Per [the comment](https://github.com/starship/starship/issues/5190#issuecomment-1553411366) in #5190, I've added an FAQ entry that includes an example script to install Starship without requiring `sudo`.
---
docs/faq/README.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/docs/faq/README.md b/docs/faq/README.md
index 98ceb0ba..977c7ae6 100644
--- a/docs/faq/README.md
+++ b/docs/faq/README.md
@@ -144,3 +144,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
From a944dcfa146bb811439bc7b75a49e2b5f0aac922 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 30 Dec 2023 16:29:54 +0000
Subject: [PATCH 057/651] build(deps): update rust crate shadow-rs to 0.26.0
---
Cargo.lock | 4 ++--
Cargo.toml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 3391e755..1b4892e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2735,9 +2735,9 @@ dependencies = [
[[package]]
name = "shadow-rs"
-version = "0.25.0"
+version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "615d846f7174a0850dca101bca72f6913e3376a64c5fda2b965d7fc3d1ff60cb"
+checksum = "878cb1e3162d98ee1016b832efbb683ad6302b462a2894c54f488dc0bd96f11c"
dependencies = [
"const_format",
"is_debug",
diff --git a/Cargo.toml b/Cargo.toml
index c7833b5b..65e28985 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -72,7 +72,7 @@ semver = "1.0.20"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
sha1 = "0.10.6"
-shadow-rs = { version = "0.25.0", default-features = false }
+shadow-rs = { version = "0.26.0", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.8.2", optional = true }
@@ -117,7 +117,7 @@ features = [
nix = { version = "0.27.1", default-features = false, features = ["feature", "fs", "user"] }
[build-dependencies]
-shadow-rs = { version = "0.25.0", default-features = false }
+shadow-rs = { version = "0.26.0", default-features = false }
dunce = "1.0.4"
[target.'cfg(windows)'.build-dependencies]
From a3b6e8f92c4453f208c74ab7b275eb83e4c74fa6 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 30 Dec 2023 16:48:27 +0000
Subject: [PATCH 058/651] build(deps): update rust crate clap to 4.4.12
---
Cargo.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Cargo.toml b/Cargo.toml
index 65e28985..7a3ca64a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.11", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.4.12", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.5"
dirs-next = "2.0.0"
dunce = "1.0.4"
From cdcfc367b572a141d9bb5bf1f4147819276e3107 Mon Sep 17 00:00:00 2001
From: Sebastian Thiel
Date: Sun, 31 Dec 2023 15:53:51 +0100
Subject: [PATCH 059/651] build(deps): update rust crate gix to 0.57.0 (#5664)
* build(deps): update rust crate gix to 0.57.0
* chore(context): explicitly avoid erroring on no git-ceiling-dir-match
See: https://github.com/Byron/gitoxide/pull/1191
Co-Authored-By: Sebastian Thiel
---------
Co-authored-by: David Knaack
---
Cargo.lock | 165 +++++++++++++++++++++++++++----------------------
Cargo.toml | 4 +-
src/context.rs | 28 +++++----
3 files changed, 110 insertions(+), 87 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 1b4892e7..08d6b903 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1036,9 +1036,9 @@ dependencies = [
[[package]]
name = "gix"
-version = "0.56.0"
+version = "0.57.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b0dcdc9c60d66535897fa40a7ea2a635e72f99456b1d9ae86b7e170e80618cb"
+checksum = "6dd025382892c7b500a9ce1582cd803f9c2ebfe44aff52e9c7f86feee7ced75e"
dependencies = [
"gix-actor",
"gix-commitgraph",
@@ -1078,9 +1078,9 @@ dependencies = [
[[package]]
name = "gix-actor"
-version = "0.28.1"
+version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2eadca029ef716b4378f7afb19f7ee101fde9e58ba1f1445971315ac866db417"
+checksum = "da27b5ab4ab5c75ff891dccd48409f8cc53c28a79480f1efdd33184b2dc1d958"
dependencies = [
"bstr",
"btoi",
@@ -1092,27 +1092,27 @@ dependencies = [
[[package]]
name = "gix-bitmap"
-version = "0.2.8"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d49e1a13a30d3f88be4bceae184dd13a2d3fb9ffa7515f7ed7ae771b857f4916"
+checksum = "78b6cd0f246180034ddafac9b00a112f19178135b21eb031b3f79355891f7325"
dependencies = [
"thiserror",
]
[[package]]
name = "gix-chunk"
-version = "0.4.5"
+version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d411ecd9b558b0c20b3252b7e409eec48eabc41d18324954fe526bac6e2db55f"
+checksum = "003ec6deacf68076a0c157271a127e0bb2c031c1a41f7168cbe5d248d9b85c78"
dependencies = [
"thiserror",
]
[[package]]
name = "gix-commitgraph"
-version = "0.22.1"
+version = "0.23.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85a7007ba021f059803afaf6f8a48872422abc20550ac12ede6ddea2936cec36"
+checksum = "8a39c675fd737cb43a2120eddf1aa652c19d76b28d79783a198ac1b398ed9ce6"
dependencies = [
"bstr",
"gix-chunk",
@@ -1124,9 +1124,9 @@ dependencies = [
[[package]]
name = "gix-config"
-version = "0.32.1"
+version = "0.33.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0341471d55d8676e98b88e121d7065dfa4c9c5acea4b6d6ecdd2846e85cce0c3"
+checksum = "367304855b369cadcac4ee5fb5a3a20da9378dd7905106141070b79f85241079"
dependencies = [
"bstr",
"gix-config-value",
@@ -1145,9 +1145,9 @@ dependencies = [
[[package]]
name = "gix-config-value"
-version = "0.14.1"
+version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6419db582ea84dfb58c7e7b0af7fd62c808aa14954af2936a33f89b0f4ed018e"
+checksum = "52e0be46f4cf1f8f9e88d0e3eb7b29718aff23889563249f379119bd1ab6910e"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1158,9 +1158,9 @@ dependencies = [
[[package]]
name = "gix-date"
-version = "0.8.1"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "468dfbe411f335f01525a1352271727f8e7772075a93fa747260f502086b30be"
+checksum = "fb7f3dfb72bebe3449b5e642be64e3c6ccbe9821c8b8f19f487cf5bfbbf4067e"
dependencies = [
"bstr",
"itoa",
@@ -1170,9 +1170,9 @@ dependencies = [
[[package]]
name = "gix-diff"
-version = "0.38.0"
+version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8119a985887cfe68f4bdf92e51bd64bc758a73882d82fcfc03ebcb164441c85d"
+checksum = "fd6a0454f8c42d686f17e7f084057c717c082b7dbb8209729e4e8f26749eb93a"
dependencies = [
"bstr",
"gix-hash",
@@ -1182,9 +1182,9 @@ dependencies = [
[[package]]
name = "gix-discover"
-version = "0.27.0"
+version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6fad89416ebe0b3b7df78464124e2a02417b6cd3743d48ad93df86f4d2929c07"
+checksum = "b8d7b2896edc3d899d28a646ccc6df729827a6600e546570b2783466404a42d6"
dependencies = [
"bstr",
"dunce",
@@ -1197,9 +1197,9 @@ dependencies = [
[[package]]
name = "gix-features"
-version = "0.36.1"
+version = "0.37.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d46a4a5c6bb5bebec9c0d18b65ada20e6517dbd7cf855b87dd4bbdce3a771b2"
+checksum = "77a80f0fe688d654c2a741751578b11131071026d1934d03c1820d6d767525ce"
dependencies = [
"crc32fast",
"crossbeam-channel",
@@ -1219,18 +1219,18 @@ dependencies = [
[[package]]
name = "gix-fs"
-version = "0.8.1"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20e86eb040f5776a5ade092282e51cdcad398adb77d948b88d17583c2ae4e107"
+checksum = "7555c23a005537434bbfcb8939694e18cad42602961d0de617f8477cc2adecdd"
dependencies = [
"gix-features",
]
[[package]]
name = "gix-glob"
-version = "0.14.1"
+version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5db19298c5eeea2961e5b3bf190767a2d1f09b8802aeb5f258e42276350aff19"
+checksum = "ae6232f18b262770e343dcdd461c0011c9b9ae27f0c805e115012aa2b902c1b8"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1240,9 +1240,9 @@ dependencies = [
[[package]]
name = "gix-hash"
-version = "0.13.3"
+version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f8cf8c2266f63e582b7eb206799b63aa5fa68ee510ad349f637dfe2d0653de0"
+checksum = "b0ed89cdc1dce26685c80271c4287077901de3c3dd90234d5fa47c22b2268653"
dependencies = [
"faster-hex",
"thiserror",
@@ -1250,9 +1250,9 @@ dependencies = [
[[package]]
name = "gix-hashtable"
-version = "0.4.1"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "feb61880816d7ec4f0b20606b498147d480860ddd9133ba542628df2f548d3ca"
+checksum = "ebe47d8c0887f82355e2e9e16b6cecaa4d5e5346a7a474ca78ff94de1db35a5b"
dependencies = [
"gix-hash",
"hashbrown 0.14.3",
@@ -1261,9 +1261,9 @@ dependencies = [
[[package]]
name = "gix-index"
-version = "0.27.1"
+version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3f308f5cd2992e96a274b0d1931e9a0e44fdcba87695ead3f6df30d8a697e9c"
+checksum = "bd97a226ea6a7669109b84fa045bada556ec925e25145cb458adb4958b023ad0"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1286,9 +1286,9 @@ dependencies = [
[[package]]
name = "gix-lock"
-version = "11.0.1"
+version = "12.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e5c65e6a29830a435664891ced3f3c1af010f14900226019590ee0971a22f37"
+checksum = "f40a439397f1e230b54cf85d52af87e5ea44cc1e7748379785d3f6d03d802b00"
dependencies = [
"gix-tempfile",
"gix-utils",
@@ -1297,9 +1297,9 @@ dependencies = [
[[package]]
name = "gix-macros"
-version = "0.1.1"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02a5bcaf6704d9354a3071cede7e77d366a5980c7352e102e2c2f9b645b1d3ae"
+checksum = "d75e7ab728059f595f6ddc1ad8771b8d6a231971ae493d9d5948ecad366ee8bb"
dependencies = [
"proc-macro2",
"quote",
@@ -1308,9 +1308,9 @@ dependencies = [
[[package]]
name = "gix-object"
-version = "0.39.0"
+version = "0.40.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "febf79c5825720c1c63fe974c7bbe695d0cb54aabad73f45671c60ce0e501e33"
+checksum = "0c89402e8faa41b49fde348665a8f38589e461036475af43b6b70615a6a313a2"
dependencies = [
"bstr",
"btoi",
@@ -1327,9 +1327,9 @@ dependencies = [
[[package]]
name = "gix-odb"
-version = "0.55.0"
+version = "0.56.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fae5f971540c99c6ecc8d4368ecc9d18a9dc8b9391025c68c4399747dc93bac"
+checksum = "46ae6da873de41c6c2b73570e82c571b69df5154dcd8f46dfafc6687767c33b1"
dependencies = [
"arc-swap",
"gix-date",
@@ -1346,9 +1346,9 @@ dependencies = [
[[package]]
name = "gix-pack"
-version = "0.45.0"
+version = "0.46.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4569491c92446fddf373456ff360aff9a9effd627b40a70f2d7914dcd75a3205"
+checksum = "782b4d42790a14072d5c400deda9851f5765f50fe72bca6dece0da1cd6f05a9a"
dependencies = [
"clru",
"gix-chunk",
@@ -1367,9 +1367,9 @@ dependencies = [
[[package]]
name = "gix-path"
-version = "0.10.1"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d86d6fac2fabe07b67b7835f46d07571f68b11aa1aaecae94fe722ea4ef305e1"
+checksum = "b8dd0998ab245f33d40ca2267e58d542fe54185ebd1dc41923346cf28d179fb6"
dependencies = [
"bstr",
"gix-trace",
@@ -1380,9 +1380,9 @@ dependencies = [
[[package]]
name = "gix-quote"
-version = "0.4.8"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f84845efa535468bc79c5a87b9d29219f1da0313c8ecf0365a5daa7e72786f2"
+checksum = "9f7dc10303d73a960d10fb82f81188b036ac3e6b11b5795b20b1a60b51d1321f"
dependencies = [
"bstr",
"btoi",
@@ -1391,9 +1391,9 @@ dependencies = [
[[package]]
name = "gix-ref"
-version = "0.39.1"
+version = "0.40.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b2069adc212cf7f3317ef55f6444abd06c50f28479dbbac5a86acf3b05cbbfe"
+checksum = "64d9bd1984638d8f3511a2fcbe84fcedb8a5b5d64df677353620572383f42649"
dependencies = [
"gix-actor",
"gix-date",
@@ -1412,9 +1412,9 @@ dependencies = [
[[package]]
name = "gix-refspec"
-version = "0.20.0"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76d9d3b82e1ee78fc0dc1c37ea5ea76c2dbc73f407db155f0dfcea285e583bee"
+checksum = "be219df5092c1735abb2a53eccdf775e945eea6986ee1b6e7a5896dccc0be704"
dependencies = [
"bstr",
"gix-hash",
@@ -1426,9 +1426,9 @@ dependencies = [
[[package]]
name = "gix-revision"
-version = "0.24.0"
+version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe5dd51710ce5434bc315ea30394fab483c5377276494edd79222b321a5a9544"
+checksum = "aa78e1df3633bc937d4db15f8dca2abdb1300ca971c0fabcf9fa97e38cf4cd9f"
dependencies = [
"bstr",
"gix-date",
@@ -1442,9 +1442,9 @@ dependencies = [
[[package]]
name = "gix-revwalk"
-version = "0.10.0"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69d4ed2493ca94a475fdf147138e1ef8bab3b6ebb56abf3d9bda1c05372ec1dd"
+checksum = "702de5fe5c2bbdde80219f3a8b9723eb927466e7ecd187cfd1b45d986408e45f"
dependencies = [
"gix-commitgraph",
"gix-date",
@@ -1457,21 +1457,21 @@ dependencies = [
[[package]]
name = "gix-sec"
-version = "0.10.1"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a36ea2c5907d64a9b4b5d3cc9f430e6c30f0509646b5e38eb275ca57c5bf29e2"
+checksum = "78f6dce0c6683e2219e8169aac4b1c29e89540a8262fef7056b31d80d969408c"
dependencies = [
"bitflags 2.4.1",
"gix-path",
"libc",
- "windows 0.48.0",
+ "windows 0.52.0",
]
[[package]]
name = "gix-tempfile"
-version = "11.0.1"
+version = "12.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "388dd29114a86ec69b28d1e26d6d63a662300ecf61ab3f4cc578f7d7dc9e7e23"
+checksum = "a8ef376d718b1f5f119b458e21b00fbf576bc9d4e26f8f383d29f5ffe3ba3eaa"
dependencies = [
"gix-fs",
"libc",
@@ -1482,15 +1482,15 @@ dependencies = [
[[package]]
name = "gix-trace"
-version = "0.1.4"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b686a35799b53a9825575ca3f06481d0a053a409c4d97ffcf5ddd67a8760b497"
+checksum = "e8e1127ede0475b58f4fe9c0aaa0d9bb0bad2af90bbd93ccd307c8632b863d89"
[[package]]
name = "gix-traverse"
-version = "0.35.0"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df2112088122a0206592c84fbd42020db63b2ccaed66a0293779f2e5fbf80474"
+checksum = "cb64213e52e1b726cb04581690c1e98b5910f983b977d5e9f2eb09f1a7fea6d2"
dependencies = [
"gix-commitgraph",
"gix-date",
@@ -1504,9 +1504,9 @@ dependencies = [
[[package]]
name = "gix-url"
-version = "0.25.2"
+version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c427a1a11ccfa53a4a2da47d9442c2241deee63a154bc15cc14b8312fbc4005"
+checksum = "8f0f17cceb7552a231d1fec690bc2740c346554e3be6f5d2c41dfa809594dc44"
dependencies = [
"bstr",
"gix-features",
@@ -1518,18 +1518,18 @@ dependencies = [
[[package]]
name = "gix-utils"
-version = "0.1.6"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f82c41937f00e15a1f6cb0b55307f0ca1f77f4407ff2bf440be35aa688c6a3e"
+checksum = "de6225e2de30b6e9bca2d9f1cc4731640fcef0fb3cabddceee366e7e85d3e94f"
dependencies = [
"fastrand 2.0.1",
]
[[package]]
name = "gix-validate"
-version = "0.8.1"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75b7d8e4274be69f284bbc7e6bb2ccf7065dbcdeba22d8c549f2451ae426883f"
+checksum = "ac7cc36f496bd5d96cdca0f9289bb684480725d40db60f48194aa7723b883854"
dependencies = [
"bstr",
"thiserror",
@@ -1597,7 +1597,7 @@ dependencies = [
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
- "windows-core",
+ "windows-core 0.51.1",
]
[[package]]
@@ -2382,9 +2382,9 @@ dependencies = [
[[package]]
name = "prodash"
-version = "26.2.2"
+version = "28.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "794b5bf8e2d19b53dcdcec3e4bba628e20f5b6062503ba89281fa7037dd7bbcf"
+checksum = "744a264d26b88a6a7e37cbad97953fa233b94d585236310bcbc88474b4092d79"
[[package]]
name = "quick-xml"
@@ -3487,10 +3487,20 @@ version = "0.51.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9"
dependencies = [
- "windows-core",
+ "windows-core 0.51.1",
"windows-targets 0.48.5",
]
+[[package]]
+name = "windows"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
+dependencies = [
+ "windows-core 0.52.0",
+ "windows-targets 0.52.0",
+]
+
[[package]]
name = "windows-core"
version = "0.51.1"
@@ -3500,6 +3510,15 @@ dependencies = [
"windows-targets 0.48.5",
]
+[[package]]
+name = "windows-core"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
+dependencies = [
+ "windows-targets 0.52.0",
+]
+
[[package]]
name = "windows-sys"
version = "0.48.0"
diff --git a/Cargo.toml b/Cargo.toml
index 7a3ca64a..9ea7589d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -48,8 +48,8 @@ clap_complete = "4.4.5"
dirs-next = "2.0.0"
dunce = "1.0.4"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
-gix = { version = "0.56.0", default-features = false, features = ["max-performance-safe", "revision"] }
-gix-features = { version = "0.36.1", optional = true }
+gix = { version = "0.57.0", default-features = false, features = ["max-performance-safe", "revision"] }
+gix-features = { version = "0.37.0", optional = true }
indexmap = { version = "2.1.0", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
diff --git a/src/context.rs b/src/context.rs
index 1bd9c560..4a651908 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -319,7 +319,10 @@ impl<'a> Context<'a> {
let shared_repo =
match ThreadSafeRepository::discover_with_environment_overrides_opts(
&self.current_dir,
- Default::default(),
+ gix::discover::upwards::Options {
+ match_ceiling_dir_or_error: false,
+ ..Default::default()
+ },
git_open_opts_map,
) {
Ok(repo) => repo,
@@ -336,7 +339,10 @@ impl<'a> Context<'a> {
);
let branch = get_current_branch(&repository);
- let remote = get_remote_repository_info(&repository, branch.as_deref());
+ let remote = get_remote_repository_info(
+ &repository,
+ branch.as_ref().map(|name| name.as_ref()),
+ );
let path = repository.path().to_path_buf();
let fs_monitor_value_is_true = repository
@@ -346,7 +352,7 @@ impl<'a> Context<'a> {
Ok(Repo {
repo: shared_repo,
- branch,
+ branch: branch.map(|b| b.shorten().to_string()),
workdir: repository.work_dir().map(PathBuf::from),
path,
state: repository.state(),
@@ -624,7 +630,8 @@ pub struct Repo {
pub repo: ThreadSafeRepository,
/// If `current_dir` is a git repository or is contained within one,
- /// this is the current branch name of that repo.
+ /// this is the short name of the current branch name of that repo,
+ /// i.e. `main`.
pub branch: Option,
/// If `current_dir` is a git repository or is contained within one,
@@ -788,24 +795,21 @@ impl<'a> ScanAncestors<'a> {
}
}
-fn get_current_branch(repository: &Repository) -> Option {
- let name = repository.head_name().ok()??;
- let shorthand = name.shorten();
-
- Some(shorthand.to_string())
+fn get_current_branch(repository: &Repository) -> Option {
+ repository.head_name().ok()?
}
fn get_remote_repository_info(
repository: &Repository,
- branch_name: Option<&str>,
+ branch_name: Option<&gix::refs::FullNameRef>,
) -> Option {
let branch_name = branch_name?;
let branch = repository
- .branch_remote_ref(branch_name)
+ .branch_remote_ref_name(branch_name, gix::remote::Direction::Fetch)
.and_then(std::result::Result::ok)
.map(|r| r.shorten().to_string());
let name = repository
- .branch_remote_name(branch_name)
+ .branch_remote_name(branch_name.shorten(), gix::remote::Direction::Fetch)
.map(|n| n.as_bstr().to_string());
Some(Remote { branch, name })
From d9198a8a155fbd373dacba3929a0e70b2e109e24 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 31 Dec 2023 14:54:28 +0000
Subject: [PATCH 060/651] build(deps): update gitoxide crates
---
Cargo.toml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 9ea7589d..c9dee25d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -48,8 +48,8 @@ clap_complete = "4.4.5"
dirs-next = "2.0.0"
dunce = "1.0.4"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
-gix = { version = "0.57.0", default-features = false, features = ["max-performance-safe", "revision"] }
-gix-features = { version = "0.37.0", optional = true }
+gix = { version = "0.57.1", default-features = false, features = ["max-performance-safe", "revision"] }
+gix-features = { version = "0.37.1", optional = true }
indexmap = { version = "2.1.0", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
From 72a104979a26889fc91d315d272f7c7a39a94b08 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 1 Jan 2024 01:43:03 +0000
Subject: [PATCH 061/651] build(deps): update rust crate serde_json to 1.0.109
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 08d6b903..1a01e707 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2653,9 +2653,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.108"
+version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b"
+checksum = "cb0652c533506ad7a2e353cce269330d6afd8bdfb6d75e0ace5b35aacbd7b9e9"
dependencies = [
"itoa",
"ryu",
diff --git a/Cargo.toml b/Cargo.toml
index c9dee25d..182e6441 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ regex = { version = "1.10.2", default-features = false, features = ["perf", "std
rust-ini = "0.20.0"
semver = "1.0.20"
serde = { version = "1.0.193", features = ["derive"] }
-serde_json = "1.0.108"
+serde_json = "1.0.109"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.0", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
From 551b82b66f786ec9b8317115f02456cc83a72f9d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 2 Jan 2024 10:50:16 +0000
Subject: [PATCH 062/651] build(deps): update rust crate serde to 1.0.194
---
Cargo.lock | 46 +++++++++++++++++++++++-----------------------
Cargo.toml | 2 +-
2 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 1a01e707..33ada3c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -231,7 +231,7 @@ checksum = "5fd55a5ba1179988837d24ab4c7cc8ed6efdeff578ede0416b4225a5fca35bd0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -266,7 +266,7 @@ checksum = "fdf6721fb0140e4f897002dd086c06f6c27775df19cfe1fccb21181a48fd2c98"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -448,7 +448,7 @@ dependencies = [
"heck",
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -787,7 +787,7 @@ checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -1303,7 +1303,7 @@ checksum = "d75e7ab728059f595f6ddc1ad8771b8d6a231971ae493d9d5948ecad366ee8bb"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -1922,7 +1922,7 @@ dependencies = [
"cfg-if",
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -2199,7 +2199,7 @@ dependencies = [
"pest_meta",
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -2361,9 +2361,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.71"
+version = "1.0.74"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75cb1540fadbd5b8fbccc4dddad2734eba435053f725621c070711a14bb5f4b8"
+checksum = "2de98502f212cfcea8d0bb305bd0f49d7ebdd75b64ba0a68f937d888f4e0d6db"
dependencies = [
"unicode-ident",
]
@@ -2406,9 +2406,9 @@ dependencies = [
[[package]]
name = "quote"
-version = "1.0.33"
+version = "1.0.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
+checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
dependencies = [
"proc-macro2",
]
@@ -2622,22 +2622,22 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.193"
+version = "1.0.194"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89"
+checksum = "0b114498256798c94a0689e1a15fec6005dee8ac1f41de56404b67afc2a4b773"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.193"
+version = "1.0.194"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3"
+checksum = "a3385e45322e8f9931410f01b3031ec534c3947d0e94c18049af4d9f9907d4e0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -2670,7 +2670,7 @@ checksum = "3081f5ffbb02284dda55132aa26daecedd7372a42417bbbab6f14ab7d6bb9145"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -2919,9 +2919,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.43"
+version = "2.0.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee659fb5f3d355364e1f3e5bc10fb82068efbf824a1e9d1c9504244a6469ad53"
+checksum = "89456b690ff72fddcecf231caedbe615c59480c93358a93dfae7fc29e3ebbf0e"
dependencies = [
"proc-macro2",
"quote",
@@ -3052,7 +3052,7 @@ checksum = "e7fbe9b594d6568a6a1443250a7e67d80b74e1e96f6d1715e1e21cc1888291d3"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -3184,7 +3184,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
]
[[package]]
@@ -3389,7 +3389,7 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
"wasm-bindgen-shared",
]
@@ -3411,7 +3411,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.43",
+ "syn 2.0.46",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
diff --git a/Cargo.toml b/Cargo.toml
index 182e6441..8762c11d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -69,7 +69,7 @@ rayon = "1.8.0"
regex = { version = "1.10.2", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.20"
-serde = { version = "1.0.193", features = ["derive"] }
+serde = { version = "1.0.194", features = ["derive"] }
serde_json = "1.0.109"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.0", default-features = false }
From a83e10776ba37bd1ab439e5e4d0125a06e947728 Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Tue, 2 Jan 2024 15:45:06 +0100
Subject: [PATCH 063/651] revert: refactor(modules): use whoami crate to get
username (#5669)
Revert "refactor(modules): use whoami crate to get username"
---
Cargo.lock | 18 +++++++++++-------
Cargo.toml | 2 +-
src/modules/hostname.rs | 4 ++--
src/modules/username.rs | 16 +++++++++++-----
4 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 33ada3c1..803bcfa7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1023,6 +1023,16 @@ dependencies = [
"version_check",
]
+[[package]]
+name = "gethostname"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0176e0459c2e4a1fe232f984bca6890e681076abb9934f6cea7c326f3fc47818"
+dependencies = [
+ "libc",
+ "windows-targets 0.48.5",
+]
+
[[package]]
name = "getrandom"
version = "0.2.11"
@@ -2830,6 +2840,7 @@ dependencies = [
"deelevate",
"dirs-next",
"dunce",
+ "gethostname",
"gix",
"gix-features",
"guess_host_triple",
@@ -2871,7 +2882,6 @@ dependencies = [
"urlencoding",
"versions",
"which",
- "whoami",
"windows 0.48.0",
"winres",
"yaml-rust",
@@ -3435,12 +3445,6 @@ dependencies = [
"windows-sys 0.48.0",
]
-[[package]]
-name = "whoami"
-version = "1.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22fc3756b8a9133049b26c7f61ab35416c130e8c09b660f5b3958b446f52cc50"
-
[[package]]
name = "winapi"
version = "0.3.9"
diff --git a/Cargo.toml b/Cargo.toml
index 8762c11d..077659e4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -47,6 +47,7 @@ clap = { version = "4.4.12", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.5"
dirs-next = "2.0.0"
dunce = "1.0.4"
+gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.57.1", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.37.1", optional = true }
@@ -93,7 +94,6 @@ process_control = { version = "4.0.3", features = ["crossbeam-channel"] }
guess_host_triple = "0.1.3"
home = "0.5.9"
shell-words = "1.1.0"
-whoami = { version = "1.4.1", default-features = false }
[dependencies.schemars]
version = "0.8.16"
diff --git a/src/modules/hostname.rs b/src/modules/hostname.rs
index d5e967b6..8eec9b5f 100644
--- a/src/modules/hostname.rs
+++ b/src/modules/hostname.rs
@@ -23,7 +23,7 @@ pub fn module<'a>(context: &'a Context) -> Option> {
return None;
}
- let os_hostname: OsString = whoami::hostname_os();
+ let os_hostname: OsString = gethostname::gethostname();
let host = match os_hostname.into_string() {
Ok(host) => host,
@@ -87,7 +87,7 @@ mod tests {
macro_rules! get_hostname {
() => {
- if let Ok(hostname) = whoami::hostname_os().into_string() {
+ if let Ok(hostname) = gethostname::gethostname().into_string() {
hostname
} else {
println!(
diff --git a/src/modules/username.rs b/src/modules/username.rs
index 537e552f..af3fa6e5 100644
--- a/src/modules/username.rs
+++ b/src/modules/username.rs
@@ -2,15 +2,21 @@ use super::{Context, Module, ModuleConfig};
use crate::configs::username::UsernameConfig;
use crate::formatter::StringFormatter;
-#[cfg(test)]
+
+#[cfg(not(target_os = "windows"))]
+const USERNAME_ENV_VAR: &str = "USER";
+
+#[cfg(target_os = "windows")]
const USERNAME_ENV_VAR: &str = "USERNAME";
/// Creates a module with the current user's username
+///
+/// Will display the username if any of the following criteria are met:
+/// - The current user is root (UID = 0) [1]
+/// - The current user isn't the same as the one that is logged in (`$LOGNAME` != `$USER`) [2]
+/// - The user is currently connected as an SSH session (`$SSH_CONNECTION`) [3]
pub fn module<'a>(context: &'a Context) -> Option> {
- #[cfg(test)]
let mut username = context.get_env(USERNAME_ENV_VAR)?;
- #[cfg(not(test))]
- let mut username = whoami::username();
let mut module = context.new_module("username");
let config: UsernameConfig = UsernameConfig::try_load(module.config);
@@ -145,8 +151,8 @@ mod tests {
let actual = ModuleRenderer::new("username")
.env("SSH_CONNECTION", "192.168.223.17 36673 192.168.223.229 22")
.collect();
-
let expected = None;
+
assert_eq!(expected, actual);
}
From 1082afce0a27c5459d25998ea137067eb44dadab Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 2 Jan 2024 19:29:33 +0100
Subject: [PATCH 064/651] chore(master): release 1.17.1 (#5670)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
CHANGELOG.md | 12 ++++++++++++
Cargo.lock | 2 +-
Cargo.toml | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9de27f44..62053bcd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## [1.17.1](https://github.com/starship/starship/compare/v1.17.0...v1.17.1) (2024-01-02)
+
+
+### Bug Fixes
+
+* v1.17.0 post-release fix-ups ([#5660](https://github.com/starship/starship/issues/5660)) ([89dc192](https://github.com/starship/starship/commit/89dc19214bb671fe50a8f1be79a4594e7998ddea))
+
+
+### Reverts
+
+* refactor(modules): use whoami crate to get username ([#5669](https://github.com/starship/starship/issues/5669)) ([a83e107](https://github.com/starship/starship/commit/a83e10776ba37bd1ab439e5e4d0125a06e947728))
+
## [1.17.0](https://github.com/starship/starship/compare/v1.16.0...v1.17.0) (2023-12-28)
diff --git a/Cargo.lock b/Cargo.lock
index 803bcfa7..3017789f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2832,7 +2832,7 @@ dependencies = [
[[package]]
name = "starship"
-version = "1.17.0"
+version = "1.17.1"
dependencies = [
"chrono",
"clap",
diff --git a/Cargo.toml b/Cargo.toml
index 077659e4..fb9e0a39 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "starship"
-version = "1.17.0"
+version = "1.17.1"
authors = ["Starship Contributors"]
build = "build.rs"
categories = ["command-line-utilities"]
From 1ddfed9ef5e59fe6e5f75fe5b10d52b20a7d9a20 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 2 Jan 2024 18:30:15 +0000
Subject: [PATCH 065/651] build(deps): update rust crate semver to 1.0.21
---
Cargo.lock | 6 +++---
Cargo.toml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 3017789f..c27d2cd4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2617,9 +2617,9 @@ dependencies = [
[[package]]
name = "semver"
-version = "1.0.20"
+version = "1.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090"
+checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0"
[[package]]
name = "semver-parser"
@@ -2864,7 +2864,7 @@ dependencies = [
"regex",
"rust-ini",
"schemars",
- "semver 1.0.20",
+ "semver 1.0.21",
"serde",
"serde_json",
"sha1",
diff --git a/Cargo.toml b/Cargo.toml
index fb9e0a39..15998174 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -69,7 +69,7 @@ rand = "0.8.5"
rayon = "1.8.0"
regex = { version = "1.10.2", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
-semver = "1.0.20"
+semver = "1.0.21"
serde = { version = "1.0.194", features = ["derive"] }
serde_json = "1.0.109"
sha1 = "0.10.6"
From 0f49a74c6a7053590082d88c04a91d9062795d4f Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 2 Jan 2024 14:45:47 +0000
Subject: [PATCH 066/651] build(deps): update rust crate serde_json to 1.0.110
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index c27d2cd4..b1503daa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2663,9 +2663,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.109"
+version = "1.0.110"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb0652c533506ad7a2e353cce269330d6afd8bdfb6d75e0ace5b35aacbd7b9e9"
+checksum = "6fbd975230bada99c8bb618e0c365c2eefa219158d5c6c29610fd09ff1833257"
dependencies = [
"itoa",
"ryu",
diff --git a/Cargo.toml b/Cargo.toml
index 15998174..4fbe6258 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,7 +71,7 @@ regex = { version = "1.10.2", default-features = false, features = ["perf", "std
rust-ini = "0.20.0"
semver = "1.0.21"
serde = { version = "1.0.194", features = ["derive"] }
-serde_json = "1.0.109"
+serde_json = "1.0.110"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.0", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
From 3a5c162c4f422b39a8868bbb4c4e327cb0cf5c88 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 2 Jan 2024 22:34:33 +0000
Subject: [PATCH 067/651] build(deps): update rust crate clap_complete to 4.4.6
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index b1503daa..01d3cc4e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,9 +432,9 @@ dependencies = [
[[package]]
name = "clap_complete"
-version = "4.4.5"
+version = "4.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a51919c5608a32e34ea1d6be321ad070065e17613e168c5b6977024290f2630b"
+checksum = "97aeaa95557bd02f23fbb662f981670c3d20c5a26e69f7354b28f57092437fcd"
dependencies = [
"clap",
]
diff --git a/Cargo.toml b/Cargo.toml
index 4fbe6258..72b14470 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.4.12", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.4.5"
+clap_complete = "4.4.6"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From de4e1fde2f4cd6a1ef7279b3dfe48123ffefbd6c Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 3 Jan 2024 04:34:35 +0000
Subject: [PATCH 068/651] build(deps): update crate-ci/typos action to v1.17.0
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index 4ccac96a..a42f1860 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- - uses: crate-ci/typos@v1.16.26
+ - uses: crate-ci/typos@v1.17.0
From eef94106b0a7e4abf0be68e268ac941784a72427 Mon Sep 17 00:00:00 2001
From: Matan Kushner
Date: Thu, 4 Jan 2024 17:06:28 +0700
Subject: [PATCH 069/651] docs(i18n): new Crowdin updates (#5661)
* New translations readme.md (French)
* New translations readme.md (French)
* New translations readme.md (French)
* New translations readme.md (French)
* New translations readme.md (Spanish)
* New translations readme.md (Arabic)
* New translations readme.md (German)
* New translations readme.md (Italian)
* New translations readme.md (Japanese)
* New translations readme.md (Korean)
* New translations readme.md (Dutch)
* New translations readme.md (Norwegian)
* New translations readme.md (Polish)
* New translations readme.md (Portuguese)
* New translations readme.md (Russian)
* New translations readme.md (Turkish)
* New translations readme.md (Ukrainian)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Vietnamese)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Indonesian)
* New translations readme.md (Bengali)
* New translations readme.md (Sorani (Kurdish))
* New translations readme.md (Spanish)
* New translations readme.md (Spanish)
---
docs/ar-SA/faq/README.md | 8 ++++++++
docs/bn-BD/faq/README.md | 8 ++++++++
docs/ckb-IR/faq/README.md | 8 ++++++++
docs/de-DE/faq/README.md | 8 ++++++++
docs/es-ES/faq/README.md | 8 ++++++++
docs/fr-FR/advanced-config/README.md | 2 +-
docs/fr-FR/faq/README.md | 10 +++++++++-
docs/fr-FR/guide/README.md | 2 +-
docs/id-ID/faq/README.md | 8 ++++++++
docs/it-IT/faq/README.md | 8 ++++++++
docs/ja-JP/faq/README.md | 8 ++++++++
docs/ko-KR/faq/README.md | 8 ++++++++
docs/nl-NL/faq/README.md | 8 ++++++++
docs/no-NO/faq/README.md | 8 ++++++++
docs/pl-PL/faq/README.md | 8 ++++++++
docs/pt-BR/faq/README.md | 8 ++++++++
docs/pt-PT/faq/README.md | 8 ++++++++
docs/ru-RU/faq/README.md | 8 ++++++++
docs/tr-TR/faq/README.md | 8 ++++++++
docs/uk-UA/faq/README.md | 8 ++++++++
docs/vi-VN/faq/README.md | 8 ++++++++
docs/zh-CN/faq/README.md | 8 ++++++++
docs/zh-TW/faq/README.md | 8 ++++++++
23 files changed, 171 insertions(+), 3 deletions(-)
diff --git a/docs/ar-SA/faq/README.md b/docs/ar-SA/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/ar-SA/faq/README.md
+++ b/docs/ar-SA/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/bn-BD/faq/README.md b/docs/bn-BD/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/bn-BD/faq/README.md
+++ b/docs/bn-BD/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/ckb-IR/faq/README.md b/docs/ckb-IR/faq/README.md
index b86e8a5f..34bac692 100644
--- a/docs/ckb-IR/faq/README.md
+++ b/docs/ckb-IR/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/de-DE/faq/README.md b/docs/de-DE/faq/README.md
index ce856da8..49cb1693 100644
--- a/docs/de-DE/faq/README.md
+++ b/docs/de-DE/faq/README.md
@@ -120,3 +120,11 @@ Wenn Starship mit Hilfe des Installationsscripts installiert wurde, entfernt der
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/es-ES/faq/README.md b/docs/es-ES/faq/README.md
index e536bfb0..01c3d036 100644
--- a/docs/es-ES/faq/README.md
+++ b/docs/es-ES/faq/README.md
@@ -120,3 +120,11 @@ Si Starship fue instalado usando el guión de instalación, el siguiente comando
# Localiza y elimina el binario de starship
sh -c 'rm "$(comando -v 'starship')"'
```
+
+## ¿Cómo instalo Starship sin `sudo`?
+
+El script de instalación del shell (`https://starship.rs/install.sh`) solo intenta usar `sudo` si el directorio de instalación no es escribible para el usuario actual. El directorio de instalación por defecto es el valor de la variable de entorno `$BIN_DIR` o `/usr/local/bin` si `$BIN_DIR` no está establecido. Si en su lugar establece el directorio de instalación a uno que tenga permisos de escritura para su usuario, deberías ser capaz de instalar starship sin `sudo`. Por ejemplo, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` usa la opción de línea de comando `b` del script de instalación para establecer el directorio de instalación a `~/.local/bin`.
+
+Para una instalación no interactiva de Starship, no te olvides de añadir la opción `y` para omitir la confirmación. Consulte la fuente del script de instalación para ver una lista de todas las opciones de instalación soportadas.
+
+Al usar el gestor de paquetes, vea la documentación de su gestor de paquetes acerca de instalación con o sin `sudo`.
diff --git a/docs/fr-FR/advanced-config/README.md b/docs/fr-FR/advanced-config/README.md
index bb090d08..28cfcfd9 100644
--- a/docs/fr-FR/advanced-config/README.md
+++ b/docs/fr-FR/advanced-config/README.md
@@ -205,7 +205,7 @@ Certains shells peuvent gérer une invite de commande à droite, sur la même li
Note: l’invite à droite est une seule ligne, sur la même ligne que l’entrée. Pour aligner à droite les modules au-dessus de la ligne d’entrée d’une invite multiligne, voir le [module `fill`](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` est actuellement supporté pour les shells suivants : elvish, fish, zsh, xonsh, cmd, nushell.
### Exemple
diff --git a/docs/fr-FR/faq/README.md b/docs/fr-FR/faq/README.md
index 65066f8f..c7b201be 100644
--- a/docs/fr-FR/faq/README.md
+++ b/docs/fr-FR/faq/README.md
@@ -80,7 +80,7 @@ env STARSHIP_LOG=trace starship timings
Cela affichera le journal de suivi et un détail de tous les modules qui ont soit pris plus d’1ms pour s’exécuter, soit affiché quelque chose.
-Finally if you find a bug you can use the `bug-report` command to create a GitHub issue.
+Enfin, si vous trouvez un bug, vous pouvez utiliser la commande `bug-report` pour créer un ticket sur GitHub.
```sh
starship bug-report
@@ -120,3 +120,11 @@ Si Starship a été installé en utilisant le script d'installation, la commande
# Trouver et supprimer le binaire starship
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/fr-FR/guide/README.md b/docs/fr-FR/guide/README.md
index 781d03bd..81010479 100644
--- a/docs/fr-FR/guide/README.md
+++ b/docs/fr-FR/guide/README.md
@@ -35,7 +35,7 @@
diff --git a/docs/id-ID/faq/README.md b/docs/id-ID/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/id-ID/faq/README.md
+++ b/docs/id-ID/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/it-IT/faq/README.md b/docs/it-IT/faq/README.md
index 24c8cb70..00dc751e 100644
--- a/docs/it-IT/faq/README.md
+++ b/docs/it-IT/faq/README.md
@@ -120,3 +120,11 @@ Se Starship è stato installato utilizzando lo script di installazione, il segue
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/ja-JP/faq/README.md b/docs/ja-JP/faq/README.md
index 6a8bb91e..7b3b84b1 100644
--- a/docs/ja-JP/faq/README.md
+++ b/docs/ja-JP/faq/README.md
@@ -120,3 +120,11 @@ Starship をインストールスクリプトを使用してインストール
# starshipのバイナリを見つけて削除
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/ko-KR/faq/README.md b/docs/ko-KR/faq/README.md
index 1cd79ec3..0e7a3de8 100644
--- a/docs/ko-KR/faq/README.md
+++ b/docs/ko-KR/faq/README.md
@@ -120,3 +120,11 @@ Starship을 설치 스크립트로 설치하였다면 바이너리 파일 제거
# starship 바이너리 파일을 찾고 제거합니다.
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/nl-NL/faq/README.md b/docs/nl-NL/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/nl-NL/faq/README.md
+++ b/docs/nl-NL/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/no-NO/faq/README.md b/docs/no-NO/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/no-NO/faq/README.md
+++ b/docs/no-NO/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/pl-PL/faq/README.md b/docs/pl-PL/faq/README.md
index 4df19d6b..2757bc7b 100644
--- a/docs/pl-PL/faq/README.md
+++ b/docs/pl-PL/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/pt-BR/faq/README.md b/docs/pt-BR/faq/README.md
index 27259e57..c445f797 100644
--- a/docs/pt-BR/faq/README.md
+++ b/docs/pt-BR/faq/README.md
@@ -120,3 +120,11 @@ Se o Starship foi instalado usando o script de instalação, o comando abaixo ir
# Localiza e exclui o binário do starship
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/pt-PT/faq/README.md b/docs/pt-PT/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/pt-PT/faq/README.md
+++ b/docs/pt-PT/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/ru-RU/faq/README.md b/docs/ru-RU/faq/README.md
index f3f1992d..6fe2f96c 100644
--- a/docs/ru-RU/faq/README.md
+++ b/docs/ru-RU/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/tr-TR/faq/README.md b/docs/tr-TR/faq/README.md
index 41bb2d39..1f848440 100644
--- a/docs/tr-TR/faq/README.md
+++ b/docs/tr-TR/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/uk-UA/faq/README.md b/docs/uk-UA/faq/README.md
index 2d1f9fd2..afdb13d6 100644
--- a/docs/uk-UA/faq/README.md
+++ b/docs/uk-UA/faq/README.md
@@ -120,3 +120,11 @@ Starship так само легко видалити, як і встановит
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/vi-VN/faq/README.md b/docs/vi-VN/faq/README.md
index 9af777e5..04983a2d 100644
--- a/docs/vi-VN/faq/README.md
+++ b/docs/vi-VN/faq/README.md
@@ -120,3 +120,11 @@ If Starship was installed using the install script, the following command will d
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/zh-CN/faq/README.md b/docs/zh-CN/faq/README.md
index ece4a97e..9d21b222 100644
--- a/docs/zh-CN/faq/README.md
+++ b/docs/zh-CN/faq/README.md
@@ -120,3 +120,11 @@ Starship 的卸载过程与安装过程一样简单。
# 找到并且删除 Starship 二进制文件
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
diff --git a/docs/zh-TW/faq/README.md b/docs/zh-TW/faq/README.md
index 372f6d5b..f19960c7 100644
--- a/docs/zh-TW/faq/README.md
+++ b/docs/zh-TW/faq/README.md
@@ -120,3 +120,11 @@ echo -e "\xee\x82\xa0"
# Locate and delete the starship binary
sh -c 'rm "$(command -v 'starship')"'
```
+
+## How do I install Starship without `sudo`?
+
+The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+
+For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+
+When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
From 856c87eeff75f232fc70cf9be4e60be034882378 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 4 Jan 2024 10:07:17 +0000
Subject: [PATCH 070/651] build(deps): update rust crate serde_json to 1.0.111
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 01d3cc4e..75bc5c60 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2663,9 +2663,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.110"
+version = "1.0.111"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6fbd975230bada99c8bb618e0c365c2eefa219158d5c6c29610fd09ff1833257"
+checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4"
dependencies = [
"itoa",
"ryu",
diff --git a/Cargo.toml b/Cargo.toml
index 72b14470..4e9792dc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,7 +71,7 @@ regex = { version = "1.10.2", default-features = false, features = ["perf", "std
rust-ini = "0.20.0"
semver = "1.0.21"
serde = { version = "1.0.194", features = ["derive"] }
-serde_json = "1.0.110"
+serde_json = "1.0.111"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.0", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
From 78a799c2028bbc6655f945131128b14011a590c7 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 4 Jan 2024 17:55:13 +0000
Subject: [PATCH 071/651] build(deps): update pest crates to 2.7.6
---
Cargo.lock | 16 ++++++++--------
Cargo.toml | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 75bc5c60..60396aec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2180,9 +2180,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "pest"
-version = "2.7.5"
+version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae9cee2a55a544be8b89dc6848072af97a20f2422603c10865be2a42b580fff5"
+checksum = "1f200d8d83c44a45b21764d1916299752ca035d15ecd46faca3e9a2a2bf6ad06"
dependencies = [
"memchr",
"thiserror",
@@ -2191,9 +2191,9 @@ dependencies = [
[[package]]
name = "pest_derive"
-version = "2.7.5"
+version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81d78524685f5ef2a3b3bd1cafbc9fcabb036253d9b1463e726a91cd16e2dfc2"
+checksum = "bcd6ab1236bbdb3a49027e920e693192ebfe8913f6d60e294de57463a493cfde"
dependencies = [
"pest",
"pest_generator",
@@ -2201,9 +2201,9 @@ dependencies = [
[[package]]
name = "pest_generator"
-version = "2.7.5"
+version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68bd1206e71118b5356dae5ddc61c8b11e28b09ef6a31acbd15ea48a28e0c227"
+checksum = "2a31940305ffc96863a735bef7c7994a00b325a7138fdbc5bda0f1a0476d3275"
dependencies = [
"pest",
"pest_meta",
@@ -2214,9 +2214,9 @@ dependencies = [
[[package]]
name = "pest_meta"
-version = "2.7.5"
+version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c747191d4ad9e4a4ab9c8798f1e82a39affe7ef9648390b7e5548d18e099de6"
+checksum = "a7ff62f5259e53b78d1af898941cdcdccfae7385cf7d793a6e55de5d05bb4b7d"
dependencies = [
"once_cell",
"pest",
diff --git a/Cargo.toml b/Cargo.toml
index 4e9792dc..9f92f714 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,8 +62,8 @@ open = "5.0.1"
# update os module config and tests when upgrading os_info
os_info = "3.7.0"
path-slash = "0.2.1"
-pest = "2.7.5"
-pest_derive = "2.7.5"
+pest = "2.7.6"
+pest_derive = "2.7.6"
quick-xml = "0.31.0"
rand = "0.8.5"
rayon = "1.8.0"
From 60dad11aeb386bba7dbab59b2a6f8b7d09dd4ce4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 4 Jan 2024 23:12:40 +0000
Subject: [PATCH 072/651] build(deps): update rust crate clap to 4.4.13
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 60396aec..a826945d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.12"
+version = "4.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dcfab8ba68f3668e89f6ff60f5b205cea56aa7b769451a59f34b8682f51c056d"
+checksum = "52bdc885e4cacc7f7c9eedc1ef6da641603180c783c41a15c264944deeaab642"
dependencies = [
"clap_builder",
"clap_derive",
diff --git a/Cargo.toml b/Cargo.toml
index 9f92f714..7b42fc95 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.12", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.4.13", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.6"
dirs-next = "2.0.0"
dunce = "1.0.4"
From 0d73154002a3f8a7ee55a2578cf8caf4d7325782 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 6 Jan 2024 04:42:56 +0000
Subject: [PATCH 073/651] build(deps): update rust crate serde to 1.0.195
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index a826945d..79911e83 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2632,18 +2632,18 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.194"
+version = "1.0.195"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b114498256798c94a0689e1a15fec6005dee8ac1f41de56404b67afc2a4b773"
+checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.194"
+version = "1.0.195"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a3385e45322e8f9931410f01b3031ec534c3947d0e94c18049af4d9f9907d4e0"
+checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c"
dependencies = [
"proc-macro2",
"quote",
diff --git a/Cargo.toml b/Cargo.toml
index 7b42fc95..7e4576a6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ rayon = "1.8.0"
regex = { version = "1.10.2", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.21"
-serde = { version = "1.0.194", features = ["derive"] }
+serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.0", default-features = false }
From cec111affdaf0a52f72c398f8307cf7e19c7dd8d Mon Sep 17 00:00:00 2001
From: Camron Flanders
Date: Sat, 6 Jan 2024 04:46:25 -0600
Subject: [PATCH 074/651] fix(direnv): update to work with direnv v2.33 (#5657)
* update AllowStatus to work with direnv 2.33
direnv now returns int enum instead of boolean, https://github.com/direnv/direnv/pull/1158
* update schema
* maybe fixed the schema now
* Whoops, I inverted the flags somehow
* have coffee, fix mistaken understanding
* undo changes to tranlations
* Update docs/config/README.md
* Update src/modules/direnv.rs
Co-authored-by: David Knaack
* update test output
---------
Co-authored-by: David Knaack
---
.github/config-schema.json | 5 ++
docs/config/README.md | 1 +
src/configs/direnv.rs | 2 +
src/modules/direnv.rs | 134 +++++++++++++++++++++++++++++++++++--
4 files changed, 135 insertions(+), 7 deletions(-)
diff --git a/.github/config-schema.json b/.github/config-schema.json
index 914693c3..e2bade18 100644
--- a/.github/config-schema.json
+++ b/.github/config-schema.json
@@ -366,6 +366,7 @@
"disabled": true,
"format": "[$symbol$loaded/$allowed]($style) ",
"loaded_msg": "loaded",
+ "not_allowed_msg": "not allowed",
"style": "bold orange",
"symbol": "direnv ",
"unloaded_msg": "not loaded"
@@ -2775,6 +2776,10 @@
"default": "allowed",
"type": "string"
},
+ "not_allowed_msg": {
+ "default": "not allowed",
+ "type": "string"
+ },
"denied_msg": {
"default": "denied",
"type": "string"
diff --git a/docs/config/README.md b/docs/config/README.md
index 046ad01d..786ab81c 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -1225,6 +1225,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/src/configs/direnv.rs b/src/configs/direnv.rs
index 5a58d795..5ca1e185 100755
--- a/src/configs/direnv.rs
+++ b/src/configs/direnv.rs
@@ -16,6 +16,7 @@ pub struct DirenvConfig<'a> {
pub detect_files: Vec<&'a str>,
pub detect_folders: Vec<&'a str>,
pub allowed_msg: &'a str,
+ pub not_allowed_msg: &'a str,
pub denied_msg: &'a str,
pub loaded_msg: &'a str,
pub unloaded_msg: &'a str,
@@ -32,6 +33,7 @@ impl<'a> Default for DirenvConfig<'a> {
detect_files: vec![".envrc"],
detect_folders: vec![],
allowed_msg: "allowed",
+ not_allowed_msg: "not allowed",
denied_msg: "denied",
loaded_msg: "loaded",
unloaded_msg: "not loaded",
diff --git a/src/modules/direnv.rs b/src/modules/direnv.rs
index 6378cb96..4816a7eb 100644
--- a/src/modules/direnv.rs
+++ b/src/modules/direnv.rs
@@ -45,6 +45,7 @@ pub fn module<'a>(context: &'a Context) -> Option> {
"rc_path" => Some(Ok(state.rc_path.to_string_lossy())),
"allowed" => Some(Ok(match state.allowed {
AllowStatus::Allowed => Cow::from(config.allowed_msg),
+ AllowStatus::NotAllowed => Cow::from(config.not_allowed_msg),
AllowStatus::Denied => Cow::from(config.denied_msg),
})),
"loaded" => state
@@ -109,6 +110,7 @@ impl FromStr for DirenvState {
#[derive(Debug)]
enum AllowStatus {
Allowed,
+ NotAllowed,
Denied,
}
@@ -117,8 +119,9 @@ impl FromStr for AllowStatus {
fn from_str(s: &str) -> Result {
match s {
- "true" => Ok(Self::Allowed),
- "false" => Ok(Self::Denied),
+ "0" | "true" => Ok(Self::Allowed),
+ "1" => Ok(Self::NotAllowed),
+ "2" | "false" => Ok(Self::Denied),
_ => Err(Cow::from("invalid allow status")),
}
}
@@ -148,6 +151,34 @@ mod tests {
assert_eq!(None, renderer.collect());
}
#[test]
+ fn folder_with_unloaded_rc_file_pre_2_33() -> io::Result<()> {
+ let dir = tempfile::tempdir()?;
+ let rc_path = dir.path().join(".envrc");
+
+ std::fs::File::create(&rc_path)?.sync_all()?;
+
+ let renderer = ModuleRenderer::new("direnv")
+ .config(toml::toml! {
+ [direnv]
+ disabled = false
+ })
+ .path(dir.path())
+ .cmd(
+ "direnv status",
+ Some(CommandOutput {
+ stdout: status_cmd_output_with_rc(dir.path(), false, "0", true),
+ stderr: String::default(),
+ }),
+ );
+
+ assert_eq!(
+ Some(format!("direnv not loaded/allowed ")),
+ renderer.collect()
+ );
+
+ dir.close()
+ }
+ #[test]
fn folder_with_unloaded_rc_file() -> io::Result<()> {
let dir = tempfile::tempdir()?;
let rc_path = dir.path().join(".envrc");
@@ -163,7 +194,7 @@ mod tests {
.cmd(
"direnv status",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), false, true),
+ stdout: status_cmd_output_with_rc(dir.path(), false, "0", false),
stderr: String::default(),
}),
);
@@ -176,6 +207,31 @@ mod tests {
dir.close()
}
#[test]
+ fn folder_with_loaded_rc_file_pre_2_33() -> io::Result<()> {
+ let dir = tempfile::tempdir()?;
+ let rc_path = dir.path().join(".envrc");
+
+ std::fs::File::create(&rc_path)?.sync_all()?;
+
+ let renderer = ModuleRenderer::new("direnv")
+ .config(toml::toml! {
+ [direnv]
+ disabled = false
+ })
+ .path(dir.path())
+ .cmd(
+ "direnv status",
+ Some(CommandOutput {
+ stdout: status_cmd_output_with_rc(dir.path(), true, "0", true),
+ stderr: String::default(),
+ }),
+ );
+
+ assert_eq!(Some(format!("direnv loaded/allowed ")), renderer.collect());
+
+ dir.close()
+ }
+ #[test]
fn folder_with_loaded_rc_file() -> io::Result<()> {
let dir = tempfile::tempdir()?;
let rc_path = dir.path().join(".envrc");
@@ -191,7 +247,7 @@ mod tests {
.cmd(
"direnv status",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), true, true),
+ stdout: status_cmd_output_with_rc(dir.path(), true, "0", false),
stderr: String::default(),
}),
);
@@ -204,6 +260,59 @@ mod tests {
dir.close()
}
#[test]
+ fn folder_with_loaded_and_denied_rc_file_pre_2_33() -> io::Result<()> {
+ let dir = tempfile::tempdir()?;
+ let rc_path = dir.path().join(".envrc");
+
+ std::fs::File::create(&rc_path)?.sync_all()?;
+
+ let renderer = ModuleRenderer::new("direnv")
+ .config(toml::toml! {
+ [direnv]
+ disabled = false
+ })
+ .path(dir.path())
+ .cmd(
+ "direnv status",
+ Some(CommandOutput {
+ stdout: status_cmd_output_with_rc(dir.path(), true, "2", true),
+ stderr: String::default(),
+ }),
+ );
+
+ assert_eq!(Some(format!("direnv loaded/denied ")), renderer.collect());
+
+ dir.close()
+ }
+ #[test]
+ fn folder_with_loaded_and_not_allowed_rc_file() -> io::Result<()> {
+ let dir = tempfile::tempdir()?;
+ let rc_path = dir.path().join(".envrc");
+
+ std::fs::File::create(&rc_path)?.sync_all()?;
+
+ let renderer = ModuleRenderer::new("direnv")
+ .config(toml::toml! {
+ [direnv]
+ disabled = false
+ })
+ .path(dir.path())
+ .cmd(
+ "direnv status",
+ Some(CommandOutput {
+ stdout: status_cmd_output_with_rc(dir.path(), true, "1", false),
+ stderr: String::default(),
+ }),
+ );
+
+ assert_eq!(
+ Some(format!("direnv loaded/not allowed ")),
+ renderer.collect()
+ );
+
+ dir.close()
+ }
+ #[test]
fn folder_with_loaded_and_denied_rc_file() -> io::Result<()> {
let dir = tempfile::tempdir()?;
let rc_path = dir.path().join(".envrc");
@@ -219,7 +328,7 @@ mod tests {
.cmd(
"direnv status",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), true, false),
+ stdout: status_cmd_output_with_rc(dir.path(), true, "2", false),
stderr: String::default(),
}),
);
@@ -245,17 +354,28 @@ No .envrc or .env loaded
No .envrc or .env found",
)
}
- fn status_cmd_output_with_rc(dir: impl AsRef, loaded: bool, allowed: bool) -> String {
+ fn status_cmd_output_with_rc(
+ dir: impl AsRef,
+ loaded: bool,
+ allowed: &str,
+ use_legacy_boolean_flags: bool,
+ ) -> String {
let rc_path = dir.as_ref().join(".envrc");
let rc_path = rc_path.to_string_lossy();
+ let allowed_value = match (use_legacy_boolean_flags, allowed) {
+ (true, "0") => "true",
+ (true, ..) => "false",
+ (false, val) => val,
+ };
+
let loaded = if loaded {
format!(
r#"\
Loaded RC path {rc_path}
Loaded watch: ".envrc" - 2023-04-30T09:51:04-04:00
Loaded watch: "../.local/share/direnv/allow/abcd" - 2023-04-30T09:52:58-04:00
- Loaded RC allowed false
+ Loaded RC allowed {allowed_value}
Loaded RC allowPath
"#
)
From 819045ee2821d8920e3ac4a9b495433766fa1ba4 Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sat, 6 Jan 2024 13:15:06 +0100
Subject: [PATCH 075/651] ci(release): use PAT for Merge Crowdin PR job (#5683)
---
.github/workflows/release.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1219eb9e..c55b9805 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -354,7 +354,7 @@ jobs:
- name: Merge | Merge Crowdin PR
run: gh pr merge i18n_master --squash --repo=starship/starship
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ secrets.GH_PAT }}
publish_docs:
name: Trigger docs deployment
From 2bb57cf0cd6d53194d26f4be96dff5fa14942622 Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sat, 6 Jan 2024 21:19:02 +0100
Subject: [PATCH 076/651] fix(zsh): improve starship binary path escaping
(#5574)
---
src/init/starship.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/init/starship.zsh b/src/init/starship.zsh
index 33fc3cee..2ca01052 100644
--- a/src/init/starship.zsh
+++ b/src/init/starship.zsh
@@ -87,6 +87,6 @@ VIRTUAL_ENV_DISABLE_PROMPT=1
setopt promptsubst
-PROMPT='$(::STARSHIP:: prompt --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")'
-RPROMPT='$(::STARSHIP:: prompt --right --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")'
+PROMPT='$('::STARSHIP::' prompt --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")'
+RPROMPT='$('::STARSHIP::' prompt --right --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")'
PROMPT2="$(::STARSHIP:: prompt --continuation)"
From ef7b77355719bb3fc7c3bd3056b7c3d1fb4b8a25 Mon Sep 17 00:00:00 2001
From: Xiaohan Ni <91544758+phanen@users.noreply.github.com>
Date: Sun, 7 Jan 2024 05:49:27 +0800
Subject: [PATCH 077/651] test(aws): fix flaky tests `expiration_date_set`
`expiration_date_set_from_file` (#5685)
* fix(aws): fix flaky test `expiration_date_set`
* fix(aws): fix flaky test `expiration_date_set_from_file`
---
src/modules/aws.rs | 81 +++++++++++++++++++++-------------------------
1 file changed, 37 insertions(+), 44 deletions(-)
diff --git a/src/modules/aws.rs b/src/modules/aws.rs
index 0a5a0176..fa455862 100644
--- a/src/modules/aws.rs
+++ b/src/modules/aws.rs
@@ -703,14 +703,21 @@ credential_process = /opt/bin/awscreds-retriever
now_plus_half_hour.to_rfc3339_opts(SecondsFormat::Secs, true),
)
.collect();
- let expected = Some(format!(
- "on {}",
- Color::Yellow
- .bold()
- .paint("☁️ astronauts (ap-northeast-2) [30m] ")
- ));
- assert_eq!(expected, actual);
+ let possible_values = [
+ "30m2s", "30m1s", "30m", "29m59s", "29m58s", "29m57s", "29m56s", "29m55s",
+ ];
+ let possible_values = possible_values.map(|duration| {
+ let segment_colored = format!("☁️ astronauts (ap-northeast-2) [{duration}] ");
+ Some(format!(
+ "on {}",
+ Color::Yellow.bold().paint(segment_colored)
+ ))
+ });
+ assert!(
+ possible_values.contains(&actual),
+ "time is not in range: {actual:?}"
+ );
});
}
@@ -743,46 +750,32 @@ aws_secret_access_key=dummy
)
.unwrap();
- let actual = ModuleRenderer::new("aws")
- .env("AWS_PROFILE", "astronauts")
- .env("AWS_REGION", "ap-northeast-2")
- .env(
- "AWS_SHARED_CREDENTIALS_FILE",
- credentials_path.to_string_lossy().as_ref(),
- )
- .collect();
+ let credentials_env_vars = ["AWS_SHARED_CREDENTIALS_FILE", "AWS_CREDENTIALS_FILE"];
+ credentials_env_vars.iter().for_each(|env_var| {
+ let actual = ModuleRenderer::new("aws")
+ .env("AWS_PROFILE", "astronauts")
+ .env("AWS_REGION", "ap-northeast-2")
+ .env(env_var, credentials_path.to_string_lossy().as_ref())
+ .collect();
- let actual_variant = ModuleRenderer::new("aws")
- .env("AWS_PROFILE", "astronauts")
- .env("AWS_REGION", "ap-northeast-2")
- .env(
- "AWS_CREDENTIALS_FILE",
- credentials_path.to_string_lossy().as_ref(),
- )
- .collect();
+ // In principle, "30m" should be correct. However, bad luck in scheduling
+ // on shared runners may delay it.
+ let possible_values = [
+ "30m2s", "30m1s", "30m", "29m59s", "29m58s", "29m57s", "29m56s", "29m55s",
+ ];
+ let possible_values = possible_values.map(|duration| {
+ let segment_colored = format!("☁️ astronauts (ap-northeast-2) [{duration}] ");
+ Some(format!(
+ "on {}",
+ Color::Yellow.bold().paint(segment_colored)
+ ))
+ });
- assert_eq!(
- actual, actual_variant,
- "both AWS_SHARED_CREDENTIALS_FILE and AWS_CREDENTIALS_FILE should work"
- );
-
- // In principle, "30m" should be correct. However, bad luck in scheduling
- // on shared runners may delay it.
- let possible_values = [
- "30m2s", "30m1s", "30m", "29m59s", "29m58s", "29m57s", "29m56s", "29m55s",
- ];
- let possible_values = possible_values.map(|duration| {
- let segment_colored = format!("☁️ astronauts (ap-northeast-2) [{duration}] ");
- Some(format!(
- "on {}",
- Color::Yellow.bold().paint(segment_colored)
- ))
+ assert!(
+ possible_values.contains(&actual),
+ "time is not in range: {actual:?}"
+ );
});
-
- assert!(
- possible_values.contains(&actual),
- "time is not in range: {actual:?}"
- );
});
dir.close()
From 92d37f7ef61fd551ec1fc1556a6de4ac805fc9ba Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sun, 7 Jan 2024 03:05:37 +0100
Subject: [PATCH 078/651] ci(deps): move `actions/checkout` back to version
instead of digest pin (#5474)
---
.github/workflows/format-workflow.yml | 4 ++--
.github/workflows/publish-docs.yml | 2 +-
.github/workflows/release.yml | 12 ++++++------
.github/workflows/security-audit.yml | 2 +-
.github/workflows/spell-check.yml | 2 +-
.github/workflows/workflow.yml | 14 +++++++-------
6 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml
index c11d3ab0..87e79ee8 100644
--- a/.github/workflows/format-workflow.yml
+++ b/.github/workflows/format-workflow.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Docs | Format
uses: dprint/check@v2.2
@@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Install | Taplo
run: cargo install --debug --locked --version 0.8.1 taplo-cli
- name: Presets | Validate with schema
diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml
index 6391fefe..0aabea0c 100644
--- a/.github/workflows/publish-docs.yml
+++ b/.github/workflows/publish-docs.yml
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Node
uses: actions/setup-node@v3
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c55b9805..666bd6d6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -88,7 +88,7 @@ jobs:
RUSTFLAGS: ${{ matrix.rustflags || '' }}
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@master
@@ -178,7 +178,7 @@ jobs:
STARSHIP_VERSION: ${{ needs.release_please.outputs.tag_name }}
steps:
- name: Checkout repository
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
with:
# Required to include the recently merged Crowdin PR
ref: master
@@ -289,7 +289,7 @@ jobs:
if: ${{ needs.release_please.outputs.release_created == 'true' }}
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -334,7 +334,7 @@ jobs:
if: ${{ needs.release_please.outputs.release_created == 'true' }}
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Artifacts
uses: actions/download-artifact@v3
- run: pwsh ./install/windows/choco/update.ps1
@@ -350,7 +350,7 @@ jobs:
continue-on-error: true
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Merge | Merge Crowdin PR
run: gh pr merge i18n_master --squash --repo=starship/starship
env:
@@ -362,7 +362,7 @@ jobs:
needs: merge_crowdin_pr
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Trigger workflow dispatch
run: gh workflow run publish-docs.yml
env:
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index 33350a7f..a2e78eef 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -22,7 +22,7 @@ jobs:
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Test | Security Audit
uses: EmbarkStudios/cargo-deny-action@v1.5.5
with:
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index a42f1860..f3306933 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -6,5 +6,5 @@ jobs:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ - uses: actions/checkout@v4
- uses: crate-ci/typos@v1.17.0
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 7df7d444..72ac94f9 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -43,7 +43,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -80,7 +80,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -98,7 +98,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -120,7 +120,7 @@ jobs:
pull-requests: write
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
@@ -156,7 +156,7 @@ jobs:
RUSTFLAGS: ${{ matrix.rustflags || '' }}
steps:
- name: Setup | Checkout
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
+ uses: actions/checkout@v4
# Install all the required dependencies for testing
- name: Setup | Rust
From 60e5aa1ce5afc1e12854db87522a80a550953ec3 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 7 Jan 2024 15:13:15 +0000
Subject: [PATCH 079/651] build(deps): update rust crate strsim to 0.10.1
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 79911e83..bd7ac8da 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2912,9 +2912,9 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "strsim"
-version = "0.10.0"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
+checksum = "ccbca6f34534eb78dbee83f6b2c9442fea7113f43d9e80ea320f0972ae5dc08d"
[[package]]
name = "syn"
diff --git a/Cargo.toml b/Cargo.toml
index 7e4576a6..6344afc4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -77,7 +77,7 @@ shadow-rs = { version = "0.26.0", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.8.2", optional = true }
-strsim = "0.10.0"
+strsim = "0.10.1"
systemstat = "=0.2.3"
terminal_size = "0.3.0"
toml = { version = "0.8.8", features = ["preserve_order"] }
From 275a474387f7188e3d0dd9b51b4a719e42012439 Mon Sep 17 00:00:00 2001
From: Maksim Bondarenkov <119937608+ognevnydemon@users.noreply.github.com>
Date: Mon, 8 Jan 2024 23:53:59 +0700
Subject: [PATCH 080/651] chore: bump libz-sys crates to 1.1.13 (#5690)
bump libz-sys crate to 1.1.13
so `aarch64-pc-windows-gnullvm` will become buildable again
---
Cargo.lock | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index bd7ac8da..866c97d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1770,9 +1770,9 @@ dependencies = [
[[package]]
name = "libz-ng-sys"
-version = "1.1.12"
+version = "1.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3dd9f43e75536a46ee0f92b758f6b63846e594e86638c61a9251338a65baea63"
+checksum = "601c27491de2c76b43c9f52d639b2240bfb9b02112009d3b754bfa90d891492d"
dependencies = [
"cmake",
"libc",
@@ -1780,9 +1780,9 @@ dependencies = [
[[package]]
name = "libz-sys"
-version = "1.1.12"
+version = "1.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b"
+checksum = "5f526fdd09d99e19742883e43de41e1aa9e36db0c7ab7f935165d611c5cccc66"
dependencies = [
"cc",
"pkg-config",
From fd32e35c3d144f361f432f9ca05bb2d9340fb949 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 8 Jan 2024 16:55:05 +0000
Subject: [PATCH 081/651] build(deps): update rust crate clap to 4.4.14
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 866c97d5..1510cae7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.13"
+version = "4.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52bdc885e4cacc7f7c9eedc1ef6da641603180c783c41a15c264944deeaab642"
+checksum = "33e92c5c1a78c62968ec57dbc2440366a2d6e5a23faf829970ff1585dc6b18e2"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.12"
+version = "4.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb7fb5e4e979aec3be7791562fcba452f94ad85e954da024396433e0e25a79e9"
+checksum = "f4323769dc8a61e2c39ad7dc26f6f2800524691a44d74fe3d1071a5c24db6370"
dependencies = [
"anstream",
"anstyle",
diff --git a/Cargo.toml b/Cargo.toml
index 6344afc4..40ded229 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.13", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.4.14", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.6"
dirs-next = "2.0.0"
dunce = "1.0.4"
From a29b82586c26e0635a28550618ff9ca995118554 Mon Sep 17 00:00:00 2001
From: Maksim Bondarenkov <119937608+ognevny@users.noreply.github.com>
Date: Thu, 11 Jan 2024 20:06:29 +0300
Subject: [PATCH 082/651] chore: bump libz-sys crates to 1.1.14 (#5694)
actually at first update needed fix wasn't applied
now the things should work properly
---
Cargo.lock | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 1510cae7..0f533f27 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1770,9 +1770,9 @@ dependencies = [
[[package]]
name = "libz-ng-sys"
-version = "1.1.13"
+version = "1.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "601c27491de2c76b43c9f52d639b2240bfb9b02112009d3b754bfa90d891492d"
+checksum = "81157dde2fd4ad2b45ea3a4bb47b8193b52a6346b678840d91d80d3c2cd166c5"
dependencies = [
"cmake",
"libc",
@@ -1780,9 +1780,9 @@ dependencies = [
[[package]]
name = "libz-sys"
-version = "1.1.13"
+version = "1.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f526fdd09d99e19742883e43de41e1aa9e36db0c7ab7f935165d611c5cccc66"
+checksum = "295c17e837573c8c821dbaeb3cceb3d745ad082f7572191409e69cbc1b3fd050"
dependencies = [
"cc",
"pkg-config",
From 431aaa58754f48180342a38d041e5681e4dddb91 Mon Sep 17 00:00:00 2001
From: CAESIUS_TIM <60285058+CAESIUS-TIM@users.noreply.github.com>
Date: Fri, 12 Jan 2024 01:10:48 +0800
Subject: [PATCH 083/651] docs(battery): add space after symbol in example
(#5695)
docs(battery): add space after symbol in example (#5695)
---
docs/config/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/config/README.md b/docs/config/README.md
index 786ab81c..42e79ca2 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -569,7 +569,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
From 6f2dd5de37b8c8f3424195836589b0a7ef12dd88 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 11 Jan 2024 17:11:28 +0000
Subject: [PATCH 084/651] build(deps): update rust crate clap to 4.4.15
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 0f533f27..292aa1a7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.14"
+version = "4.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33e92c5c1a78c62968ec57dbc2440366a2d6e5a23faf829970ff1585dc6b18e2"
+checksum = "c12ed66a79a555082f595f7eb980d08669de95009dd4b3d61168c573ebe38fc9"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.14"
+version = "4.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4323769dc8a61e2c39ad7dc26f6f2800524691a44d74fe3d1071a5c24db6370"
+checksum = "0f4645eab3431e5a8403a96bea02506a8b35d28cd0f0330977dd5d22f9c84f43"
dependencies = [
"anstream",
"anstyle",
diff --git a/Cargo.toml b/Cargo.toml
index 40ded229..00badf7f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.14", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.4.15", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.6"
dirs-next = "2.0.0"
dunce = "1.0.4"
From 7a3433b325eab948d3d7451c8106c67c054136fc Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 12 Jan 2024 01:10:36 +0000
Subject: [PATCH 085/651] build(deps): update rust crate versions to 6.1.0
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 292aa1a7..258fdd2a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3339,9 +3339,9 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "versions"
-version = "6.0.0"
+version = "6.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7c271c81503258e3850c9d0f0d279d4ce9458d3388ef9eaa081b10d542182c3"
+checksum = "f37ff4899935ba747849dd9eeb27c0bdd0da0210236704b7e4681a6c7bd6f9c6"
dependencies = [
"itertools 0.12.0",
"nom 7.1.3",
diff --git a/Cargo.toml b/Cargo.toml
index 00badf7f..509ba861 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -85,7 +85,7 @@ toml_edit = "0.21.0"
unicode-segmentation = "1.10.1"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
-versions = "6.0.0"
+versions = "6.1.0"
which = "5.0.0"
yaml-rust = "0.4.5"
From 2eece4ae258ef25a9eefa8933c00e8dd2a5f61eb Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 12 Jan 2024 03:33:56 +0000
Subject: [PATCH 086/651] build(deps): update rust crate clap to 4.4.16
---
Cargo.lock | 12 ++++++------
Cargo.toml | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 258fdd2a..9be983ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "anstream"
-version = "0.6.5"
+version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6"
+checksum = "4cd2405b3ac1faab2990b74d728624cd9fd115651fcecc7c2d8daf01376275ba"
dependencies = [
"anstyle",
"anstyle-parse",
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.15"
+version = "4.4.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c12ed66a79a555082f595f7eb980d08669de95009dd4b3d61168c573ebe38fc9"
+checksum = "58e54881c004cec7895b0068a0a954cd5d62da01aef83fa35b1e594497bf5445"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.15"
+version = "4.4.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f4645eab3431e5a8403a96bea02506a8b35d28cd0f0330977dd5d22f9c84f43"
+checksum = "59cb82d7f531603d2fd1f507441cdd35184fa81beff7bd489570de7f773460bb"
dependencies = [
"anstream",
"anstyle",
diff --git a/Cargo.toml b/Cargo.toml
index 509ba861..0338a09e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.15", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.4.16", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.6"
dirs-next = "2.0.0"
dunce = "1.0.4"
From 674c9b34151d760ef8c834332d2de1f74a0a3647 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 13 Jan 2024 01:21:53 +0000
Subject: [PATCH 087/651] build(deps): update crate-ci/typos action to v1.17.1
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index f3306933..5bb5b1ef 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.17.0
+ - uses: crate-ci/typos@v1.17.1
From c6e2c10b01721293162c87c37798e67477436146 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 15 Jan 2024 02:23:06 +0000
Subject: [PATCH 088/651] build(deps): update dependency
dprint/dprint-plugin-typescript to v0.88.9
---
.dprint.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.dprint.json b/.dprint.json
index 60535dff..bb4f592d 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -25,7 +25,7 @@
"target/"
],
"plugins": [
- "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.88.7/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.88.9/plugin.wasm",
"https://github.com/dprint/dprint-plugin-json/releases/download/0.19.1/plugin.wasm",
"https://github.com/dprint/dprint-plugin-markdown/releases/download/0.16.3/plugin.wasm",
"https://github.com/dprint/dprint-plugin-toml/releases/download/0.5.4/plugin.wasm"
From 8ec386ea09978d6b1ea06823b21b699d61a8fd7c Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 15 Jan 2024 15:03:06 +0000
Subject: [PATCH 089/651] build(deps): update rust crate gix-features to 0.37.2
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 9be983ab..bd9fce13 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1207,9 +1207,9 @@ dependencies = [
[[package]]
name = "gix-features"
-version = "0.37.1"
+version = "0.37.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77a80f0fe688d654c2a741751578b11131071026d1934d03c1820d6d767525ce"
+checksum = "d50270e8dcc665f30ba0735b17984b9535bdf1e646c76e638e007846164d57af"
dependencies = [
"crc32fast",
"crossbeam-channel",
@@ -1492,9 +1492,9 @@ dependencies = [
[[package]]
name = "gix-trace"
-version = "0.1.6"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8e1127ede0475b58f4fe9c0aaa0d9bb0bad2af90bbd93ccd307c8632b863d89"
+checksum = "02b202d766a7fefc596e2cc6a89cda8ad8ad733aed82da635ac120691112a9b1"
[[package]]
name = "gix-traverse"
diff --git a/Cargo.toml b/Cargo.toml
index 0338a09e..2868996c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -50,7 +50,7 @@ dunce = "1.0.4"
gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.57.1", default-features = false, features = ["max-performance-safe", "revision"] }
-gix-features = { version = "0.37.1", optional = true }
+gix-features = { version = "0.37.2", optional = true }
indexmap = { version = "2.1.0", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
From fc6ccc0f8300562feb3ccb6813ca77062b207279 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 15 Jan 2024 22:20:03 +0000
Subject: [PATCH 090/651] build(deps): update clap crates
---
Cargo.lock | 12 ++++++------
Cargo.toml | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index bd9fce13..62dec922 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.16"
+version = "4.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "58e54881c004cec7895b0068a0a954cd5d62da01aef83fa35b1e594497bf5445"
+checksum = "80932e03c33999b9235edb8655bc9df3204adc9887c2f95b50cb1deb9fd54253"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.16"
+version = "4.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59cb82d7f531603d2fd1f507441cdd35184fa81beff7bd489570de7f773460bb"
+checksum = "d6c0db58c659eef1c73e444d298c27322a1b52f6927d2ad470c0c0f96fa7b8fa"
dependencies = [
"anstream",
"anstyle",
@@ -432,9 +432,9 @@ dependencies = [
[[package]]
name = "clap_complete"
-version = "4.4.6"
+version = "4.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97aeaa95557bd02f23fbb662f981670c3d20c5a26e69f7354b28f57092437fcd"
+checksum = "dfb0d4825b75ff281318c393e8e1b80c4da9fb75a6b1d98547d389d6fe1f48d2"
dependencies = [
"clap",
]
diff --git a/Cargo.toml b/Cargo.toml
index 2868996c..8eae0584 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,8 +43,8 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.16", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.4.6"
+clap = { version = "4.4.17", features = ["derive", "cargo", "unicode"] }
+clap_complete = "4.4.7"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From 024a1eb90426fede2ca4c467f1f764bf0cfba91d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 16 Jan 2024 10:20:38 +0000
Subject: [PATCH 091/651] build(deps): update rust crate shadow-rs to 0.26.1
---
Cargo.lock | 4 ++--
Cargo.toml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 62dec922..872719c3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2745,9 +2745,9 @@ dependencies = [
[[package]]
name = "shadow-rs"
-version = "0.26.0"
+version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "878cb1e3162d98ee1016b832efbb683ad6302b462a2894c54f488dc0bd96f11c"
+checksum = "3e5c5c8276991763b44ede03efaf966eaa0412fafbf299e6380704678ca3b997"
dependencies = [
"const_format",
"is_debug",
diff --git a/Cargo.toml b/Cargo.toml
index 8eae0584..0fa899a0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -73,7 +73,7 @@ semver = "1.0.21"
serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
sha1 = "0.10.6"
-shadow-rs = { version = "0.26.0", default-features = false }
+shadow-rs = { version = "0.26.1", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.8.2", optional = true }
@@ -117,7 +117,7 @@ features = [
nix = { version = "0.27.1", default-features = false, features = ["feature", "fs", "user"] }
[build-dependencies]
-shadow-rs = { version = "0.26.0", default-features = false }
+shadow-rs = { version = "0.26.1", default-features = false }
dunce = "1.0.4"
[target.'cfg(windows)'.build-dependencies]
From c5b39e9610e5696eba2d65784f6ffad73489fdee Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 16 Jan 2024 21:59:09 +0000
Subject: [PATCH 092/651] build(deps): update rust crate clap to 4.4.18
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 872719c3..c01d8622 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.17"
+version = "4.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "80932e03c33999b9235edb8655bc9df3204adc9887c2f95b50cb1deb9fd54253"
+checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.17"
+version = "4.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6c0db58c659eef1c73e444d298c27322a1b52f6927d2ad470c0c0f96fa7b8fa"
+checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
dependencies = [
"anstream",
"anstyle",
diff --git a/Cargo.toml b/Cargo.toml
index 0fa899a0..e1237d31 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.17", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.7"
dirs-next = "2.0.0"
dunce = "1.0.4"
From 8dbdbc79b2f1d50987258179c3abc059efff93db Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 17 Jan 2024 20:17:11 +0000
Subject: [PATCH 093/651] build(deps): update rust crate rayon to 1.8.1
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index c01d8622..4042d4f9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2455,9 +2455,9 @@ dependencies = [
[[package]]
name = "rayon"
-version = "1.8.0"
+version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1"
+checksum = "fa7237101a77a10773db45d62004a272517633fbcc3df19d96455ede1122e051"
dependencies = [
"either",
"rayon-core",
@@ -2465,9 +2465,9 @@ dependencies = [
[[package]]
name = "rayon-core"
-version = "1.12.0"
+version = "1.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed"
+checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"
dependencies = [
"crossbeam-deque",
"crossbeam-utils",
diff --git a/Cargo.toml b/Cargo.toml
index e1237d31..9fc9b22a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -66,7 +66,7 @@ pest = "2.7.6"
pest_derive = "2.7.6"
quick-xml = "0.31.0"
rand = "0.8.5"
-rayon = "1.8.0"
+rayon = "1.8.1"
regex = { version = "1.10.2", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.21"
From 679fcc9c930781b7247097caae346ce5137b7455 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 17 Jan 2024 20:17:17 +0000
Subject: [PATCH 094/651] build(deps): update
xalvarez/prevent-file-change-action action to v1.6.0
---
.github/workflows/format-workflow.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml
index 87e79ee8..01de6611 100644
--- a/.github/workflows/format-workflow.yml
+++ b/.github/workflows/format-workflow.yml
@@ -35,7 +35,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Prevent File Change
- uses: xalvarez/prevent-file-change-action@v1.5.1
+ uses: xalvarez/prevent-file-change-action@v1.6.0
if: ${{ github.event.pull_request.head.ref != 'i18n_master' }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
From f60326de42aa97bc3123ae8f574e41ad7c6ea7fe Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 18 Jan 2024 09:27:16 +0100
Subject: [PATCH 095/651] build(deps): update rust crate which to v6 (#5711)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
Cargo.lock | 30 +++++++++++++++---------------
Cargo.toml | 2 +-
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 4042d4f9..df45d146 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -180,7 +180,7 @@ dependencies = [
"futures-lite 2.1.0",
"parking",
"polling 3.3.1",
- "rustix 0.38.28",
+ "rustix 0.38.30",
"slab",
"tracing",
"windows-sys 0.52.0",
@@ -219,7 +219,7 @@ dependencies = [
"cfg-if",
"event-listener 3.1.0",
"futures-lite 1.13.0",
- "rustix 0.38.28",
+ "rustix 0.38.30",
"windows-sys 0.48.0",
]
@@ -246,7 +246,7 @@ dependencies = [
"cfg-if",
"futures-core",
"futures-io",
- "rustix 0.38.28",
+ "rustix 0.38.30",
"signal-hook-registry",
"slab",
"windows-sys 0.48.0",
@@ -1289,7 +1289,7 @@ dependencies = [
"itoa",
"libc",
"memmap2",
- "rustix 0.38.28",
+ "rustix 0.38.30",
"smallvec",
"thiserror",
]
@@ -1753,9 +1753,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "libc"
-version = "0.2.151"
+version = "0.2.152"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
+checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7"
[[package]]
name = "libredox"
@@ -2315,7 +2315,7 @@ dependencies = [
"cfg-if",
"concurrent-queue",
"pin-project-lite",
- "rustix 0.38.28",
+ "rustix 0.38.30",
"tracing",
"windows-sys 0.52.0",
]
@@ -2548,9 +2548,9 @@ dependencies = [
[[package]]
name = "rustix"
-version = "0.38.28"
+version = "0.38.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316"
+checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca"
dependencies = [
"bitflags 2.4.1",
"errno 0.3.8",
@@ -2971,7 +2971,7 @@ dependencies = [
"cfg-if",
"fastrand 2.0.1",
"redox_syscall",
- "rustix 0.38.28",
+ "rustix 0.38.30",
"windows-sys 0.52.0",
]
@@ -2981,7 +2981,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7"
dependencies = [
- "rustix 0.38.28",
+ "rustix 0.38.30",
"windows-sys 0.48.0",
]
@@ -3434,15 +3434,15 @@ checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f"
[[package]]
name = "which"
-version = "5.0.0"
+version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9bf3ea8596f3a0dd5980b46430f2058dfe2c36a27ccfbb1845d6fbfcd9ba6e14"
+checksum = "7fa5e0c10bf77f44aac573e498d1a82d5fbd5e91f6fc0a99e7be4b38e85e101c"
dependencies = [
"either",
"home",
"once_cell",
- "rustix 0.38.28",
- "windows-sys 0.48.0",
+ "rustix 0.38.30",
+ "windows-sys 0.52.0",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 9fc9b22a..9006cb5b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -86,7 +86,7 @@ unicode-segmentation = "1.10.1"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
versions = "6.1.0"
-which = "5.0.0"
+which = "6.0.0"
yaml-rust = "0.4.5"
process_control = { version = "4.0.3", features = ["crossbeam-channel"] }
From 17d5622cc8d945337a71b0fa22ace0e7a3b5afbd Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 19 Jan 2024 20:08:40 +0000
Subject: [PATCH 096/651] build(deps): update rust crate clap_complete to 4.4.8
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index df45d146..8aedb4c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,9 +432,9 @@ dependencies = [
[[package]]
name = "clap_complete"
-version = "4.4.7"
+version = "4.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dfb0d4825b75ff281318c393e8e1b80c4da9fb75a6b1d98547d389d6fe1f48d2"
+checksum = "eaf7dcb7c21d8ca1a2482ee0f1d341f437c9a7af6ca6da359dc5e1b164e98215"
dependencies = [
"clap",
]
diff --git a/Cargo.toml b/Cargo.toml
index 9006cb5b..e6226f88 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.4.7"
+clap_complete = "4.4.8"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From 608391bab37483d72eb50a114eb232075c8b10ab Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 19 Jan 2024 22:40:35 +0000
Subject: [PATCH 097/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.6
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index a2e78eef..e48a7403 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.5
+ uses: EmbarkStudios/cargo-deny-action@v1.5.6
with:
command: check ${{ matrix.checks }}
From 2f1fb8bf85938056a5809be0597ca0e4be4181a4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 20 Jan 2024 10:12:15 +0000
Subject: [PATCH 098/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.7
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index e48a7403..ed70d3d4 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.6
+ uses: EmbarkStudios/cargo-deny-action@v1.5.7
with:
command: check ${{ matrix.checks }}
From 8d0d68c3f062c06872a65980b249d031cbd9bfad Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 19 Jan 2024 16:52:50 +0000
Subject: [PATCH 099/651] build(deps): update crate-ci/typos action to v1.17.2
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index 5bb5b1ef..46e49255 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.17.1
+ - uses: crate-ci/typos@v1.17.2
From 5ead13d6aa6303c85c562f1b940048cc539667cd Mon Sep 17 00:00:00 2001
From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
Date: Sun, 21 Jan 2024 18:25:52 +0530
Subject: [PATCH 100/651] feat(bash): Support right prompt and transience
(#4902)
* Support right prompt in bash
* Docs for transience in bash
* Apply suggestions from review
* Simplify conditional
* Use ble.sh hooks, if available
* Properly quote args
* Use BLE_PIPESTATUS
* Update starship.bash
* Update src/init/starship.bash
Co-authored-by: Koichi Murase
---------
Co-authored-by: Koichi Murase
---
docs/advanced-config/README.md | 39 +++++++++++++++++++++++++++++++++-
src/init/starship.bash | 20 +++++++++++++----
2 files changed, 54 insertions(+), 5 deletions(-)
diff --git a/docs/advanced-config/README.md b/docs/advanced-config/README.md
index 13f30c0c..b728a632 100644
--- a/docs/advanced-config/README.md
+++ b/docs/advanced-config/README.md
@@ -106,6 +106,41 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace
+the previous-printed prompt with custom strings. This is useful in cases where all
+the prompt information is not always needed. To enable this, put this in `~/.bashrc`
+`bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`.
+When `prompt_ps1_final` is empty and this option has a non-empty value,
+the prompt specified by `PS1` is erased on leaving the current command line.
+If the value contains a field `trim`, only the last line of multiline `PS1` is
+preserved and the other lines are erased. Otherwise, the command line will be
+redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the
+value and the current working directory is different from the final directory of
+the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on
+the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the
+ `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character`
+ module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the
+ `prompt_rps1_final` Ble.sh option. For example, to display
+ the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands
@@ -261,7 +296,9 @@ not explicitly used in either `format` or `right_format`.
Note: The right prompt is a single line following the input location. To right align modules above
the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/src/init/starship.bash b/src/init/starship.bash
index b7f7cb0e..5a62be85 100644
--- a/src/init/starship.bash
+++ b/src/init/starship.bash
@@ -33,6 +33,9 @@ starship_preexec() {
starship_precmd() {
# Save the status, because commands in this pipeline will change $?
STARSHIP_CMD_STATUS=$? STARSHIP_PIPE_STATUS=(${PIPESTATUS[@]})
+ if [[ ${BLE_ATTACHED-} && ${#BLE_PIPESTATUS[@]} -gt 0 ]]; then
+ STARSHIP_PIPE_STATUS=("${BLE_PIPESTATUS[@]}")
+ fi
if [[ "${#BP_PIPESTATUS[@]}" -gt "${#STARSHIP_PIPE_STATUS[@]}" ]]; then
STARSHIP_PIPE_STATUS=(${BP_PIPESTATUS[@]})
fi
@@ -64,21 +67,30 @@ starship_precmd() {
eval "$_PRESERVED_PROMPT_COMMAND"
+ local -a ARGS=(--terminal-width="${COLUMNS}" --status="${STARSHIP_CMD_STATUS}" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --jobs="${NUM_JOBS}")
# Prepare the timer data, if needed.
if [[ $STARSHIP_START_TIME ]]; then
STARSHIP_END_TIME=$(::STARSHIP:: time)
STARSHIP_DURATION=$((STARSHIP_END_TIME - STARSHIP_START_TIME))
- PS1="$(::STARSHIP:: prompt --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --jobs="$NUM_JOBS" --cmd-duration=$STARSHIP_DURATION)"
+ ARGS+=( --cmd-duration="${STARSHIP_DURATION}")
unset STARSHIP_START_TIME
- else
- PS1="$(::STARSHIP:: prompt --terminal-width="$COLUMNS" --status=$STARSHIP_CMD_STATUS --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --jobs="$NUM_JOBS")"
+ fi
+ PS1="$(::STARSHIP:: prompt "${ARGS[@]}")"
+ if [[ ${BLE_ATTACHED-} ]]; then
+ local nlns=${PS1//[!$'\n']}
+ bleopt prompt_rps1="$nlns$(::STARSHIP:: prompt --right "${ARGS[@]}")"
fi
STARSHIP_PREEXEC_READY=true # Signal that we can safely restart the timer
}
+# If the user appears to be using https://github.com/akinomyoga/ble.sh,
+# then hook our functions into their framework.
+if [[ ${BLE_VERSION-} && _ble_version -ge 400 ]]; then
+ blehook PREEXEC!='starship_preexec "$_"'
+ blehook PRECMD!='starship_precmd'
# If the user appears to be using https://github.com/rcaloras/bash-preexec,
# then hook our functions into their framework.
-if [[ "${__bp_imported:-}" == "defined" || $preexec_functions || $precmd_functions ]]; then
+elif [[ "${__bp_imported:-}" == "defined" || $preexec_functions || $precmd_functions ]]; then
# bash-preexec needs a single function--wrap the args into a closure and pass
starship_preexec_all(){ starship_preexec "$_"; }
preexec_functions+=(starship_preexec_all)
From 482c7b719fc304fcad5f3572c4551f8ff4179522 Mon Sep 17 00:00:00 2001
From: Andrew Pantuso
Date: Sun, 21 Jan 2024 07:56:57 -0500
Subject: [PATCH 101/651] feat(direnv): use JSON status with direnv >= 2.33.0
(#5692)
---
src/modules/direnv.rs | 149 ++++++++++++++++++++++++++++++++++++++----
1 file changed, 135 insertions(+), 14 deletions(-)
diff --git a/src/modules/direnv.rs b/src/modules/direnv.rs
index 4816a7eb..5a5999ef 100644
--- a/src/modules/direnv.rs
+++ b/src/modules/direnv.rs
@@ -7,6 +7,8 @@ use super::{Context, Module, ModuleConfig};
use crate::configs::direnv::DirenvConfig;
use crate::formatter::StringFormatter;
+use serde::Deserialize;
+
/// Creates a module with the current direnv rc
pub fn module<'a>(context: &'a Context) -> Option> {
let mut module = context.new_module("direnv");
@@ -24,7 +26,8 @@ pub fn module<'a>(context: &'a Context) -> Option> {
return None;
}
- let direnv_status = &context.exec_cmd("direnv", &["status"])?.stdout;
+ // the `--json` flag is silently ignored for direnv versions <2.33.0
+ let direnv_status = &context.exec_cmd("direnv", &["status", "--json"])?.stdout;
let state = match DirenvState::from_str(direnv_status) {
Ok(s) => s,
Err(e) => {
@@ -81,6 +84,22 @@ impl FromStr for DirenvState {
type Err = Cow<'static, str>;
fn from_str(s: &str) -> Result {
+ match serde_json::from_str::(s) {
+ Ok(raw) => Ok(DirenvState {
+ rc_path: raw.state.found_rc.path,
+ allowed: raw.state.found_rc.allowed.try_into()?,
+ loaded: matches!(
+ raw.state.loaded_rc.allowed.try_into()?,
+ AllowStatus::Allowed
+ ),
+ }),
+ Err(_) => DirenvState::from_lines(s),
+ }
+ }
+}
+
+impl DirenvState {
+ fn from_lines(s: &str) -> Result> {
let mut rc_path = PathBuf::new();
let mut allowed = None;
let mut loaded = true;
@@ -127,13 +146,64 @@ impl FromStr for AllowStatus {
}
}
+impl TryFrom for AllowStatus {
+ type Error = Cow<'static, str>;
+
+ fn try_from(u: u8) -> Result {
+ match u {
+ 0 => Ok(Self::Allowed),
+ 1 => Ok(Self::NotAllowed),
+ 2 => Ok(Self::Denied),
+ _ => Err(Cow::from("unknown integer allow status")),
+ }
+ }
+}
+
+#[derive(Debug, Deserialize)]
+struct RawDirenvState {
+ pub state: State,
+}
+
+#[derive(Debug, Deserialize)]
+struct State {
+ #[serde(rename = "foundRC")]
+ pub found_rc: RCStatus,
+ #[serde(rename = "loadedRC")]
+ pub loaded_rc: RCStatus,
+}
+
+#[derive(Debug, Deserialize)]
+struct RCStatus {
+ pub allowed: u8,
+ pub path: PathBuf,
+}
+
#[cfg(test)]
mod tests {
+ use serde_json::json;
+
use crate::test::ModuleRenderer;
use crate::utils::CommandOutput;
use std::io;
use std::path::Path;
#[test]
+ fn folder_without_rc_files_pre_2_33() {
+ let renderer = ModuleRenderer::new("direnv")
+ .config(toml::toml! {
+ [direnv]
+ disabled = false
+ })
+ .cmd(
+ "direnv status --json",
+ Some(CommandOutput {
+ stdout: status_cmd_output_without_rc(),
+ stderr: String::default(),
+ }),
+ );
+
+ assert_eq!(None, renderer.collect());
+ }
+ #[test]
fn folder_without_rc_files() {
let renderer = ModuleRenderer::new("direnv")
.config(toml::toml! {
@@ -141,9 +211,9 @@ mod tests {
disabled = false
})
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
- stdout: status_cmd_output_without_rc(),
+ stdout: status_cmd_output_without_rc_json(),
stderr: String::default(),
}),
);
@@ -164,7 +234,7 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
stdout: status_cmd_output_with_rc(dir.path(), false, "0", true),
stderr: String::default(),
@@ -192,9 +262,9 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), false, "0", false),
+ stdout: status_cmd_output_with_rc_json(dir.path(), 1, 0),
stderr: String::default(),
}),
);
@@ -220,7 +290,7 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
stdout: status_cmd_output_with_rc(dir.path(), true, "0", true),
stderr: String::default(),
@@ -245,9 +315,9 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), true, "0", false),
+ stdout: status_cmd_output_with_rc_json(dir.path(), 0, 0),
stderr: String::default(),
}),
);
@@ -273,7 +343,7 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
stdout: status_cmd_output_with_rc(dir.path(), true, "2", true),
stderr: String::default(),
@@ -298,9 +368,9 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), true, "1", false),
+ stdout: status_cmd_output_with_rc_json(dir.path(), 0, 1),
stderr: String::default(),
}),
);
@@ -326,9 +396,9 @@ mod tests {
})
.path(dir.path())
.cmd(
- "direnv status",
+ "direnv status --json",
Some(CommandOutput {
- stdout: status_cmd_output_with_rc(dir.path(), true, "2", false),
+ stdout: status_cmd_output_with_rc_json(dir.path(), 0, 2),
stderr: String::default(),
}),
);
@@ -354,6 +424,19 @@ No .envrc or .env loaded
No .envrc or .env found",
)
}
+ fn status_cmd_output_without_rc_json() -> String {
+ json!({
+ "config": {
+ "ConfigDir": config_dir(),
+ "SelfPath": self_path(),
+ },
+ "state": {
+ "foundRC": null,
+ "loadedRC": null,
+ }
+ })
+ .to_string()
+ }
fn status_cmd_output_with_rc(
dir: impl AsRef,
loaded: bool,
@@ -403,4 +486,42 @@ Found RC allowPath /home/test/.local/share/direnv/allow/abcd
"#
)
}
+ fn status_cmd_output_with_rc_json(dir: impl AsRef, loaded: u8, allowed: u8) -> String {
+ let rc_path = dir.as_ref().join(".envrc");
+ let rc_path = rc_path.to_string_lossy();
+
+ json!({
+ "config": {
+ "ConfigDir": config_dir(),
+ "SelfPath": self_path(),
+ },
+ "state": {
+ "foundRC": {
+ "allowed": allowed,
+ "path": rc_path,
+ },
+ "loadedRC": {
+ "allowed": loaded,
+ "path": rc_path,
+ }
+ }
+ })
+ .to_string()
+ }
+ #[cfg(windows)]
+ fn config_dir() -> &'static str {
+ r"C:\\Users\\test\\AppData\\Local\\direnv"
+ }
+ #[cfg(not(windows))]
+ fn config_dir() -> &'static str {
+ "/home/test/.config/direnv"
+ }
+ #[cfg(windows)]
+ fn self_path() -> &'static str {
+ r"C:\\Program Files\\direnv\\direnv.exe"
+ }
+ #[cfg(not(windows))]
+ fn self_path() -> &'static str {
+ "/usr/bin/direnv"
+ }
}
From 6d006132f27d989f16b57b425c5016663cdbb656 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 11:26:16 +0000
Subject: [PATCH 102/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.9
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index ed70d3d4..be1b094b 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.7
+ uses: EmbarkStudios/cargo-deny-action@v1.5.9
with:
command: check ${{ matrix.checks }}
From 97fc4a0db626a6bd7bb2fc313d13618bd47f06f3 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 15:36:30 +0000
Subject: [PATCH 103/651] build(deps): update rust crate regex to 1.10.3
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 8aedb4c2..fcfe7164 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2495,9 +2495,9 @@ dependencies = [
[[package]]
name = "regex"
-version = "1.10.2"
+version = "1.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
+checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15"
dependencies = [
"aho-corasick",
"memchr",
@@ -2507,9 +2507,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.3"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
+checksum = "3b7fa1134405e2ec9353fd416b17f8dacd46c473d7d3fd1cf202706a14eb792a"
dependencies = [
"aho-corasick",
"memchr",
diff --git a/Cargo.toml b/Cargo.toml
index e6226f88..69e2e2bb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -67,7 +67,7 @@ pest_derive = "2.7.6"
quick-xml = "0.31.0"
rand = "0.8.5"
rayon = "1.8.1"
-regex = { version = "1.10.2", default-features = false, features = ["perf", "std", "unicode-perl"] }
+regex = { version = "1.10.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.21"
serde = { version = "1.0.195", features = ["derive"] }
From 80a3ecbe186c376bc9bdb317b2bca71876cebb0c Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 19:14:48 +0000
Subject: [PATCH 104/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.10
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index be1b094b..98041ac0 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.9
+ uses: EmbarkStudios/cargo-deny-action@v1.5.10
with:
command: check ${{ matrix.checks }}
From 633ca5f016387b0a20db835cf695334c0008ecec Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 19:15:19 +0000
Subject: [PATCH 105/651] build(deps): update rust crate clap_complete to 4.4.9
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index fcfe7164..d49b119c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,9 +432,9 @@ dependencies = [
[[package]]
name = "clap_complete"
-version = "4.4.8"
+version = "4.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eaf7dcb7c21d8ca1a2482ee0f1d341f437c9a7af6ca6da359dc5e1b164e98215"
+checksum = "df631ae429f6613fcd3a7c1adbdb65f637271e561b03680adaa6573015dfb106"
dependencies = [
"clap",
]
diff --git a/Cargo.toml b/Cargo.toml
index 69e2e2bb..12e2156a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.4.8"
+clap_complete = "4.4.9"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From 78564efbc8573f7b67186a0c5d3f19078961268f Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 23 Jan 2024 00:01:54 +0000
Subject: [PATCH 106/651] build(deps): update rust crate chrono to 0.4.32
---
Cargo.lock | 6 +++---
Cargo.toml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index d49b119c..f5bdc636 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -394,16 +394,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
-version = "0.4.31"
+version = "0.4.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
+checksum = "41daef31d7a747c5c847246f36de49ced6f7403b4cdabc807a97b5cc184cda7a"
dependencies = [
"android-tzdata",
"iana-time-zone",
"js-sys",
"num-traits",
"wasm-bindgen",
- "windows-targets 0.48.5",
+ "windows-targets 0.52.0",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 12e2156a..576973d7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,7 @@ gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"]
gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
-chrono = { version = "0.4.31", default-features = false, features = ["clock", "std", "wasmbind"] }
+chrono = { version = "0.4.32", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.9"
dirs-next = "2.0.0"
From b0bbde8be1ab2026f03e499e23c0b32a7cba4e8e Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 23 Jan 2024 00:02:00 +0000
Subject: [PATCH 107/651] build(deps): update rust crate nu-ansi-term to 0.50.0
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index f5bdc636..b9433eac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1993,9 +1993,9 @@ dependencies = [
[[package]]
name = "nu-ansi-term"
-version = "0.49.0"
+version = "0.50.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c073d3c1930d0751774acf49e66653acecb416c3a54c6ec095a9b11caddb5a68"
+checksum = "dd2800e1520bdc966782168a627aa5d1ad92e33b984bf7c7615d31280c83ff14"
dependencies = [
"windows-sys 0.48.0",
]
diff --git a/Cargo.toml b/Cargo.toml
index 576973d7..04c173c7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -56,7 +56,7 @@ log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
notify-rust = { version = "4.10.0", optional = true }
-nu-ansi-term = "0.49.0"
+nu-ansi-term = "0.50.0"
once_cell = "1.19.0"
open = "5.0.1"
# update os module config and tests when upgrading os_info
From c010a00f076ef593b3d4fd6409dfbe62939def19 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 23 Jan 2024 11:08:14 +0000
Subject: [PATCH 108/651] build(deps): update gitoxide crates
---
Cargo.lock | 132 ++++++++++++++++++++++++-----------------------------
Cargo.toml | 4 +-
2 files changed, 61 insertions(+), 75 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index b9433eac..c75c1c55 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1046,9 +1046,9 @@ dependencies = [
[[package]]
name = "gix"
-version = "0.57.1"
+version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dd025382892c7b500a9ce1582cd803f9c2ebfe44aff52e9c7f86feee7ced75e"
+checksum = "31887c304d9a935f3e5494fb5d6a0106c34e965168ec0db9b457424eedd0c741"
dependencies = [
"gix-actor",
"gix-commitgraph",
@@ -1083,14 +1083,13 @@ dependencies = [
"parking_lot",
"smallvec",
"thiserror",
- "unicode-normalization",
]
[[package]]
name = "gix-actor"
-version = "0.29.1"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da27b5ab4ab5c75ff891dccd48409f8cc53c28a79480f1efdd33184b2dc1d958"
+checksum = "0a7bb9fad6125c81372987c06469601d37e1a2d421511adb69971b9083517a8a"
dependencies = [
"bstr",
"btoi",
@@ -1120,9 +1119,9 @@ dependencies = [
[[package]]
name = "gix-commitgraph"
-version = "0.23.1"
+version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a39c675fd737cb43a2120eddf1aa652c19d76b28d79783a198ac1b398ed9ce6"
+checksum = "82dbd7fb959862e3df2583331f0ad032ac93533e8a52f1b0694bc517f5d292bc"
dependencies = [
"bstr",
"gix-chunk",
@@ -1134,9 +1133,9 @@ dependencies = [
[[package]]
name = "gix-config"
-version = "0.33.1"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "367304855b369cadcac4ee5fb5a3a20da9378dd7905106141070b79f85241079"
+checksum = "e62bf2073b6ce3921ffa6d8326f645f30eec5fc4a8e8a4bc0fcb721a2f3f69dc"
dependencies = [
"bstr",
"gix-config-value",
@@ -1155,9 +1154,9 @@ dependencies = [
[[package]]
name = "gix-config-value"
-version = "0.14.3"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52e0be46f4cf1f8f9e88d0e3eb7b29718aff23889563249f379119bd1ab6910e"
+checksum = "5b8a1e7bfb37a46ed0b8468db37a6d8a0a61d56bdbe4603ae492cb322e5f3958"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1180,9 +1179,9 @@ dependencies = [
[[package]]
name = "gix-diff"
-version = "0.39.1"
+version = "0.40.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd6a0454f8c42d686f17e7f084057c717c082b7dbb8209729e4e8f26749eb93a"
+checksum = "cbdcb5e49c4b9729dd1c361040ae5c3cd7c497b2260b18c954f62db3a63e98cf"
dependencies = [
"bstr",
"gix-hash",
@@ -1192,12 +1191,13 @@ dependencies = [
[[package]]
name = "gix-discover"
-version = "0.28.1"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8d7b2896edc3d899d28a646ccc6df729827a6600e546570b2783466404a42d6"
+checksum = "b4669218f3ec0cbbf8f16857b32200890f8ca585f36f5817242e4115fe4551af"
dependencies = [
"bstr",
"dunce",
+ "gix-fs",
"gix-hash",
"gix-path",
"gix-ref",
@@ -1207,15 +1207,16 @@ dependencies = [
[[package]]
name = "gix-features"
-version = "0.37.2"
+version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d50270e8dcc665f30ba0735b17984b9535bdf1e646c76e638e007846164d57af"
+checksum = "184f7f7d4e45db0e2a362aeaf12c06c5e84817d0ef91d08e8e90170dad9f0b07"
dependencies = [
"crc32fast",
"crossbeam-channel",
"flate2",
"gix-hash",
"gix-trace",
+ "gix-utils",
"jwalk",
"libc",
"once_cell",
@@ -1229,18 +1230,19 @@ dependencies = [
[[package]]
name = "gix-fs"
-version = "0.9.1"
+version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7555c23a005537434bbfcb8939694e18cad42602961d0de617f8477cc2adecdd"
+checksum = "4436e883d5769f9fb18677b8712b49228357815f9e4104174a6fc2d8461a437b"
dependencies = [
"gix-features",
+ "gix-utils",
]
[[package]]
name = "gix-glob"
-version = "0.15.1"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae6232f18b262770e343dcdd461c0011c9b9ae27f0c805e115012aa2b902c1b8"
+checksum = "4965a1d06d0ab84a29d4a67697a97352ab14ae1da821084e5afb1fd6d8191ca0"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1271,9 +1273,9 @@ dependencies = [
[[package]]
name = "gix-index"
-version = "0.28.1"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd97a226ea6a7669109b84fa045bada556ec925e25145cb458adb4958b023ad0"
+checksum = "1d7152181ba8f0a3addc5075dd612cea31fc3e252b29c8be8c45f4892bf87426"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1296,9 +1298,9 @@ dependencies = [
[[package]]
name = "gix-lock"
-version = "12.0.1"
+version = "13.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f40a439397f1e230b54cf85d52af87e5ea44cc1e7748379785d3f6d03d802b00"
+checksum = "651e46174dc5e7d18b7b809d31937b6de3681b1debd78618c99162cc30fcf3e1"
dependencies = [
"gix-tempfile",
"gix-utils",
@@ -1318,9 +1320,9 @@ dependencies = [
[[package]]
name = "gix-object"
-version = "0.40.1"
+version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c89402e8faa41b49fde348665a8f38589e461036475af43b6b70615a6a313a2"
+checksum = "693ce9d30741506cb082ef2d8b797415b48e032cce0ab23eff894c19a7e4777b"
dependencies = [
"bstr",
"btoi",
@@ -1337,13 +1339,14 @@ dependencies = [
[[package]]
name = "gix-odb"
-version = "0.56.1"
+version = "0.57.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46ae6da873de41c6c2b73570e82c571b69df5154dcd8f46dfafc6687767c33b1"
+checksum = "8ba2fa9e81f2461b78b4d81a807867667326c84cdab48e0aed7b73a593aa1be4"
dependencies = [
"arc-swap",
"gix-date",
"gix-features",
+ "gix-fs",
"gix-hash",
"gix-object",
"gix-pack",
@@ -1356,9 +1359,9 @@ dependencies = [
[[package]]
name = "gix-pack"
-version = "0.46.1"
+version = "0.47.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "782b4d42790a14072d5c400deda9851f5765f50fe72bca6dece0da1cd6f05a9a"
+checksum = "8da5f3e78c96b76c4e6fe5e8e06b76221e4a0ee9a255aa935ed1fdf68988dfd8"
dependencies = [
"clru",
"gix-chunk",
@@ -1377,9 +1380,9 @@ dependencies = [
[[package]]
name = "gix-path"
-version = "0.10.3"
+version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8dd0998ab245f33d40ca2267e58d542fe54185ebd1dc41923346cf28d179fb6"
+checksum = "14a6282621aed1becc3f83d64099a564b3b9063f22783d9a87ea502a3e9f2e40"
dependencies = [
"bstr",
"gix-trace",
@@ -1401,9 +1404,9 @@ dependencies = [
[[package]]
name = "gix-ref"
-version = "0.40.1"
+version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64d9bd1984638d8f3511a2fcbe84fcedb8a5b5d64df677353620572383f42649"
+checksum = "5818958994ad7879fa566f5441ebcc48f0926aa027b28948e6fbf6578894dc31"
dependencies = [
"gix-actor",
"gix-date",
@@ -1414,6 +1417,7 @@ dependencies = [
"gix-object",
"gix-path",
"gix-tempfile",
+ "gix-utils",
"gix-validate",
"memmap2",
"thiserror",
@@ -1422,9 +1426,9 @@ dependencies = [
[[package]]
name = "gix-refspec"
-version = "0.21.1"
+version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be219df5092c1735abb2a53eccdf775e945eea6986ee1b6e7a5896dccc0be704"
+checksum = "613aa4d93034c5791d13bdc635e530f4ddab1412ddfb4a8215f76213177b61c7"
dependencies = [
"bstr",
"gix-hash",
@@ -1436,9 +1440,9 @@ dependencies = [
[[package]]
name = "gix-revision"
-version = "0.25.1"
+version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa78e1df3633bc937d4db15f8dca2abdb1300ca971c0fabcf9fa97e38cf4cd9f"
+checksum = "288f6549d7666db74dc3f169a9a333694fc28ecd2f5aa7b2c979c89eb556751a"
dependencies = [
"bstr",
"gix-date",
@@ -1452,9 +1456,9 @@ dependencies = [
[[package]]
name = "gix-revwalk"
-version = "0.11.1"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702de5fe5c2bbdde80219f3a8b9723eb927466e7ecd187cfd1b45d986408e45f"
+checksum = "5b9b4d91dfc5c14fee61a28c65113ded720403b65a0f46169c0460f731a5d03c"
dependencies = [
"gix-commitgraph",
"gix-date",
@@ -1467,21 +1471,21 @@ dependencies = [
[[package]]
name = "gix-sec"
-version = "0.10.3"
+version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78f6dce0c6683e2219e8169aac4b1c29e89540a8262fef7056b31d80d969408c"
+checksum = "f8d9bf462feaf05f2121cba7399dbc6c34d88a9cad58fc1e95027791d6a3c6d2"
dependencies = [
"bitflags 2.4.1",
"gix-path",
"libc",
- "windows 0.52.0",
+ "windows-sys 0.52.0",
]
[[package]]
name = "gix-tempfile"
-version = "12.0.1"
+version = "13.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8ef376d718b1f5f119b458e21b00fbf576bc9d4e26f8f383d29f5ffe3ba3eaa"
+checksum = "2d337955b7af00fb87120d053d87cdfb422a80b9ff7a3aa4057a99c79422dc30"
dependencies = [
"gix-fs",
"libc",
@@ -1498,9 +1502,9 @@ checksum = "02b202d766a7fefc596e2cc6a89cda8ad8ad733aed82da635ac120691112a9b1"
[[package]]
name = "gix-traverse"
-version = "0.36.1"
+version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb64213e52e1b726cb04581690c1e98b5910f983b977d5e9f2eb09f1a7fea6d2"
+checksum = "bfc30c5b5e4e838683b59e1b0574ce6bc1c35916df9709aaab32bb7751daf08b"
dependencies = [
"gix-commitgraph",
"gix-date",
@@ -1514,9 +1518,9 @@ dependencies = [
[[package]]
name = "gix-url"
-version = "0.26.1"
+version = "0.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f0f17cceb7552a231d1fec690bc2740c346554e3be6f5d2c41dfa809594dc44"
+checksum = "26f1981ecc700f4fd73ae62b9ca2da7c8816c8fd267f0185e3f8c21e967984ac"
dependencies = [
"bstr",
"gix-features",
@@ -1528,11 +1532,12 @@ dependencies = [
[[package]]
name = "gix-utils"
-version = "0.1.8"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de6225e2de30b6e9bca2d9f1cc4731640fcef0fb3cabddceee366e7e85d3e94f"
+checksum = "56e839f3d0798b296411263da6bee780a176ef8008a5dfc31287f7eda9266ab8"
dependencies = [
"fastrand 2.0.1",
+ "unicode-normalization",
]
[[package]]
@@ -1607,7 +1612,7 @@ dependencies = [
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
- "windows-core 0.51.1",
+ "windows-core",
]
[[package]]
@@ -3491,20 +3496,10 @@ version = "0.51.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9"
dependencies = [
- "windows-core 0.51.1",
+ "windows-core",
"windows-targets 0.48.5",
]
-[[package]]
-name = "windows"
-version = "0.52.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
-dependencies = [
- "windows-core 0.52.0",
- "windows-targets 0.52.0",
-]
-
[[package]]
name = "windows-core"
version = "0.51.1"
@@ -3514,15 +3509,6 @@ dependencies = [
"windows-targets 0.48.5",
]
-[[package]]
-name = "windows-core"
-version = "0.52.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
-dependencies = [
- "windows-targets 0.52.0",
-]
-
[[package]]
name = "windows-sys"
version = "0.48.0"
diff --git a/Cargo.toml b/Cargo.toml
index 04c173c7..4ecf43d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,8 +49,8 @@ dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
-gix = { version = "0.57.1", default-features = false, features = ["max-performance-safe", "revision"] }
-gix-features = { version = "0.37.2", optional = true }
+gix = { version = "0.58.0", default-features = false, features = ["max-performance-safe", "revision"] }
+gix-features = { version = "0.38.0", optional = true }
indexmap = { version = "2.1.0", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
From ab261a6a266ac0dfd703d836c22582a0024c1843 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 23 Jan 2024 12:00:56 +0000
Subject: [PATCH 109/651] build(deps): update reviewdog/action-suggester action
to v1.10.0
---
.github/workflows/workflow.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 72ac94f9..f43ee693 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -132,7 +132,7 @@ jobs:
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
- name: Check | Detect Changes
- uses: reviewdog/action-suggester@v1.9.0
+ uses: reviewdog/action-suggester@v1.10.0
with:
tool_name: starship config-schema
filter_mode: nofilter
From aaf768d95c592e46f12592b40916821ce4f9b9f4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 24 Jan 2024 10:48:57 +0000
Subject: [PATCH 110/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.11
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index 98041ac0..14217ff8 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.10
+ uses: EmbarkStudios/cargo-deny-action@v1.5.11
with:
command: check ${{ matrix.checks }}
From 7ec0e62ea331a58b0564b5529565756d41d91d5b Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 24 Jan 2024 18:47:34 +0000
Subject: [PATCH 111/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.12
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index 14217ff8..a41ce733 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.11
+ uses: EmbarkStudios/cargo-deny-action@v1.5.12
with:
command: check ${{ matrix.checks }}
From 87597e19315bc35527138a703db897fe38bf990d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 25 Jan 2024 13:26:00 +0000
Subject: [PATCH 112/651] build(deps): update rust crate chrono to 0.4.33
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index c75c1c55..9566bd06 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -394,9 +394,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
-version = "0.4.32"
+version = "0.4.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41daef31d7a747c5c847246f36de49ced6f7403b4cdabc807a97b5cc184cda7a"
+checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb"
dependencies = [
"android-tzdata",
"iana-time-zone",
diff --git a/Cargo.toml b/Cargo.toml
index 4ecf43d4..d493f694 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,7 @@ gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"]
gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
-chrono = { version = "0.4.32", default-features = false, features = ["clock", "std", "wasmbind"] }
+chrono = { version = "0.4.33", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.9"
dirs-next = "2.0.0"
From a280822dc0374e53c0f95b6d977be3143fd8f214 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 26 Jan 2024 22:38:10 +0000
Subject: [PATCH 113/651] build(deps): update rust crate serde to 1.0.196
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 9566bd06..a198b582 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2637,18 +2637,18 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.195"
+version = "1.0.196"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02"
+checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.195"
+version = "1.0.196"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c"
+checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67"
dependencies = [
"proc-macro2",
"quote",
diff --git a/Cargo.toml b/Cargo.toml
index d493f694..fdee1603 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ rayon = "1.8.1"
regex = { version = "1.10.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.21"
-serde = { version = "1.0.195", features = ["derive"] }
+serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.111"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.1", default-features = false }
From da4af64dc52463b788585ac7ee90c6b6342db63f Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 27 Jan 2024 02:07:04 +0000
Subject: [PATCH 114/651] build(deps): update rust crate serde_json to 1.0.112
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index a198b582..88aded99 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2668,9 +2668,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.111"
+version = "1.0.112"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4"
+checksum = "4d1bd37ce2324cf3bf85e5a25f96eb4baf0d5aa6eba43e7ae8958870c4ec48ed"
dependencies = [
"itoa",
"ryu",
diff --git a/Cargo.toml b/Cargo.toml
index fdee1603..a58985d1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,7 +71,7 @@ regex = { version = "1.10.3", default-features = false, features = ["perf", "std
rust-ini = "0.20.0"
semver = "1.0.21"
serde = { version = "1.0.196", features = ["derive"] }
-serde_json = "1.0.111"
+serde_json = "1.0.112"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.1", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
From 7093d5cd84967edba93c9ed412b07519664f6356 Mon Sep 17 00:00:00 2001
From: tricktron
Date: Sat, 27 Jan 2024 22:08:19 +0100
Subject: [PATCH 115/651] fix(bash): Handle Unbound Variables Errors in Bash
(#4972)
* fix: unbound bp pipestatus variable
* fix: unbound preserved prompt command variable
* fix: unbound starship start time variable
* fix: unbound preexec_functions, precmd_functions
and PROMPT_COMMAND variables.
---
src/init/starship.bash | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/init/starship.bash b/src/init/starship.bash
index 5a62be85..d48ce46d 100644
--- a/src/init/starship.bash
+++ b/src/init/starship.bash
@@ -36,7 +36,7 @@ starship_precmd() {
if [[ ${BLE_ATTACHED-} && ${#BLE_PIPESTATUS[@]} -gt 0 ]]; then
STARSHIP_PIPE_STATUS=("${BLE_PIPESTATUS[@]}")
fi
- if [[ "${#BP_PIPESTATUS[@]}" -gt "${#STARSHIP_PIPE_STATUS[@]}" ]]; then
+ if [[ -n "${BP_PIPESTATUS-}" ]] && [[ "${#BP_PIPESTATUS[@]}" -gt "${#STARSHIP_PIPE_STATUS[@]}" ]]; then
STARSHIP_PIPE_STATUS=(${BP_PIPESTATUS[@]})
fi
@@ -65,11 +65,13 @@ starship_precmd() {
# command pipeline, which may rely on it.
_starship_set_return "$STARSHIP_CMD_STATUS"
- eval "$_PRESERVED_PROMPT_COMMAND"
+ if [[ -n "${_PRESERVED_PROMPT_COMMAND-}" ]]; then
+ eval "$_PRESERVED_PROMPT_COMMAND"
+ fi
local -a ARGS=(--terminal-width="${COLUMNS}" --status="${STARSHIP_CMD_STATUS}" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --jobs="${NUM_JOBS}")
# Prepare the timer data, if needed.
- if [[ $STARSHIP_START_TIME ]]; then
+ if [[ -n "${STARSHIP_START_TIME-}" ]]; then
STARSHIP_END_TIME=$(::STARSHIP:: time)
STARSHIP_DURATION=$((STARSHIP_END_TIME - STARSHIP_START_TIME))
ARGS+=( --cmd-duration="${STARSHIP_DURATION}")
@@ -90,7 +92,7 @@ if [[ ${BLE_VERSION-} && _ble_version -ge 400 ]]; then
blehook PRECMD!='starship_precmd'
# If the user appears to be using https://github.com/rcaloras/bash-preexec,
# then hook our functions into their framework.
-elif [[ "${__bp_imported:-}" == "defined" || $preexec_functions || $precmd_functions ]]; then
+elif [[ "${__bp_imported:-}" == "defined" || -n "${preexec_functions-}" || -n "${precmd_functions-}" ]]; then
# bash-preexec needs a single function--wrap the args into a closure and pass
starship_preexec_all(){ starship_preexec "$_"; }
preexec_functions+=(starship_preexec_all)
@@ -111,7 +113,7 @@ else
# Finally, prepare the precmd function and set up the start time. We will avoid to
# add multiple instances of the starship function and keep other user functions if any.
- if [[ -z "$PROMPT_COMMAND" ]]; then
+ if [[ -z "${PROMPT_COMMAND-}" ]]; then
PROMPT_COMMAND="starship_precmd"
elif [[ "$PROMPT_COMMAND" != *"starship_precmd"* ]]; then
# Appending to PROMPT_COMMAND breaks exit status ($?) checking.
From e7942fab20e5d196414b536fdc91734c8b44f202 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 28 Jan 2024 19:56:22 +0000
Subject: [PATCH 116/651] build(deps): update rust crate indexmap to 2.2.0
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 88aded99..7f041fea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1647,9 +1647,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.1.0"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
+checksum = "cf2a4f498956c7723dc280afc6a37d0dec50b39a29e232c6187ce4503703e8c2"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@@ -2587,7 +2587,7 @@ checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
- "indexmap 2.1.0",
+ "indexmap 2.2.0",
"schemars_derive",
"serde",
"serde_json",
@@ -2850,7 +2850,7 @@ dependencies = [
"gix-features",
"guess_host_triple",
"home",
- "indexmap 2.1.0",
+ "indexmap 2.2.0",
"log",
"mockall",
"nix 0.27.1",
@@ -3140,7 +3140,7 @@ version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35"
dependencies = [
- "indexmap 2.1.0",
+ "indexmap 2.2.0",
"serde",
"serde_spanned",
"toml_datetime",
@@ -3162,7 +3162,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.1.0",
+ "indexmap 2.2.0",
"toml_datetime",
"winnow",
]
@@ -3173,7 +3173,7 @@ version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03"
dependencies = [
- "indexmap 2.1.0",
+ "indexmap 2.2.0",
"serde",
"serde_spanned",
"toml_datetime",
diff --git a/Cargo.toml b/Cargo.toml
index a58985d1..67efb4c3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,7 +51,7 @@ gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.58.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
-indexmap = { version = "2.1.0", features = ["serde"] }
+indexmap = { version = "2.2.0", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
From 3dd1d83b962393c0c7ae2aeb0759fe3d1f067eb6 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 29 Jan 2024 04:03:22 +0000
Subject: [PATCH 117/651] build(deps): update rust crate indexmap to 2.2.1
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 7f041fea..8b93900b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1647,9 +1647,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.2.0"
+version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf2a4f498956c7723dc280afc6a37d0dec50b39a29e232c6187ce4503703e8c2"
+checksum = "433de089bd45971eecf4668ee0ee8f4cec17db4f8bd8f7bc3197a6ce37aa7d9b"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@@ -2587,7 +2587,7 @@ checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
- "indexmap 2.2.0",
+ "indexmap 2.2.1",
"schemars_derive",
"serde",
"serde_json",
@@ -2850,7 +2850,7 @@ dependencies = [
"gix-features",
"guess_host_triple",
"home",
- "indexmap 2.2.0",
+ "indexmap 2.2.1",
"log",
"mockall",
"nix 0.27.1",
@@ -3140,7 +3140,7 @@ version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35"
dependencies = [
- "indexmap 2.2.0",
+ "indexmap 2.2.1",
"serde",
"serde_spanned",
"toml_datetime",
@@ -3162,7 +3162,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.2.0",
+ "indexmap 2.2.1",
"toml_datetime",
"winnow",
]
@@ -3173,7 +3173,7 @@ version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03"
dependencies = [
- "indexmap 2.2.0",
+ "indexmap 2.2.1",
"serde",
"serde_spanned",
"toml_datetime",
diff --git a/Cargo.toml b/Cargo.toml
index 67efb4c3..7aefcdaa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,7 +51,7 @@ gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.58.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
-indexmap = { version = "2.2.0", features = ["serde"] }
+indexmap = { version = "2.2.1", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
From 2d4063c40ac478c0efe98b27dca3e4299616afa8 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 29 Jan 2024 04:03:29 +0000
Subject: [PATCH 118/651] build(deps): update rust crate serde_json to 1.0.113
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 8b93900b..b8213735 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2668,9 +2668,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.112"
+version = "1.0.113"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d1bd37ce2324cf3bf85e5a25f96eb4baf0d5aa6eba43e7ae8958870c4ec48ed"
+checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79"
dependencies = [
"itoa",
"ryu",
diff --git a/Cargo.toml b/Cargo.toml
index 7aefcdaa..d66c9292 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,7 +71,7 @@ regex = { version = "1.10.3", default-features = false, features = ["perf", "std
rust-ini = "0.20.0"
semver = "1.0.21"
serde = { version = "1.0.196", features = ["derive"] }
-serde_json = "1.0.112"
+serde_json = "1.0.113"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.1", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
From fef0035c1f97cb9e0c7beb63381cfa57283a89a4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 31 Jan 2024 18:51:49 +0000
Subject: [PATCH 119/651] build(deps): update toml crates
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 4 ++--
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index b8213735..b4050174 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2880,8 +2880,8 @@ dependencies = [
"systemstat",
"tempfile",
"terminal_size",
- "toml 0.8.8",
- "toml_edit 0.21.0",
+ "toml 0.8.9",
+ "toml_edit 0.21.1",
"unicode-segmentation",
"unicode-width",
"urlencoding",
@@ -3136,15 +3136,15 @@ dependencies = [
[[package]]
name = "toml"
-version = "0.8.8"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1a195ec8c9da26928f773888e0742ca3ca1040c6cd859c919c9f59c1954ab35"
+checksum = "c6a4b9e8023eb94392d3dca65d717c53abc5dad49c07cb65bb8fcd87115fa325"
dependencies = [
"indexmap 2.2.1",
"serde",
"serde_spanned",
"toml_datetime",
- "toml_edit 0.21.0",
+ "toml_edit 0.21.1",
]
[[package]]
@@ -3169,9 +3169,9 @@ dependencies = [
[[package]]
name = "toml_edit"
-version = "0.21.0"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03"
+checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
dependencies = [
"indexmap 2.2.1",
"serde",
diff --git a/Cargo.toml b/Cargo.toml
index d66c9292..9aa9a287 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -80,8 +80,8 @@ starship-battery = { version = "0.8.2", optional = true }
strsim = "0.10.1"
systemstat = "=0.2.3"
terminal_size = "0.3.0"
-toml = { version = "0.8.8", features = ["preserve_order"] }
-toml_edit = "0.21.0"
+toml = { version = "0.8.9", features = ["preserve_order"] }
+toml_edit = "0.21.1"
unicode-segmentation = "1.10.1"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
From 92c19ce5551712f8533569169fa8aed693c2a529 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 1 Feb 2024 04:12:58 +0000
Subject: [PATCH 120/651] build(deps): update rust crate indexmap to 2.2.2
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index b4050174..abe164e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1647,9 +1647,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.2.1"
+version = "2.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "433de089bd45971eecf4668ee0ee8f4cec17db4f8bd8f7bc3197a6ce37aa7d9b"
+checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@@ -2587,7 +2587,7 @@ checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
- "indexmap 2.2.1",
+ "indexmap 2.2.2",
"schemars_derive",
"serde",
"serde_json",
@@ -2850,7 +2850,7 @@ dependencies = [
"gix-features",
"guess_host_triple",
"home",
- "indexmap 2.2.1",
+ "indexmap 2.2.2",
"log",
"mockall",
"nix 0.27.1",
@@ -3140,7 +3140,7 @@ version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6a4b9e8023eb94392d3dca65d717c53abc5dad49c07cb65bb8fcd87115fa325"
dependencies = [
- "indexmap 2.2.1",
+ "indexmap 2.2.2",
"serde",
"serde_spanned",
"toml_datetime",
@@ -3162,7 +3162,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.2.1",
+ "indexmap 2.2.2",
"toml_datetime",
"winnow",
]
@@ -3173,7 +3173,7 @@ version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
dependencies = [
- "indexmap 2.2.1",
+ "indexmap 2.2.2",
"serde",
"serde_spanned",
"toml_datetime",
diff --git a/Cargo.toml b/Cargo.toml
index 9aa9a287..1b727860 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,7 +51,7 @@ gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.58.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
-indexmap = { version = "2.2.1", features = ["serde"] }
+indexmap = { version = "2.2.2", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
From 497f243c105758823a6a5c774685e7a8a7ae3aa2 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 1 Feb 2024 14:07:00 +0000
Subject: [PATCH 121/651] build(deps): update dependency taplo-cli to 0.9.0
---
.github/workflows/format-workflow.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml
index 01de6611..50c96a62 100644
--- a/.github/workflows/format-workflow.yml
+++ b/.github/workflows/format-workflow.yml
@@ -24,7 +24,7 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Install | Taplo
- run: cargo install --debug --locked --version 0.8.1 taplo-cli
+ run: cargo install --debug --locked --version 0.9.0 taplo-cli
- name: Presets | Validate with schema
run: taplo lint --schema "file://${GITHUB_WORKSPACE}/.github/config-schema.json" docs/.vuepress/public/presets/toml/*.toml
From a77cd87289772760081a9c74ffe92c14196c6ae8 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 1 Feb 2024 15:35:19 +0000
Subject: [PATCH 122/651] build(deps): update crate-ci/typos action to v1.18.0
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index 46e49255..9d60d97f 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.17.2
+ - uses: crate-ci/typos@v1.18.0
From 623789e2fa4feadce0e5477d2518df050cdc11ce Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 2 Feb 2024 19:43:57 +0000
Subject: [PATCH 123/651] build(deps): update rust crate clap_complete to
4.4.10
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index abe164e5..ab3c6696 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,9 +432,9 @@ dependencies = [
[[package]]
name = "clap_complete"
-version = "4.4.9"
+version = "4.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df631ae429f6613fcd3a7c1adbdb65f637271e561b03680adaa6573015dfb106"
+checksum = "abb745187d7f4d76267b37485a65e0149edd0e91a4cfcdd3f27524ad86cee9f3"
dependencies = [
"clap",
]
diff --git a/Cargo.toml b/Cargo.toml
index 1b727860..1a9f2a44 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.33", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.4.9"
+clap_complete = "4.4.10"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From 428d840bce3e602fc3c55a52e441c64e7047b02e Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sun, 4 Feb 2024 16:01:32 +0100
Subject: [PATCH 124/651] build(deps): update rust crate windows to 0.52.0
(#5379)
---
Cargo.lock | 26 +++++++----
Cargo.toml | 2 +-
src/modules/utils/directory_win.rs | 69 ++++++++++++++++++------------
3 files changed, 61 insertions(+), 36 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index ab3c6696..1572ca04 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1612,7 +1612,7 @@ dependencies = [
"iana-time-zone-haiku",
"js-sys",
"wasm-bindgen",
- "windows-core",
+ "windows-core 0.51.1",
]
[[package]]
@@ -2887,7 +2887,7 @@ dependencies = [
"urlencoding",
"versions",
"which",
- "windows 0.48.0",
+ "windows 0.52.0",
"winres",
"yaml-rust",
]
@@ -3483,21 +3483,22 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows"
-version = "0.48.0"
+version = "0.51.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
+checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9"
dependencies = [
+ "windows-core 0.51.1",
"windows-targets 0.48.5",
]
[[package]]
name = "windows"
-version = "0.51.1"
+version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9"
+checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
dependencies = [
- "windows-core",
- "windows-targets 0.48.5",
+ "windows-core 0.52.0",
+ "windows-targets 0.52.0",
]
[[package]]
@@ -3509,6 +3510,15 @@ dependencies = [
"windows-targets 0.48.5",
]
+[[package]]
+name = "windows-core"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
+dependencies = [
+ "windows-targets 0.52.0",
+]
+
[[package]]
name = "windows-sys"
version = "0.48.0"
diff --git a/Cargo.toml b/Cargo.toml
index 1a9f2a44..a637aa03 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -104,7 +104,7 @@ features = ["preserve_order", "indexmap2"]
deelevate = "0.2.0"
[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
+version = "0.52.0"
features = [
"Win32_Foundation",
"Win32_UI_Shell",
diff --git a/src/modules/utils/directory_win.rs b/src/modules/utils/directory_win.rs
index 61760c8a..b34c570d 100644
--- a/src/modules/utils/directory_win.rs
+++ b/src/modules/utils/directory_win.rs
@@ -3,7 +3,7 @@ use std::{mem, os::windows::ffi::OsStrExt, path::Path};
use windows::{
core::PCWSTR,
Win32::{
- Foundation::{CloseHandle, ERROR_INSUFFICIENT_BUFFER, HANDLE},
+ Foundation::{CloseHandle, BOOL, ERROR_INSUFFICIENT_BUFFER, HANDLE},
Security::{
AccessCheck, DuplicateToken, GetFileSecurityW, MapGenericMask, SecurityImpersonation,
DACL_SECURITY_INFORMATION, GENERIC_MAPPING, GROUP_SECURITY_INFORMATION,
@@ -17,6 +17,17 @@ use windows::{
UI::Shell::PathIsNetworkPathW,
},
};
+
+struct Handle(HANDLE);
+
+impl Drop for Handle {
+ fn drop(&mut self) {
+ if let Err(e) = unsafe { CloseHandle(self.0) } {
+ log::debug!("CloseHandle failed: {e:?}");
+ }
+ }
+}
+
/// Checks if the current user has write access right to the `folder_path`
///
/// First, the function extracts DACL from the given directory and then calls `AccessCheck` against
@@ -71,27 +82,35 @@ pub fn is_write_allowed(folder_path: &Path) -> std::result::Result
));
}
- let mut token = HANDLE::default();
- let rc = unsafe {
- OpenProcessToken(
- GetCurrentProcess(),
- TOKEN_IMPERSONATE | TOKEN_QUERY | TOKEN_DUPLICATE | TOKEN_READ_CONTROL,
- &mut token,
- )
+ let token = {
+ let mut token = HANDLE::default();
+
+ let rc = unsafe {
+ OpenProcessToken(
+ GetCurrentProcess(),
+ TOKEN_IMPERSONATE | TOKEN_QUERY | TOKEN_DUPLICATE | TOKEN_READ_CONTROL,
+ &mut token,
+ )
+ };
+ if let Err(e) = rc {
+ return Err(format!(
+ "OpenProcessToken failed to retrieve current process' security token: {e:?}"
+ ));
+ }
+
+ Handle(token)
};
- if let Err(e) = rc.ok() {
- return Err(format!(
- "OpenProcessToken failed to retrieve current process' security token: {e:?}"
- ));
- }
- let mut impersonated_token = HANDLE::default();
- let rc = unsafe { DuplicateToken(token, SecurityImpersonation, &mut impersonated_token) };
+ let impersonated_token = {
+ let mut impersonated_token = HANDLE::default();
+ let rc = unsafe { DuplicateToken(token.0, SecurityImpersonation, &mut impersonated_token) };
- if let Err(e) = rc.ok() {
- unsafe { CloseHandle(token) };
- return Err(format!("DuplicateToken failed: {e:?}"));
- }
+ if let Err(e) = rc {
+ return Err(format!("DuplicateToken failed: {e:?}"));
+ }
+
+ Handle(impersonated_token)
+ };
let mapping = GENERIC_MAPPING {
GenericRead: FILE_GENERIC_READ.0,
@@ -104,12 +123,12 @@ pub fn is_write_allowed(folder_path: &Path) -> std::result::Result
let mut priv_size = mem::size_of::() as _;
let mut granted_access = 0;
let mut access_rights = FILE_GENERIC_WRITE;
- let mut result = 0;
+ let mut result = BOOL::default();
unsafe { MapGenericMask(&mut access_rights.0, &mapping) };
let rc = unsafe {
AccessCheck(
psecurity_descriptor,
- impersonated_token,
+ impersonated_token.0,
access_rights.0,
&mapping,
Some(&mut privileges),
@@ -118,14 +137,10 @@ pub fn is_write_allowed(folder_path: &Path) -> std::result::Result
&mut result,
)
};
- unsafe {
- CloseHandle(impersonated_token);
- CloseHandle(token);
- }
- if let Err(e) = rc.ok() {
+ if let Err(e) = rc {
return Err(format!("AccessCheck failed: {e:?}"));
}
- Ok(result != 0)
+ Ok(result.as_bool())
}
From 2aa711ccc7096437e21149b18d1384534bfbcc57 Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sun, 4 Feb 2024 16:02:17 +0100
Subject: [PATCH 125/651] fix(bash): improve integration with bash-preexec
(#5734)
---
src/init/starship.bash | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/init/starship.bash b/src/init/starship.bash
index d48ce46d..c59fb5a4 100644
--- a/src/init/starship.bash
+++ b/src/init/starship.bash
@@ -36,7 +36,7 @@ starship_precmd() {
if [[ ${BLE_ATTACHED-} && ${#BLE_PIPESTATUS[@]} -gt 0 ]]; then
STARSHIP_PIPE_STATUS=("${BLE_PIPESTATUS[@]}")
fi
- if [[ -n "${BP_PIPESTATUS-}" ]] && [[ "${#BP_PIPESTATUS[@]}" -gt "${#STARSHIP_PIPE_STATUS[@]}" ]]; then
+ if [[ -n "${BP_PIPESTATUS-}" ]] && [[ "${#BP_PIPESTATUS[@]}" -gt 0 ]]; then
STARSHIP_PIPE_STATUS=(${BP_PIPESTATUS[@]})
fi
@@ -92,7 +92,7 @@ if [[ ${BLE_VERSION-} && _ble_version -ge 400 ]]; then
blehook PRECMD!='starship_precmd'
# If the user appears to be using https://github.com/rcaloras/bash-preexec,
# then hook our functions into their framework.
-elif [[ "${__bp_imported:-}" == "defined" || -n "${preexec_functions-}" || -n "${precmd_functions-}" ]]; then
+elif [[ -n "${bash_preexec_imported:-}" || -n "${__bp_imported:-}" || -n "${preexec_functions-}" || -n "${precmd_functions-}" ]]; then
# bash-preexec needs a single function--wrap the args into a closure and pass
starship_preexec_all(){ starship_preexec "$_"; }
preexec_functions+=(starship_preexec_all)
From 1e43ec6e335b6f34b543b1b80b368ee4ed00ca46 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 5 Feb 2024 01:05:51 +0000
Subject: [PATCH 126/651] build(deps): update dprint plugins
---
.dprint.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.dprint.json b/.dprint.json
index bb4f592d..27be7f06 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -25,9 +25,9 @@
"target/"
],
"plugins": [
- "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.88.9/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.88.10/plugin.wasm",
"https://github.com/dprint/dprint-plugin-json/releases/download/0.19.1/plugin.wasm",
"https://github.com/dprint/dprint-plugin-markdown/releases/download/0.16.3/plugin.wasm",
- "https://github.com/dprint/dprint-plugin-toml/releases/download/0.5.4/plugin.wasm"
+ "https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.0/plugin.wasm"
]
}
From c367d0089da894cc8783f514c572d7131539bc9c Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 5 Feb 2024 09:10:03 +0000
Subject: [PATCH 127/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.13
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index a41ce733..9600dc74 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.12
+ uses: EmbarkStudios/cargo-deny-action@v1.5.13
with:
command: check ${{ matrix.checks }}
From 53035044e8e46885feb55c485055ebfa5a56720e Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 5 Feb 2024 09:10:26 +0000
Subject: [PATCH 128/651] build(deps): update pest crates to 2.7.7
---
Cargo.lock | 16 ++++++++--------
Cargo.toml | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 1572ca04..99acb41b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2185,9 +2185,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "pest"
-version = "2.7.6"
+version = "2.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f200d8d83c44a45b21764d1916299752ca035d15ecd46faca3e9a2a2bf6ad06"
+checksum = "219c0dcc30b6a27553f9cc242972b67f75b60eb0db71f0b5462f38b058c41546"
dependencies = [
"memchr",
"thiserror",
@@ -2196,9 +2196,9 @@ dependencies = [
[[package]]
name = "pest_derive"
-version = "2.7.6"
+version = "2.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bcd6ab1236bbdb3a49027e920e693192ebfe8913f6d60e294de57463a493cfde"
+checksum = "22e1288dbd7786462961e69bfd4df7848c1e37e8b74303dbdab82c3a9cdd2809"
dependencies = [
"pest",
"pest_generator",
@@ -2206,9 +2206,9 @@ dependencies = [
[[package]]
name = "pest_generator"
-version = "2.7.6"
+version = "2.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a31940305ffc96863a735bef7c7994a00b325a7138fdbc5bda0f1a0476d3275"
+checksum = "1381c29a877c6d34b8c176e734f35d7f7f5b3adaefe940cb4d1bb7af94678e2e"
dependencies = [
"pest",
"pest_meta",
@@ -2219,9 +2219,9 @@ dependencies = [
[[package]]
name = "pest_meta"
-version = "2.7.6"
+version = "2.7.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7ff62f5259e53b78d1af898941cdcdccfae7385cf7d793a6e55de5d05bb4b7d"
+checksum = "d0934d6907f148c22a3acbda520c7eed243ad7487a30f51f6ce52b58b7077a8a"
dependencies = [
"once_cell",
"pest",
diff --git a/Cargo.toml b/Cargo.toml
index a637aa03..e8fc8119 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,8 +62,8 @@ open = "5.0.1"
# update os module config and tests when upgrading os_info
os_info = "3.7.0"
path-slash = "0.2.1"
-pest = "2.7.6"
-pest_derive = "2.7.6"
+pest = "2.7.7"
+pest_derive = "2.7.7"
quick-xml = "0.31.0"
rand = "0.8.5"
rayon = "1.8.1"
From 7c3d34bce7eb2561d9688005df49c8a5f308d680 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 5 Feb 2024 15:49:48 +0000
Subject: [PATCH 129/651] build(deps): update crate-ci/typos action to v1.18.1
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index 9d60d97f..a4c27360 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.18.0
+ - uses: crate-ci/typos@v1.18.1
From cc6ae100b33cca7de88c00817f47a9ab5d35e6c4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 5 Feb 2024 19:19:09 +0000
Subject: [PATCH 130/651] build(deps): update rust crate tempfile to 3.10.0
---
Cargo.lock | 25 ++++++++++++-------------
Cargo.toml | 2 +-
2 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 99acb41b..6e905c33 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -180,7 +180,7 @@ dependencies = [
"futures-lite 2.1.0",
"parking",
"polling 3.3.1",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"slab",
"tracing",
"windows-sys 0.52.0",
@@ -219,7 +219,7 @@ dependencies = [
"cfg-if",
"event-listener 3.1.0",
"futures-lite 1.13.0",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"windows-sys 0.48.0",
]
@@ -246,7 +246,7 @@ dependencies = [
"cfg-if",
"futures-core",
"futures-io",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"signal-hook-registry",
"slab",
"windows-sys 0.48.0",
@@ -1291,7 +1291,7 @@ dependencies = [
"itoa",
"libc",
"memmap2",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"smallvec",
"thiserror",
]
@@ -2320,7 +2320,7 @@ dependencies = [
"cfg-if",
"concurrent-queue",
"pin-project-lite",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"tracing",
"windows-sys 0.52.0",
]
@@ -2553,9 +2553,9 @@ dependencies = [
[[package]]
name = "rustix"
-version = "0.38.30"
+version = "0.38.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca"
+checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949"
dependencies = [
"bitflags 2.4.1",
"errno 0.3.8",
@@ -2969,14 +2969,13 @@ dependencies = [
[[package]]
name = "tempfile"
-version = "3.9.0"
+version = "3.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"
+checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67"
dependencies = [
"cfg-if",
"fastrand 2.0.1",
- "redox_syscall",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"windows-sys 0.52.0",
]
@@ -2986,7 +2985,7 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7"
dependencies = [
- "rustix 0.38.30",
+ "rustix 0.38.31",
"windows-sys 0.48.0",
]
@@ -3446,7 +3445,7 @@ dependencies = [
"either",
"home",
"once_cell",
- "rustix 0.38.30",
+ "rustix 0.38.31",
"windows-sys 0.52.0",
]
diff --git a/Cargo.toml b/Cargo.toml
index e8fc8119..5eb5847a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -125,7 +125,7 @@ winres = "0.1.12"
[dev-dependencies]
mockall = "0.12"
-tempfile = "3.9.0"
+tempfile = "3.10.0"
[profile.release]
codegen-units = 1
From 72b61ef15359e8794b49e255288e2adbeaace281 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 6 Feb 2024 03:09:05 +0000
Subject: [PATCH 131/651] build(deps): update toml crates
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 4 ++--
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 6e905c33..6fd6e51f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2880,8 +2880,8 @@ dependencies = [
"systemstat",
"tempfile",
"terminal_size",
- "toml 0.8.9",
- "toml_edit 0.21.1",
+ "toml 0.8.10",
+ "toml_edit 0.22.4",
"unicode-segmentation",
"unicode-width",
"urlencoding",
@@ -3135,15 +3135,15 @@ dependencies = [
[[package]]
name = "toml"
-version = "0.8.9"
+version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c6a4b9e8023eb94392d3dca65d717c53abc5dad49c07cb65bb8fcd87115fa325"
+checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290"
dependencies = [
"indexmap 2.2.2",
"serde",
"serde_spanned",
"toml_datetime",
- "toml_edit 0.21.1",
+ "toml_edit 0.22.4",
]
[[package]]
@@ -3168,9 +3168,9 @@ dependencies = [
[[package]]
name = "toml_edit"
-version = "0.21.1"
+version = "0.22.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
+checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951"
dependencies = [
"indexmap 2.2.2",
"serde",
diff --git a/Cargo.toml b/Cargo.toml
index 5eb5847a..17f8d3c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -80,8 +80,8 @@ starship-battery = { version = "0.8.2", optional = true }
strsim = "0.10.1"
systemstat = "=0.2.3"
terminal_size = "0.3.0"
-toml = { version = "0.8.9", features = ["preserve_order"] }
-toml_edit = "0.21.1"
+toml = { version = "0.8.10", features = ["preserve_order"] }
+toml_edit = "0.22.4"
unicode-segmentation = "1.10.1"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
From a0df2c28f48a8f6a7f17575615df0f5a556c9695 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 7 Feb 2024 07:24:28 +0000
Subject: [PATCH 132/651] build(deps): update rust crate unicode-segmentation
to 1.11.0
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 6fd6e51f..c7253795 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3280,9 +3280,9 @@ dependencies = [
[[package]]
name = "unicode-segmentation"
-version = "1.10.1"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
+checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
[[package]]
name = "unicode-width"
diff --git a/Cargo.toml b/Cargo.toml
index 17f8d3c4..1c0fc669 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -82,7 +82,7 @@ systemstat = "=0.2.3"
terminal_size = "0.3.0"
toml = { version = "0.8.10", features = ["preserve_order"] }
toml_edit = "0.22.4"
-unicode-segmentation = "1.10.1"
+unicode-segmentation = "1.11.0"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
versions = "6.1.0"
From 0161de8a7f613cb9ab0448bd80fca3b268bc4956 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 8 Feb 2024 16:33:28 +0000
Subject: [PATCH 133/651] build(deps): update crate-ci/typos action to v1.18.2
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index a4c27360..2348e3b5 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.18.1
+ - uses: crate-ci/typos@v1.18.2
From 153025e69a183db8db8e322c2d0ff2ce330232a0 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 8 Feb 2024 19:23:35 +0000
Subject: [PATCH 134/651] build(deps): update clap crates to 4.5.0
---
Cargo.lock | 30 ++++++++++++++++++------------
Cargo.toml | 4 ++--
2 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index c7253795..fbe61e90 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.4.18"
+version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c"
+checksum = "80c21025abd42669a92efc996ef13cfb2c5c627858421ea58d5c3b331a6c134f"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,32 +418,32 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.4.18"
+version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7"
+checksum = "458bf1f341769dfcf849846f65dffdf9146daa56bcd2a47cb4e1de9915567c99"
dependencies = [
"anstream",
"anstyle",
"clap_lex",
- "strsim",
+ "strsim 0.11.0",
"unicase",
"unicode-width",
]
[[package]]
name = "clap_complete"
-version = "4.4.10"
+version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abb745187d7f4d76267b37485a65e0149edd0e91a4cfcdd3f27524ad86cee9f3"
+checksum = "299353be8209bd133b049bf1c63582d184a8b39fd9c04f15fe65f50f88bdfe6c"
dependencies = [
"clap",
]
[[package]]
name = "clap_derive"
-version = "4.4.7"
+version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442"
+checksum = "307bc0538d5f0f83b8248db3087aa92fe504e4691294d0c96c0eabc33f47ba47"
dependencies = [
"heck",
"proc-macro2",
@@ -453,9 +453,9 @@ dependencies = [
[[package]]
name = "clap_lex"
-version = "0.6.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1"
+checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "clru"
@@ -2876,7 +2876,7 @@ dependencies = [
"shadow-rs",
"shell-words",
"starship-battery",
- "strsim",
+ "strsim 0.10.1",
"systemstat",
"tempfile",
"terminal_size",
@@ -2921,6 +2921,12 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccbca6f34534eb78dbee83f6b2c9442fea7113f43d9e80ea320f0972ae5dc08d"
+[[package]]
+name = "strsim"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01"
+
[[package]]
name = "syn"
version = "1.0.109"
diff --git a/Cargo.toml b/Cargo.toml
index 1c0fc669..fb76ee7a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,8 +43,8 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.33", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.4.18", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.4.10"
+clap = { version = "4.5.0", features = ["derive", "cargo", "unicode"] }
+clap_complete = "4.5.0"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From 26375c49cfec39927d3560ca000268dfc01e0486 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 8 Feb 2024 19:23:39 +0000
Subject: [PATCH 135/651] build(deps): update reviewdog/action-suggester action
to v1.11.0
---
.github/workflows/workflow.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index f43ee693..f5b19486 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -132,7 +132,7 @@ jobs:
run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json
- name: Check | Detect Changes
- uses: reviewdog/action-suggester@v1.10.0
+ uses: reviewdog/action-suggester@v1.11.0
with:
tool_name: starship config-schema
filter_mode: nofilter
From fed7445ecf8959a32a8690a5fa36c4d9765663ba Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 11 Feb 2024 06:47:15 +0000
Subject: [PATCH 136/651] build(deps): update rust crate chrono to 0.4.34
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index fbe61e90..42e0a658 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -394,9 +394,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chrono"
-version = "0.4.33"
+version = "0.4.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb"
+checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b"
dependencies = [
"android-tzdata",
"iana-time-zone",
diff --git a/Cargo.toml b/Cargo.toml
index fb76ee7a..ddb1e6e4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,7 +42,7 @@ gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"]
gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
-chrono = { version = "0.4.33", default-features = false, features = ["clock", "std", "wasmbind"] }
+chrono = { version = "0.4.34", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.5.0", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.5.0"
dirs-next = "2.0.0"
From b7eb5169d6696626d456044916b92ed8f308fb7b Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 12 Feb 2024 03:59:19 +0000
Subject: [PATCH 137/651] build(deps): update rust crate indexmap to 2.2.3
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 42e0a658..90121ac6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1647,9 +1647,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.2.2"
+version = "2.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520"
+checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@@ -2587,7 +2587,7 @@ checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
- "indexmap 2.2.2",
+ "indexmap 2.2.3",
"schemars_derive",
"serde",
"serde_json",
@@ -2850,7 +2850,7 @@ dependencies = [
"gix-features",
"guess_host_triple",
"home",
- "indexmap 2.2.2",
+ "indexmap 2.2.3",
"log",
"mockall",
"nix 0.27.1",
@@ -3145,7 +3145,7 @@ version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290"
dependencies = [
- "indexmap 2.2.2",
+ "indexmap 2.2.3",
"serde",
"serde_spanned",
"toml_datetime",
@@ -3167,7 +3167,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.2.2",
+ "indexmap 2.2.3",
"toml_datetime",
"winnow",
]
@@ -3178,7 +3178,7 @@ version = "0.22.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951"
dependencies = [
- "indexmap 2.2.2",
+ "indexmap 2.2.3",
"serde",
"serde_spanned",
"toml_datetime",
diff --git a/Cargo.toml b/Cargo.toml
index ddb1e6e4..f3a506ba 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,7 +51,7 @@ gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.58.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
-indexmap = { version = "2.2.2", features = ["serde"] }
+indexmap = { version = "2.2.3", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
From 1e4e967f96bca8c311b05a829c123ad466f74553 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 12 Feb 2024 03:59:22 +0000
Subject: [PATCH 138/651] build(deps): update dependency
dprint/dprint-plugin-typescript to v0.89.0
---
.dprint.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.dprint.json b/.dprint.json
index 27be7f06..04ce1976 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -25,7 +25,7 @@
"target/"
],
"plugins": [
- "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.88.10/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.89.0/plugin.wasm",
"https://github.com/dprint/dprint-plugin-json/releases/download/0.19.1/plugin.wasm",
"https://github.com/dprint/dprint-plugin-markdown/releases/download/0.16.3/plugin.wasm",
"https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.0/plugin.wasm"
From 07fbf063df76bbc7dcb2e87331427ad4e6110a48 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 13 Feb 2024 12:19:30 +0000
Subject: [PATCH 139/651] build(deps): update embarkstudios/cargo-deny-action
action to v1.5.15
---
.github/workflows/security-audit.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index 9600dc74..bdb28833 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
- uses: EmbarkStudios/cargo-deny-action@v1.5.13
+ uses: EmbarkStudios/cargo-deny-action@v1.5.15
with:
command: check ${{ matrix.checks }}
From 6ff7015175a9ee8c5f23081d708c35c844b793f1 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 13 Feb 2024 16:03:15 +0000
Subject: [PATCH 140/651] build(deps): update rust crate toml_edit to 0.22.5
---
Cargo.lock | 29 +++++++++++++++++++----------
Cargo.toml | 2 +-
2 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 90121ac6..4fde8a23 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1096,7 +1096,7 @@ dependencies = [
"gix-date",
"itoa",
"thiserror",
- "winnow",
+ "winnow 0.5.31",
]
[[package]]
@@ -1149,7 +1149,7 @@ dependencies = [
"smallvec",
"thiserror",
"unicode-bom",
- "winnow",
+ "winnow 0.5.31",
]
[[package]]
@@ -1334,7 +1334,7 @@ dependencies = [
"itoa",
"smallvec",
"thiserror",
- "winnow",
+ "winnow 0.5.31",
]
[[package]]
@@ -1421,7 +1421,7 @@ dependencies = [
"gix-validate",
"memmap2",
"thiserror",
- "winnow",
+ "winnow 0.5.31",
]
[[package]]
@@ -2881,7 +2881,7 @@ dependencies = [
"tempfile",
"terminal_size",
"toml 0.8.10",
- "toml_edit 0.22.4",
+ "toml_edit 0.22.5",
"unicode-segmentation",
"unicode-width",
"urlencoding",
@@ -3149,7 +3149,7 @@ dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
- "toml_edit 0.22.4",
+ "toml_edit 0.22.5",
]
[[package]]
@@ -3169,20 +3169,20 @@ checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
"indexmap 2.2.3",
"toml_datetime",
- "winnow",
+ "winnow 0.5.31",
]
[[package]]
name = "toml_edit"
-version = "0.22.4"
+version = "0.22.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c9ffdf896f8daaabf9b66ba8e77ea1ed5ed0f72821b398aba62352e95062951"
+checksum = "99e68c159e8f5ba8a28c4eb7b0c0c190d77bb479047ca713270048145a9ad28a"
dependencies = [
"indexmap 2.2.3",
"serde",
"serde_spanned",
"toml_datetime",
- "winnow",
+ "winnow 0.6.0",
]
[[package]]
@@ -3665,6 +3665,15 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "winnow"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1dbce9e90e5404c5a52ed82b1d13fc8cfbdad85033b6f57546ffd1265f8451"
+dependencies = [
+ "memchr",
+]
+
[[package]]
name = "winres"
version = "0.1.12"
diff --git a/Cargo.toml b/Cargo.toml
index f3a506ba..6afc9891 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -81,7 +81,7 @@ strsim = "0.10.1"
systemstat = "=0.2.3"
terminal_size = "0.3.0"
toml = { version = "0.8.10", features = ["preserve_order"] }
-toml_edit = "0.22.4"
+toml_edit = "0.22.5"
unicode-segmentation = "1.11.0"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
From a84d87b909c9969df104832876b1e3e7dc27c01d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 16 Feb 2024 03:04:38 +0000
Subject: [PATCH 141/651] build(deps): update rust crate toml_edit to 0.22.6
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 4fde8a23..d3e40b34 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2881,7 +2881,7 @@ dependencies = [
"tempfile",
"terminal_size",
"toml 0.8.10",
- "toml_edit 0.22.5",
+ "toml_edit 0.22.6",
"unicode-segmentation",
"unicode-width",
"urlencoding",
@@ -3149,7 +3149,7 @@ dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
- "toml_edit 0.22.5",
+ "toml_edit 0.22.6",
]
[[package]]
@@ -3174,9 +3174,9 @@ dependencies = [
[[package]]
name = "toml_edit"
-version = "0.22.5"
+version = "0.22.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "99e68c159e8f5ba8a28c4eb7b0c0c190d77bb479047ca713270048145a9ad28a"
+checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6"
dependencies = [
"indexmap 2.2.3",
"serde",
diff --git a/Cargo.toml b/Cargo.toml
index 6afc9891..6b1ec6ec 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -81,7 +81,7 @@ strsim = "0.10.1"
systemstat = "=0.2.3"
terminal_size = "0.3.0"
toml = { version = "0.8.10", features = ["preserve_order"] }
-toml_edit = "0.22.5"
+toml_edit = "0.22.6"
unicode-segmentation = "1.11.0"
unicode-width = "0.1.11"
urlencoding = "2.1.3"
From ebf6bdb4c5e6d7c28ed7faa0b5d195246e3937ed Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 16 Feb 2024 15:01:51 +0000
Subject: [PATCH 142/651] build(deps): update rust crate clap to 4.5.1
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index d3e40b34..18bc57f8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -408,9 +408,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "4.5.0"
+version = "4.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "80c21025abd42669a92efc996ef13cfb2c5c627858421ea58d5c3b331a6c134f"
+checksum = "c918d541ef2913577a0f9566e9ce27cb35b6df072075769e0b26cb5a554520da"
dependencies = [
"clap_builder",
"clap_derive",
@@ -418,9 +418,9 @@ dependencies = [
[[package]]
name = "clap_builder"
-version = "4.5.0"
+version = "4.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "458bf1f341769dfcf849846f65dffdf9146daa56bcd2a47cb4e1de9915567c99"
+checksum = "9f3e7391dad68afb0c2ede1bf619f579a3dc9c2ec67f089baa397123a2f3d1eb"
dependencies = [
"anstream",
"anstyle",
diff --git a/Cargo.toml b/Cargo.toml
index 6b1ec6ec..414320fa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.34", default-features = false, features = ["clock", "std", "wasmbind"] }
-clap = { version = "4.5.0", features = ["derive", "cargo", "unicode"] }
+clap = { version = "4.5.1", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.5.0"
dirs-next = "2.0.0"
dunce = "1.0.4"
From 186f99717efa0aba56bc6321a8c16ecb46478c43 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 17 Feb 2024 01:56:59 +0000
Subject: [PATCH 143/651] build(deps): update rust crate clap_complete to 4.5.1
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 18bc57f8..62b47e26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,9 +432,9 @@ dependencies = [
[[package]]
name = "clap_complete"
-version = "4.5.0"
+version = "4.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "299353be8209bd133b049bf1c63582d184a8b39fd9c04f15fe65f50f88bdfe6c"
+checksum = "885e4d7d5af40bfb99ae6f9433e292feac98d452dcb3ec3d25dfe7552b77da8c"
dependencies = [
"clap",
]
diff --git a/Cargo.toml b/Cargo.toml
index 414320fa..9832b714 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.34", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.5.1", features = ["derive", "cargo", "unicode"] }
-clap_complete = "4.5.0"
+clap_complete = "4.5.1"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
From 4907eac3cf6348f666e8c50d5ff57a1d1e504662 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 17 Feb 2024 22:31:31 +0000
Subject: [PATCH 144/651] build(deps): update rust crate process_control to
4.1.0
---
Cargo.lock | 7 +++----
Cargo.toml | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 62b47e26..8ae8b132 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2385,14 +2385,13 @@ dependencies = [
[[package]]
name = "process_control"
-version = "4.0.3"
+version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32e056a69288d0a211f4c74c48391c6eb86e714fdcb9dc58a9f34302da9c20bf"
+checksum = "4d18334c4a4b2770ee894e63cf466d5a9ea449cf29e321101b0b135a747afb6f"
dependencies = [
- "crossbeam-channel",
"libc",
"signal-hook 0.3.17",
- "windows-sys 0.48.0",
+ "windows-sys 0.52.0",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 9832b714..fce392e5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -89,7 +89,7 @@ versions = "6.1.0"
which = "6.0.0"
yaml-rust = "0.4.5"
-process_control = { version = "4.0.3", features = ["crossbeam-channel"] }
+process_control = { version = "4.1.0", features = ["crossbeam-channel"] }
guess_host_triple = "0.1.3"
home = "0.5.9"
From 8ab5c0bc3829185d2b4c083e3fffa0c28323daa5 Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sun, 18 Feb 2024 08:22:15 +0100
Subject: [PATCH 145/651] build(deps): update github artifact actions to v4
(#5782)
---
.github/workflows/release.yml | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 666bd6d6..8e2bd1ae 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -140,7 +140,7 @@ jobs:
cd -
- name: Release | Upload artifacts
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}
@@ -148,7 +148,7 @@ jobs:
- name: Release | Upload installer artifacts [Windows]
continue-on-error: true
if: matrix.os == 'windows-latest' && matrix.target != 'aarch64-pc-windows-msvc'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: starship-${{ matrix.target }}.msi
path: target/wix/starship-${{ matrix.target }}.msi
@@ -226,7 +226,7 @@ jobs:
npm run build
- name: Notarize | Download artifacts
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: ${{ matrix.name }}
path: artifacts
@@ -238,7 +238,7 @@ jobs:
run: bash install/macos_packages/build_and_notarize.sh starship docs ${{ matrix.arch }} ${{ matrix.pkgname }}
- name: Notarize | Upload Notarized Flat Installer
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ${{ matrix.pkgname }}
path: ${{ matrix.pkgname }}
@@ -247,10 +247,11 @@ jobs:
run: tar czvf ${{ matrix.name }} starship
- name: Notarize | Upload Notarized Binary
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}
+ overwrite: true
- name: Cleanup Secrets
if: ${{ always() }}
@@ -265,7 +266,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Artifacts
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
- name: Setup | Checksums
run: for file in starship-*/starship-*; do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
@@ -336,7 +337,7 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Artifacts
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
- run: pwsh ./install/windows/choco/update.ps1
env:
STARSHIP_VERSION: ${{ needs.release_please.outputs.tag_name }}
From 34a5731a352a5351daf6fd2258d7d6bc52ceb297 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 19 Feb 2024 00:04:33 +0000
Subject: [PATCH 146/651] build(deps): update dependency
dprint/dprint-plugin-typescript to v0.89.1
---
.dprint.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.dprint.json b/.dprint.json
index 04ce1976..1dced25c 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -25,7 +25,7 @@
"target/"
],
"plugins": [
- "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.89.0/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.89.1/plugin.wasm",
"https://github.com/dprint/dprint-plugin-json/releases/download/0.19.1/plugin.wasm",
"https://github.com/dprint/dprint-plugin-markdown/releases/download/0.16.3/plugin.wasm",
"https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.0/plugin.wasm"
From 1fed469ba8d8c3e7786e3a57822edb9fa024f4b4 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 19 Feb 2024 08:02:10 +0000
Subject: [PATCH 147/651] build(deps): update rust crate semver to 1.0.22
---
Cargo.lock | 6 +++---
Cargo.toml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 8ae8b132..6f09f7a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2621,9 +2621,9 @@ dependencies = [
[[package]]
name = "semver"
-version = "1.0.21"
+version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0"
+checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca"
[[package]]
name = "semver-parser"
@@ -2868,7 +2868,7 @@ dependencies = [
"regex",
"rust-ini",
"schemars",
- "semver 1.0.21",
+ "semver 1.0.22",
"serde",
"serde_json",
"sha1",
diff --git a/Cargo.toml b/Cargo.toml
index fce392e5..6bd78b63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -69,7 +69,7 @@ rand = "0.8.5"
rayon = "1.8.1"
regex = { version = "1.10.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
-semver = "1.0.21"
+semver = "1.0.22"
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
sha1 = "0.10.6"
From 0891ec27a40421cd742a853885731aed63f412aa Mon Sep 17 00:00:00 2001
From: Gilbert Sanchez
Date: Mon, 19 Feb 2024 08:01:51 -0800
Subject: [PATCH 148/651] fix(character): also handle vi edit mode in pwsh
(#5775)
* Add missing vi for char for Shell::Pwsh
https://github.com/starship/starship/pull/5478#issuecomment-1886829331
---
src/modules/character.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/character.rs b/src/modules/character.rs
index 20695f63..232b3828 100644
--- a/src/modules/character.rs
+++ b/src/modules/character.rs
@@ -37,7 +37,7 @@ pub fn module<'a>(context: &'a Context) -> Option> {
let mode = match (&context.shell, keymap) {
(Shell::Fish, "default")
| (Shell::Zsh, "vicmd")
- | (Shell::Cmd | Shell::PowerShell, "vi") => ShellEditMode::Normal,
+ | (Shell::Cmd | Shell::PowerShell | Shell::Pwsh, "vi") => ShellEditMode::Normal,
(Shell::Fish, "visual") => ShellEditMode::Visual,
(Shell::Fish, "replace") => ShellEditMode::Replace,
(Shell::Fish, "replace_one") => ShellEditMode::ReplaceOne,
From a0408543dbfb3f0e373e1f9dcfa98e0da39b9702 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 20 Feb 2024 01:18:24 +0000
Subject: [PATCH 149/651] build(deps): update rust crate serde to 1.0.197
---
Cargo.lock | 8 ++++----
Cargo.toml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 6f09f7a2..27b9385b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2636,18 +2636,18 @@ dependencies = [
[[package]]
name = "serde"
-version = "1.0.196"
+version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32"
+checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.196"
+version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67"
+checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
dependencies = [
"proc-macro2",
"quote",
diff --git a/Cargo.toml b/Cargo.toml
index 6bd78b63..a2b4020b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ rayon = "1.8.1"
regex = { version = "1.10.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.22"
-serde = { version = "1.0.196", features = ["derive"] }
+serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.113"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.1", default-features = false }
From 505d482874d188b78f563a1169dc37c442b7af9d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 20 Feb 2024 03:20:13 +0000
Subject: [PATCH 150/651] build(deps): update rust crate serde_json to 1.0.114
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 27b9385b..65c75d6d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2667,9 +2667,9 @@ dependencies = [
[[package]]
name = "serde_json"
-version = "1.0.113"
+version = "1.0.114"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79"
+checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0"
dependencies = [
"itoa",
"ryu",
diff --git a/Cargo.toml b/Cargo.toml
index a2b4020b..875f5cb9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,7 +71,7 @@ regex = { version = "1.10.3", default-features = false, features = ["perf", "std
rust-ini = "0.20.0"
semver = "1.0.22"
serde = { version = "1.0.197", features = ["derive"] }
-serde_json = "1.0.113"
+serde_json = "1.0.114"
sha1 = "0.10.6"
shadow-rs = { version = "0.26.1", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
From c04821b96e9ddb477e87ff2ffb42a5babac5bfbc Mon Sep 17 00:00:00 2001
From: Kolen Cheung
Date: Thu, 22 Feb 2024 14:26:54 +0000
Subject: [PATCH 151/651] docs(preset): add conda config to gruvbox-rainbow
(#5761)
gruvbox-rainbow add conda
---
docs/.vuepress/public/presets/toml/gruvbox-rainbow.toml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/docs/.vuepress/public/presets/toml/gruvbox-rainbow.toml b/docs/.vuepress/public/presets/toml/gruvbox-rainbow.toml
index f9f92a6f..aee6704e 100644
--- a/docs/.vuepress/public/presets/toml/gruvbox-rainbow.toml
+++ b/docs/.vuepress/public/presets/toml/gruvbox-rainbow.toml
@@ -21,6 +21,7 @@ $haskell\
$python\
[](fg:color_blue bg:color_bg3)\
$docker_context\
+$conda\
[](fg:color_bg3 bg:color_bg1)\
$time\
[ ](fg:color_bg1)\
@@ -143,6 +144,10 @@ symbol = ""
style = "bg:color_bg3"
format = '[[ $symbol( $context) ](fg:#83a598 bg:color_bg3)]($style)'
+[conda]
+style = "bg:color_bg3"
+format = '[[ $symbol( $environment) ](fg:#83a598 bg:color_bg3)]($style)'
+
[time]
disabled = false
time_format = "%R"
From eeadf432e6688bcf79e8e2a953ea3bdc6de16b1b Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 22 Feb 2024 14:28:55 +0000
Subject: [PATCH 152/651] build(deps): update rust crate strsim to 0.11.0
---
Cargo.lock | 10 ++--------
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 65c75d6d..a54b80c5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -425,7 +425,7 @@ dependencies = [
"anstream",
"anstyle",
"clap_lex",
- "strsim 0.11.0",
+ "strsim",
"unicase",
"unicode-width",
]
@@ -2875,7 +2875,7 @@ dependencies = [
"shadow-rs",
"shell-words",
"starship-battery",
- "strsim 0.10.1",
+ "strsim",
"systemstat",
"tempfile",
"terminal_size",
@@ -2914,12 +2914,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
-[[package]]
-name = "strsim"
-version = "0.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ccbca6f34534eb78dbee83f6b2c9442fea7113f43d9e80ea320f0972ae5dc08d"
-
[[package]]
name = "strsim"
version = "0.11.0"
diff --git a/Cargo.toml b/Cargo.toml
index 875f5cb9..5a88ef9f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -77,7 +77,7 @@ shadow-rs = { version = "0.26.1", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.8.2", optional = true }
-strsim = "0.10.1"
+strsim = "0.11.0"
systemstat = "=0.2.3"
terminal_size = "0.3.0"
toml = { version = "0.8.10", features = ["preserve_order"] }
From 5163dbad8d09ec77dedc906072b73623191c8c5d Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 22 Feb 2024 18:09:17 +0000
Subject: [PATCH 153/651] build(deps): update rust crate windows to 0.53.0
---
Cargo.lock | 76 ++++++++++++++++++++++++++++++------------------------
Cargo.toml | 2 +-
2 files changed, 44 insertions(+), 34 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index a54b80c5..f917930b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -403,7 +403,7 @@ dependencies = [
"js-sys",
"num-traits",
"wasm-bindgen",
- "windows-targets 0.52.0",
+ "windows-targets 0.52.3",
]
[[package]]
@@ -2886,7 +2886,7 @@ dependencies = [
"urlencoding",
"versions",
"which",
- "windows 0.52.0",
+ "windows 0.53.0",
"winres",
"yaml-rust",
]
@@ -3491,12 +3491,12 @@ dependencies = [
[[package]]
name = "windows"
-version = "0.52.0"
+version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
+checksum = "efc5cf48f83140dcaab716eeaea345f9e93d0018fb81162753a3f76c3397b538"
dependencies = [
- "windows-core 0.52.0",
- "windows-targets 0.52.0",
+ "windows-core 0.53.0",
+ "windows-targets 0.52.3",
]
[[package]]
@@ -3510,11 +3510,21 @@ dependencies = [
[[package]]
name = "windows-core"
-version = "0.52.0"
+version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
+checksum = "9dcc5b895a6377f1ab9fa55acedab1fd5ac0db66ad1e6c7f47e28a22e446a5dd"
dependencies = [
- "windows-targets 0.52.0",
+ "windows-result",
+ "windows-targets 0.52.3",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd19df78e5168dfb0aedc343d1d1b8d422ab2db6756d2dc3fef75035402a3f64"
+dependencies = [
+ "windows-targets 0.52.3",
]
[[package]]
@@ -3532,7 +3542,7 @@ version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
dependencies = [
- "windows-targets 0.52.0",
+ "windows-targets 0.52.3",
]
[[package]]
@@ -3552,17 +3562,17 @@ dependencies = [
[[package]]
name = "windows-targets"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd"
+checksum = "d380ba1dc7187569a8a9e91ed34b8ccfc33123bbacb8c0aed2d1ad7f3ef2dc5f"
dependencies = [
- "windows_aarch64_gnullvm 0.52.0",
- "windows_aarch64_msvc 0.52.0",
- "windows_i686_gnu 0.52.0",
- "windows_i686_msvc 0.52.0",
- "windows_x86_64_gnu 0.52.0",
- "windows_x86_64_gnullvm 0.52.0",
- "windows_x86_64_msvc 0.52.0",
+ "windows_aarch64_gnullvm 0.52.3",
+ "windows_aarch64_msvc 0.52.3",
+ "windows_i686_gnu 0.52.3",
+ "windows_i686_msvc 0.52.3",
+ "windows_x86_64_gnu 0.52.3",
+ "windows_x86_64_gnullvm 0.52.3",
+ "windows_x86_64_msvc 0.52.3",
]
[[package]]
@@ -3573,9 +3583,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
name = "windows_aarch64_gnullvm"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea"
+checksum = "68e5dcfb9413f53afd9c8f86e56a7b4d86d9a2fa26090ea2dc9e40fba56c6ec6"
[[package]]
name = "windows_aarch64_msvc"
@@ -3585,9 +3595,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
name = "windows_aarch64_msvc"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef"
+checksum = "8dab469ebbc45798319e69eebf92308e541ce46760b49b18c6b3fe5e8965b30f"
[[package]]
name = "windows_i686_gnu"
@@ -3597,9 +3607,9 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
name = "windows_i686_gnu"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313"
+checksum = "2a4e9b6a7cac734a8b4138a4e1044eac3404d8326b6c0f939276560687a033fb"
[[package]]
name = "windows_i686_msvc"
@@ -3609,9 +3619,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
name = "windows_i686_msvc"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a"
+checksum = "28b0ec9c422ca95ff34a78755cfa6ad4a51371da2a5ace67500cf7ca5f232c58"
[[package]]
name = "windows_x86_64_gnu"
@@ -3621,9 +3631,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
[[package]]
name = "windows_x86_64_gnu"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd"
+checksum = "704131571ba93e89d7cd43482277d6632589b18ecf4468f591fbae0a8b101614"
[[package]]
name = "windows_x86_64_gnullvm"
@@ -3633,9 +3643,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
name = "windows_x86_64_gnullvm"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e"
+checksum = "42079295511643151e98d61c38c0acc444e52dd42ab456f7ccfd5152e8ecf21c"
[[package]]
name = "windows_x86_64_msvc"
@@ -3645,9 +3655,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "windows_x86_64_msvc"
-version = "0.52.0"
+version = "0.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
+checksum = "0770833d60a970638e989b3fa9fd2bb1aaadcf88963d1659fd7d9990196ed2d6"
[[package]]
name = "winnow"
diff --git a/Cargo.toml b/Cargo.toml
index 5a88ef9f..f5f8db84 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -104,7 +104,7 @@ features = ["preserve_order", "indexmap2"]
deelevate = "0.2.0"
[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
+version = "0.53.0"
features = [
"Win32_Foundation",
"Win32_UI_Shell",
From 3c063749076da50f39286888a3781cfdbee3eaf4 Mon Sep 17 00:00:00 2001
From: Matan Kushner
Date: Sat, 24 Feb 2024 17:49:00 +0900
Subject: [PATCH 154/651] docs(i18n): new Crowdin updates (#5682)
* New translations readme.md (Ukrainian)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Simplified)
* New translations nerd-font.md (Chinese Simplified)
* New translations tokyo-night.md (Chinese Simplified)
* New translations gruvbox-rainbow.md (Chinese Simplified)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (French)
* New translations readme.md (Spanish)
* New translations readme.md (Arabic)
* New translations readme.md (German)
* New translations readme.md (Italian)
* New translations readme.md (Japanese)
* New translations readme.md (Korean)
* New translations readme.md (Dutch)
* New translations readme.md (Norwegian)
* New translations readme.md (Polish)
* New translations readme.md (Portuguese)
* New translations readme.md (Russian)
* New translations readme.md (Turkish)
* New translations readme.md (Ukrainian)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Vietnamese)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Indonesian)
* New translations readme.md (Bengali)
* New translations readme.md (Sorani (Kurdish))
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (Arabic)
* New translations readme.md (Arabic)
* New translations readme.md (Ukrainian)
* New translations readme.md (Spanish)
* New translations readme.md (French)
* New translations readme.md (Spanish)
* New translations readme.md (Arabic)
* New translations readme.md (German)
* New translations readme.md (Italian)
* New translations readme.md (Japanese)
* New translations readme.md (Korean)
* New translations readme.md (Dutch)
* New translations readme.md (Norwegian)
* New translations readme.md (Polish)
* New translations readme.md (Portuguese)
* New translations readme.md (Russian)
* New translations readme.md (Turkish)
* New translations readme.md (Ukrainian)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Vietnamese)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Indonesian)
* New translations readme.md (Bengali)
* New translations readme.md (Sorani (Kurdish))
* New translations readme.md (Ukrainian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Russian)
* New translations readme.md (Spanish)
* New translations readme.md (French)
* New translations readme.md (Spanish)
* New translations readme.md (Arabic)
* New translations readme.md (German)
* New translations readme.md (Italian)
* New translations readme.md (Japanese)
* New translations readme.md (Korean)
* New translations readme.md (Dutch)
* New translations readme.md (Norwegian)
* New translations readme.md (Polish)
* New translations readme.md (Portuguese)
* New translations readme.md (Russian)
* New translations readme.md (Turkish)
* New translations readme.md (Ukrainian)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Vietnamese)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Indonesian)
* New translations readme.md (Bengali)
* New translations readme.md (Sorani (Kurdish))
* New translations readme.md (Spanish)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Ukrainian)
* New translations readme.md (Indonesian)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations readme.md (German)
* New translations gruvbox-rainbow.md (German)
---
docs/ar-SA/advanced-config/README.md | 24 +-
docs/ar-SA/config/README.md | 3 +-
docs/ar-SA/installing/README.md | 30 +-
docs/ar-SA/migrating-to-0.45.0/README.md | 8 +-
docs/bn-BD/advanced-config/README.md | 24 +-
docs/bn-BD/config/README.md | 3 +-
docs/ckb-IR/advanced-config/README.md | 24 +-
docs/ckb-IR/config/README.md | 3 +-
docs/de-DE/README.md | 8 +-
docs/de-DE/advanced-config/README.md | 34 +-
docs/de-DE/config/README.md | 32 +-
docs/de-DE/guide/README.md | 38 +-
docs/de-DE/presets/README.md | 4 +-
docs/de-DE/presets/gruvbox-rainbow.md | 6 +-
docs/es-ES/advanced-config/README.md | 24 +-
docs/es-ES/config/README.md | 45 +-
docs/fr-FR/advanced-config/README.md | 24 +-
docs/fr-FR/config/README.md | 3 +-
docs/id-ID/advanced-config/README.md | 24 +-
docs/id-ID/config/README.md | 3 +-
docs/id-ID/installing/README.md | 2 +-
docs/it-IT/advanced-config/README.md | 24 +-
docs/it-IT/config/README.md | 3 +-
docs/ja-JP/advanced-config/README.md | 24 +-
docs/ja-JP/config/README.md | 3 +-
docs/ko-KR/advanced-config/README.md | 24 +-
docs/ko-KR/config/README.md | 3 +-
docs/nl-NL/advanced-config/README.md | 24 +-
docs/nl-NL/config/README.md | 3 +-
docs/no-NO/advanced-config/README.md | 24 +-
docs/no-NO/config/README.md | 3 +-
docs/pl-PL/advanced-config/README.md | 24 +-
docs/pl-PL/config/README.md | 3 +-
docs/pt-BR/advanced-config/README.md | 24 +-
docs/pt-BR/config/README.md | 9 +-
docs/pt-PT/advanced-config/README.md | 24 +-
docs/pt-PT/config/README.md | 3 +-
docs/ru-RU/advanced-config/README.md | 24 +-
docs/ru-RU/config/README.md | 3 +-
docs/ru-RU/faq/README.md | 36 +-
docs/ru-RU/guide/README.md | 66 +-
docs/ru-RU/installing/README.md | 2 +-
docs/tr-TR/advanced-config/README.md | 24 +-
docs/tr-TR/config/README.md | 3 +-
docs/uk-UA/advanced-config/README.md | 24 +-
docs/uk-UA/config/README.md | 1 +
docs/uk-UA/faq/README.md | 8 +-
docs/vi-VN/advanced-config/README.md | 24 +-
docs/vi-VN/config/README.md | 3 +-
docs/zh-CN/README.md | 18 +-
docs/zh-CN/advanced-config/README.md | 28 +-
docs/zh-CN/config/README.md | 869 ++++++++++++-----------
docs/zh-CN/faq/README.md | 8 +-
docs/zh-CN/guide/README.md | 12 +-
docs/zh-CN/presets/gruvbox-rainbow.md | 2 +-
docs/zh-CN/presets/nerd-font.md | 6 +-
docs/zh-CN/presets/tokyo-night.md | 2 +-
docs/zh-TW/advanced-config/README.md | 24 +-
docs/zh-TW/config/README.md | 401 +++++------
docs/zh-TW/migrating-to-0.45.0/README.md | 140 ++--
60 files changed, 1400 insertions(+), 916 deletions(-)
diff --git a/docs/ar-SA/advanced-config/README.md b/docs/ar-SA/advanced-config/README.md
index f16f8268..e33ec300 100644
--- a/docs/ar-SA/advanced-config/README.md
+++ b/docs/ar-SA/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### مثال
diff --git a/docs/ar-SA/config/README.md b/docs/ar-SA/config/README.md
index 23325dc0..f00c2b14 100644
--- a/docs/ar-SA/config/README.md
+++ b/docs/ar-SA/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ar-SA/installing/README.md b/docs/ar-SA/installing/README.md
index 69b986a5..197cade3 100644
--- a/docs/ar-SA/installing/README.md
+++ b/docs/ar-SA/installing/README.md
@@ -1,19 +1,19 @@
-# التثبيت المتقدم
+# 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. تنبيه موجه الأوامر بإن يقوم بجعل سطر الأوامر ل 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 احتياجها ولذلك هذه بعض إرشادات التثبيت الإضافية مقدمة من مجتمع starship. إذا كانت لديك ملاحظة وقمت بحلها ولم تجد هذا الحل لها ضمن الحلول التالية، الرجاء أضفها هنا!
## [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) و اتبع الإرشادات لتثبيت البرنامج.
### التثبيت
@@ -39,7 +39,7 @@ curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir /data/data/com.term
### التثبيت
-On Funtoo Linux, starship can be installed from [core-kit](https://github.com/funtoo/core-kit/tree/1.4-release/app-shells/starship) via Portage:
+يمكن تثبيت starship في Funtoo linux باستخدام [core-kit](https://github.com/funtoo/core-kit/tree/1.4-release/app-shells/starship) via Portage:
```sh
emerge app-shells/starship
@@ -47,17 +47,17 @@ emerge app-shells/starship
## [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
+مكن كود`programs.starship` في ملف`home.nix` و أضف إلى الإعدادات الإعدادات التالية
```nix
{
@@ -78,15 +78,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
+#### بشكل تصريحي، لعدة مستخدمين
-Add `pkgs.starship` to `environment.systemPackages` in your `configuration.nix`, then run
+أضف `pkgs.starship` إلى `environment.systemPackages` في `configuration.nix`, بعد ذلك شغل
```sh
sudo nixos-rebuild switch
diff --git a/docs/ar-SA/migrating-to-0.45.0/README.md b/docs/ar-SA/migrating-to-0.45.0/README.md
index 18661c3b..62e754e0 100644
--- a/docs/ar-SA/migrating-to-0.45.0/README.md
+++ b/docs/ar-SA/migrating-to-0.45.0/README.md
@@ -1,10 +1,10 @@
-# Migrating to v0.45.0
+# الإنتقال إلى النسخة v0.45.0
-Starship v0.45.0 is a release containing breaking changes, in preparation for the big v1.0.0. We have made some major changes around how configuration is done on the prompt, to allow for a greater degree of customization.
+النسخة 0.45.0 سوف تستمر في تقديم تحديثات جذرية حتى الوصول للنسخة المستقرة 1.0.0. لقد قمنا بتغييرات رئيسية لكيفية إعداد سطر الأوامر، وذلك يسمح بطيف أكبر من قابلية التخصيص.
-This guide is intended to walk you through the breaking changes.
+هذا الدليل هو جولة خلال التغييرات الرئيسية التي قمنا بها.
-## `prompt_order` has been replaced by a root-level `format`
+## `prompt_order`تم استبداله بتنسيق root-level ``
Previously to v0.45.0, `prompt_order` would accept an array of module names in the order which they should be rendered by Starship.
diff --git a/docs/bn-BD/advanced-config/README.md b/docs/bn-BD/advanced-config/README.md
index 9dc0b4c6..2e6c8aa0 100644
--- a/docs/bn-BD/advanced-config/README.md
+++ b/docs/bn-BD/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/docs/bn-BD/config/README.md b/docs/bn-BD/config/README.md
index dccdabf2..1619411e 100644
--- a/docs/bn-BD/config/README.md
+++ b/docs/bn-BD/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ckb-IR/advanced-config/README.md b/docs/ckb-IR/advanced-config/README.md
index 9b407722..24f66b42 100644
--- a/docs/ckb-IR/advanced-config/README.md
+++ b/docs/ckb-IR/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### نموونە
diff --git a/docs/ckb-IR/config/README.md b/docs/ckb-IR/config/README.md
index 7bc81eea..8c7b62f0 100644
--- a/docs/ckb-IR/config/README.md
+++ b/docs/ckb-IR/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/de-DE/README.md b/docs/de-DE/README.md
index 032a544d..6b2e0011 100644
--- a/docs/de-DE/README.md
+++ b/docs/de-DE/README.md
@@ -45,7 +45,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
curl -sS https://starship.rs/install.sh | sh
```
- Um Starship selbst zu aktualisieren, führe das Skript oben erneut aus. Die vorhandene Version wird ersetzt, ohne das deine Konfiguration von Starship verloren geht.
+ Führe das Skript oben erneut aus, um Starship selbst zu aktualisieren. Die vorhandene Version wird ersetzt, ohne dass deine Starship-Konfiguration verloren geht.
#### Installation mithilfe eines Paket-Managers
@@ -66,7 +66,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
#### Bash
- Trage folgendes am Ende der `~/.bashrc` ein:
+ Füge dies ans Ende von `~/.bashrc`:
```sh
# ~/.bashrc
@@ -99,7 +99,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
#### Powershell
- Trage das folgende am Ende von `Microsoft.PowerShell_profile.ps1` ein. Du kannst den Speicherort dieser Datei überprüfen, indem du die `$PROFILE` Variable in PowerShell abfragst. Der Pfat lautet normalerweise `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` unter Windows und `~/.config/powershell/Microsoft.PowerShell_profile.ps1` auf -Nix.
+ Füge das Folgende ans Ende von `Microsoft.PowerShell_profile.ps1` an. Du kannst den Speicherort dieser Datei überprüfen, indem du die `$PROFILE` Variable in PowerShell abfragst. Normalerweise ist der Pfad `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` oder `~/.config/powershell/Microsoft.PowerShell_profile.ps1` auf -Nix.
```sh
Invoke-Expression (&starship init powershell)
@@ -153,7 +153,7 @@ description: Starship ist eine minimale, super schnelle, und extrem anpassbare P
:::
- Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
+ Füge folgendes zum Ende deiner Nushell env Datei hinzu (finde sie, indem du `$nu.env-path` in Nushell ausführst):
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
diff --git a/docs/de-DE/advanced-config/README.md b/docs/de-DE/advanced-config/README.md
index ff7eb281..34f09cdf 100644
--- a/docs/de-DE/advanced-config/README.md
+++ b/docs/de-DE/advanced-config/README.md
@@ -1,6 +1,6 @@
# Erweiterte Konfiguration
-Auch wenn Starship eine vielseitige Shell ist, reichen manche Konfigurationen in der `starship.toml` nicht aus, um erweiterte Einstellungen vorzunehmen. Diese Seite beschreibt einige fortgeschrittene Konfigurationen für Starship.
+Auch wenn Starship eine vielseitige Shell ist, reichen manche Konfigurationen in der `starship.toml` nicht aus, um manche Sachen zu erreichen. Diese Seite beschreibt einige fortgeschrittene Konfigurationen für Starship.
::: warning
@@ -10,7 +10,7 @@ Die hier beschriebenen Konfigurationen werden sich mit kommenden Updates von Sta
## TransientPrompt in PowerShell
-It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `Enable-TransientPrompt` in the shell session. To make it permanent, put this statement in your `$PROFILE`. Transience can be disabled on-the-fly with `Disable-TransientPrompt`.
+Es ist möglich, die zuvor geprintete Prompt mit einem benutzerdefinierten String zu ersetzen. Das ist in Fällen nützlich, in denen nicht immer die ganze Information der Prompt gebraucht wird. Führe `Enable-TransientPrompt` in deiner Shell-Session aus, um dieses Verhalten zu aktivieren. Füge das Statement in dein `$PROFILE` ein, um diese Funktion dauerhaft zu aktivieren. Transience can be disabled on-the-fly with `Disable-TransientPrompt`.
By default, the left side of input gets replaced with `>`. To customize this, define a new function called `Invoke-Starship-TransientFunction`. For example, to display Starship's `character` module here, you would do
@@ -26,7 +26,7 @@ Enable-TransientPrompt
## TransientPrompt and TransientRightPrompt in Cmd
-Clink allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, run `clink set prompt.transient ` where \ can be one of:
+Clink allows you to replace the previous-printed prompt with custom strings. Das ist in Fällen nützlich, in denen nicht immer die ganze Information der Prompt gebraucht wird. To enable this, run `clink set prompt.transient ` where \ can be one of:
- `always`: always replace the previous prompt
- `same_dir`: replace the previous prompt only if the working directory is same
@@ -56,7 +56,7 @@ load(io.popen('starship init cmd'):read("*a"))()
## TransientPrompt and TransientRightPrompt in Fish
-It is possible to replace the previous-printed prompt with a custom string. This is useful in cases where all the prompt information is not always needed. To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`.
+Es ist möglich, die zuvor geprintete Prompt mit einem benutzerdefinierten String zu ersetzen. Das ist in Fällen nützlich, in denen nicht immer die ganze Information der Prompt gebraucht wird. To enable this, run `enable_transience` in the shell session. To make it permanent, put this statement in your `~/.config/fish/config.fish`. Transience can be disabled on-the-fly with `disable_transience`.
Note that in case of Fish, the transient prompt is only printed if the commandline is non-empty, and syntactically correct.
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -129,7 +149,7 @@ eval $(starship init bash)
set +o functrace
```
-## Custom pre-prompt and pre-execution Commands in PowerShell
+## Benutzerdefinierte Pre-Prompt- und Pre-Execution-Befehle in PowerShell
PowerShell does not have a formal preexec/precmd framework like most other shells. Because of this, it is difficult to provide fully customizable hooks in `powershell`. Starship bietet daher die begrenzte Möglichkeit, eigene Funktionen in das prompt rendering Verfahren einzufügen:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Beispiel
diff --git a/docs/de-DE/config/README.md b/docs/de-DE/config/README.md
index 96b5ba07..32d6f4d9 100644
--- a/docs/de-DE/config/README.md
+++ b/docs/de-DE/config/README.md
@@ -1,6 +1,6 @@
# Konfiguration
-Um mit der Konfiguration von Starship zu beginnen, muss eine leere Datei in diesem Pfad erstellt werden: `~/.config/starship.toml`.
+Um mit der Konfiguration von Starship zu beginnen, musst du die folgende Datei erstellen: `~/.config/starship.toml`.
```sh
mkdir -p ~/.config && touch ~/.config/starship.toml
@@ -9,24 +9,25 @@ mkdir -p ~/.config && touch ~/.config/starship.toml
Die gesamte Konfiguration von Starship erfolgt in dieser [TOML](https://github.com/toml-lang/toml)-Datei:
```toml
-# Get editor completions based on the config schema
+
+# Editor Vervollständigungen basierend auf dem Konfigurations-Schema erhalten
"$schema" = 'https://starship.rs/config-schema.json'
-# Inserts a blank line between shell prompts
+# Fügt eine Leerzeile zwischen den Eingabeaufforderungen ein
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'
+# Ersetzt das '❯' Zeichen in der Prompt mit '➜'
+[character] # Der name des Moduls das wir ändern ist 'character'
+success_symbol = '[➜](bold green)' # Der 'success_symbol' Teil wird auf '➜' mit der farbe 'bold green' gesetzt
-# Disable the package module, hiding it from the prompt completely
+# Deaktiviert das "package" Modul, damit es in der Eingabeaufforderung nicht mehr zu sehen ist
[package]
disabled = true
```
-### Config File Location
+### Ort der Konfigurationsdatei
-Die voreingestellte Konfigurations-Datei kann mit der `STARSHIP_CONFIG` Umgebungsvariable verändert werden. Hier z. Bsp. für die BASH shell, hinzuzufügen zur ~/. bashrc:
+Du kannst die voreingestellte Konfigurations-Datei mit der `STARSHIP_CONFIG` Umgebungsvariable verändern:
```sh
export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
@@ -38,7 +39,7 @@ export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
$ENV:STARSHIP_CONFIG = "$HOME\example\non\default\path\starship.toml"
```
-Or for Cmd (Windows) would be adding this line to your `starship.lua`:
+Oder für Cmd (Windows) diese Zeile (wieder zur `starship.lua`):
```lua
os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\starship.toml')
@@ -46,7 +47,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star
### Protokollierung
-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 an instance of your terminal. Das kann jedoch durch die Nutzung der `STARSHIP_CACHE` Umgebungsvariable verändert werden:
+Standardmäßig protokolliert Starship Warnungen und Fehler in einer Datei names `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, wobei der session key zu der Instanz deines Terminals korrespondiert. Das kann jedoch durch die Nutzung der `STARSHIP_CACHE` Umgebungsvariable verändert werden:
```sh
export STARSHIP_CACHE=~/.starship/cache
@@ -58,7 +59,7 @@ export STARSHIP_CACHE=~/.starship/cache
$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
```
-Or for Cmd (Windows) would be adding this line to your `starship.lua`:
+Oder für Cmd (Windows) diese Zeile (wieder zur `starship.lua`):
```lua
os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\AppData\\Local\\Temp')
@@ -74,9 +75,9 @@ Die meisten Module haben einen Präfix der standardmäßigen terminal-Farbe (z.B
### Strings
-In TOML syntax, [text values](https://toml.io/en/v1.0.0#string) are declared with `'`, `"`, `'''`, or `"""`.
+In der TOML Syntax werden [Zeichenketten](https://toml.io/en/v1.0.0#string) mit `'`, `"`, `'''`, oder `"""` eingesetzt.
-The following Starship syntax symbols have special usage in a format string and must be escaped to display as that character: `$ [ ] ( )`.
+Die folgende Starship Syntax Symbole haben eine spezielle Rolle in einem String, und müssen demnach als Spezialzeichen markiert werden, um als normales Zeichen angezeigt zu werden: `$ [ ] ( )`.
| Symbol | Type | Notes |
| ------ | ------------------------- | ------------------------------------------------------ |
@@ -543,7 +544,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1166,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/de-DE/guide/README.md b/docs/de-DE/guide/README.md
index c2744e21..7c0ceaec 100644
--- a/docs/de-DE/guide/README.md
+++ b/docs/de-DE/guide/README.md
@@ -35,7 +35,7 @@
@@ -108,7 +108,7 @@
>
-### Schritt 2. Set up your shell to use Starship
+### Schritt 2. Richte deine Shell für die Nutzung von Starship ein
-Konfigurieren deine Shell um Starship zu initialisieren. Wähle dafür deine Shell aus der Liste aus:
+Konfiguriere deine Shell, um Starship automatisch zu starten. Wähle dafür deine Shell aus der Liste aus:
Bash
-Trage folgendes am Ende der `~/.bashrc` ein:
+Füge dies ans Ende von `~/.bashrc`:
```sh
eval "$(starship init bash)"
@@ -292,7 +292,7 @@ eval "$(starship init bash)"
⌘ Cmd
-Du musst [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) mit Cmd verwenden. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
+Du musst [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) mit Cmd verwenden. Erstelle eine Datei in diesem Pfad `%LocalAppData%\clink\starship.lua` mit dem folgenden Inhalt:
```lua
load(io.popen('starship init cmd'):read("*a"))()
@@ -338,27 +338,27 @@ eval $(starship init ion)
Nushell
-Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
+Füge folgendes zum Ende deiner Nushell env Datei hinzu (finde sie, indem du `$nu.env-path` in Nushell ausführst):
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
-Und füge folgendes am Ende deiner Nushell-Konfiguration hinzu (du findest diese, indem du folgenden Befehl in Nushell ausführst `$nu.config-path`):
+Und füge Folgendes am Ende deiner Nushell-Konfiguration hinzu (finde sie, indem du folgenden Befehl in Nushell ausführst `$nu.config-path`):
```sh
use ~/.cache/starship/init.nu
```
-Note: Only Nushell v0.78+ is supported
+Beachte: Nushell wird erst ab v0.78+ unterstützt
PowerShell
-Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`):
+Füge Folgendes am Ende deiner PowerShell-Konfiguration hinzu (finde sie, indem du folgenden Befehl ausführst `$PROFILE`):
```powershell
Invoke-Expression (&starship init powershell)
@@ -369,7 +369,7 @@ Invoke-Expression (&starship init powershell)
Tcsh
-Trage folgendes am Ende von `~/.bashrc` ein:
+Füge Folgendes am Ende von `~/.tcshrc` ein:
```sh
eval `starship init tcsh`
@@ -421,17 +421,17 @@ Falls du an Starship mitwirken willst, wirf bitte einen Blick auf den [Leitfaden
Schaut euch bitte auch die Projekte an, die die Entstehung von Starship inspiriert haben. 🙏
-- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – A ZSH prompt for astronauts.
+- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – Eine ZSH Prompt für Astronauten.
-- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript.
+- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-Shell robbyrussell Thema geschrieben in JavaScript.
-- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
+- **[reujab/silber](https://github.com/reujab/silver)** – Eine cross-shell anpassbare Powerline-Prompt mit Icons.
-## ❤️ Sponsors
+## ❤️ Sponsoren
-Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+Unterstütze dieses Projekt, indem du [ein Sponsor wirst](https://github.com/sponsors/starship). Dein Name und Logo wird hier mit einem Link zu deiner Website erscheinen.
-**Supporter Tier**
+**Unterstützer**
- [Appwrite](https://appwrite.io/)
diff --git a/docs/de-DE/presets/README.md b/docs/de-DE/presets/README.md
index 3d975aee..ca52d7e8 100644
--- a/docs/de-DE/presets/README.md
+++ b/docs/de-DE/presets/README.md
@@ -66,6 +66,6 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
## [Gruvbox Rainbow](./gruvbox-rainbow.md)
-This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+Diese Voreinstellung ist stark inspiriert von [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
-[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+[![Screenshot von Gruvbox Regenbogen](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
diff --git a/docs/de-DE/presets/gruvbox-rainbow.md b/docs/de-DE/presets/gruvbox-rainbow.md
index 2d0ffec6..3bae1429 100644
--- a/docs/de-DE/presets/gruvbox-rainbow.md
+++ b/docs/de-DE/presets/gruvbox-rainbow.md
@@ -1,10 +1,10 @@
[Zurück zu den Voreinstellungen](./README.md#gruvbox-rainbow)
-# Gruvbox Rainbow Preset
+# Gruvbox Regenbogen
-This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
+Diese Voreinstellung ist stark inspiriert von [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
-![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png)
+![Screenshot von Gruvbox Regenbogen](/presets/img/gruvbox-rainbow.png)
### Voraussetzungen
diff --git a/docs/es-ES/advanced-config/README.md b/docs/es-ES/advanced-config/README.md
index 5fbe8ab3..3944c29f 100644
--- a/docs/es-ES/advanced-config/README.md
+++ b/docs/es-ES/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. Esto es útil en los casos en que la información del prompt no es siempre necesaria. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. Por ejemplo, para mostrar la hora en la que se inició el último comando aquí, lo harías
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Comandos pre-prompt y pre-ejecución personalizados en Cmd
Clink proporciona una API extremadamente flexible para ejecutar comandos pre-prompt y pre-ejecución en la shell de Cmd. Es bastante sencillo de usar con Starship. Haz los siguientes cambios a tu archivo `starship.lua` según tus requisitos:
@@ -205,7 +225,9 @@ Algunos intérpretes de comandos soportan un prompt derecho que se renderiza en
Nota: El prompt derecho es una sola línea siguiendo la ubicación de entrada. Para alinear los módulos arriba de la línea de entrada en un prompt multi-línea, vea el [módulo `fill`](/config/#fill).
-`right_format` está actualmente soportado para los siguientes intérpretes de comandos: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Ejemplo
diff --git a/docs/es-ES/config/README.md b/docs/es-ES/config/README.md
index 5439fec7..1f1f7365 100644
--- a/docs/es-ES/config/README.md
+++ b/docs/es-ES/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1155,19 +1155,20 @@ The `direnv` module shows the status of the current rc file if one is present. T
### Opciones
-| Opción | Predeterminado | Descripción |
-| ------------------- | -------------------------------------- | ----------------------------------------------------- |
-| `format` | `'[$symbol$loaded/$allowed]($style) '` | El formato del módulo. |
-| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
-| `style` | `'bold orange'` | El estilo del módulo. |
-| `disabled` | `true` | Disables the `direnv` module. |
-| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
-| `detect_files` | `['.envrc']` | Qué nombres de archivo deberían activar este módulo. |
-| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
-| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
-| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
-| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
-| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
+| Opción | Predeterminado | Descripción |
+| ------------------- | -------------------------------------- | ----------------------------------------------------------------- |
+| `format` | `'[$symbol$loaded/$allowed]($style) '` | El formato del módulo. |
+| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
+| `style` | `'bold orange'` | El estilo del módulo. |
+| `disabled` | `true` | Disables the `direnv` module. |
+| `detect_extensions` | `[]` | Qué extensiones deberían activar este módulo. |
+| `detect_files` | `['.envrc']` | Qué nombres de archivo deberían activar este módulo. |
+| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
+| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'no permitido'` | El mensaje que se muestra cuando un archivo rc no está permitido. |
+| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
+| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
+| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
### Variables
@@ -3141,14 +3142,14 @@ El módulo `package` se muestra cuando el directorio actual es el repositorio de
### Opciones
-| Opción | Predeterminado | Descripción |
-| ---------------- | --------------------------------- | --------------------------------------------------------------------------------------- |
-| `format` | `'is [$symbol$version]($style) '` | El formato del módulo. |
-| `symbol` | `'📦 '` | El símbolo usado antes de mostrar la versión del paquete. |
-| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
-| `style` | `'bold 208'` | El estilo del módulo. |
-| `'📦 '` | `false` | Activar la visualización de la versión para los paquetes marcados como privados. |
-| `disabled` | `false` | Desactiva el módulo `package`. |
+| Opción | Predeterminado | Descripción |
+| ----------------- | --------------------------------- | --------------------------------------------------------------------------------------- |
+| `format` | `'is [$symbol$version]($style) '` | El formato del módulo. |
+| `symbol` | `'📦 '` | El símbolo usado antes de mostrar la versión del paquete. |
+| `version_format` | `'v${raw}'` | El formato de versión. Las variables disponibles son `raw`, `major`, `minor`, & `patch` |
+| `style` | `'bold 208'` | El estilo del módulo. |
+| `display_private` | `false` | Activar la visualización de la versión para los paquetes marcados como privados. |
+| `disabled` | `false` | Desactiva el módulo `package`. |
### Variables
diff --git a/docs/fr-FR/advanced-config/README.md b/docs/fr-FR/advanced-config/README.md
index 28cfcfd9..20125095 100644
--- a/docs/fr-FR/advanced-config/README.md
+++ b/docs/fr-FR/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. Par exemple, pour afficher l'heure à laquelle la dernière commande a été lancée ici, vous feriez
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Commandes pré-invite et pré-exécution personnalisées dans Cmd
Clink fournit des APIs extrêmement flexibles pour exécuter des commandes pre-invite et pre-exec dans Cmd. Il est assez simple à utiliser avec Starship. Effectuez les modifications suivantes dans votre fichier `starship.lua`, en fonction de vos besoins:
@@ -205,7 +225,9 @@ Certains shells peuvent gérer une invite de commande à droite, sur la même li
Note: l’invite à droite est une seule ligne, sur la même ligne que l’entrée. Pour aligner à droite les modules au-dessus de la ligne d’entrée d’une invite multiligne, voir le [module `fill`](/config/#fill).
-`right_format` est actuellement supporté pour les shells suivants : elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Exemple
diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md
index b31a0ed1..5773f2c5 100644
--- a/docs/fr-FR/config/README.md
+++ b/docs/fr-FR/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Les fichiers qui activent ce module. |
| `detect_folders` | `[]` | Les dossiers qui activent ce module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/id-ID/advanced-config/README.md b/docs/id-ID/advanced-config/README.md
index 0bafc8d5..098b5669 100644
--- a/docs/id-ID/advanced-config/README.md
+++ b/docs/id-ID/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Kustomisasi Perintah pre-prompt dan pre-execution Pada Cmd
Clink menyediakan APIs yang sangat fleksibel untuk menjalankan perintah pre-prompt dan pre-exec di Cmd shell. Caranya sangat mudah dengan Starship. Ubahlah file `starship.lua` sesuai kebutuhanmu:
@@ -205,7 +225,9 @@ Sebagian shells mendukung right prompt yang mana dirender di baris yang sama ses
Catatan: Right propmt merupakan sebuah baris yang mengikuti lokasi baris inputan. Untuk membuat modul rata ke kanan di atas baris masukan di dalam multi-line prompt, lihat [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Contoh
diff --git a/docs/id-ID/config/README.md b/docs/id-ID/config/README.md
index 7fa086e0..c0859def 100644
--- a/docs/id-ID/config/README.md
+++ b/docs/id-ID/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | filenames mana yang sebaiknya memicu modul ini. |
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/id-ID/installing/README.md b/docs/id-ID/installing/README.md
index 2b8b8499..9cd40e13 100644
--- a/docs/id-ID/installing/README.md
+++ b/docs/id-ID/installing/README.md
@@ -1,6 +1,6 @@
# Advanced Installation
-To install starship, you need to do two things:
+Untuk memasang starship, ada dua hal yang perlu anda lakukan:
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
diff --git a/docs/it-IT/advanced-config/README.md b/docs/it-IT/advanced-config/README.md
index 223ec1d8..b920d0d1 100644
--- a/docs/it-IT/advanced-config/README.md
+++ b/docs/it-IT/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Esempio
diff --git a/docs/it-IT/config/README.md b/docs/it-IT/config/README.md
index 420fedd5..e9ba9676 100644
--- a/docs/it-IT/config/README.md
+++ b/docs/it-IT/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Quali nomi di file dovrebbero attivare questo modulo. |
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ja-JP/advanced-config/README.md b/docs/ja-JP/advanced-config/README.md
index 77256793..f1d7c59d 100644
--- a/docs/ja-JP/advanced-config/README.md
+++ b/docs/ja-JP/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. 例えば、直前のコマンドを実行した時刻を表示するには次のようにします。
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Cmdのカスタムの事前プロンプトおよび事前実行コマンド
Clinkはプロンプト表示前と実行前にCmd shellコマンドを実行するための非常に柔軟なAPIを提供します。 It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Invoke-Expression (&starship init powershell)
注意: 右プロンプトは入力の場所に続く単一の行です。 To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### 設定例
diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md
index 915a02ed..708400f8 100644
--- a/docs/ja-JP/config/README.md
+++ b/docs/ja-JP/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | どのファイル名がこのモジュールをアクティブにするか |
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ko-KR/advanced-config/README.md b/docs/ko-KR/advanced-config/README.md
index b18e3a05..c95445b8 100644
--- a/docs/ko-KR/advanced-config/README.md
+++ b/docs/ko-KR/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Invoke-Expression (&starship init powershell)
알림: 오른쪽 프롬프트는 입력 위치에 따라 한 줄로 표시됩니다. 여러 줄 프롬프트에서 입력 선 위의 모듈을 오른쪽 정렬하려면, [`fill` 모듈](/config/#fill)을 참고하세요.
-`right_format`은 현재 elvish, fish, zsh, xonsh, cmd, nushell에서 지원됩니다.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### 예시
diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md
index 4875c0e8..a79069c1 100644
--- a/docs/ko-KR/config/README.md
+++ b/docs/ko-KR/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/nl-NL/advanced-config/README.md b/docs/nl-NL/advanced-config/README.md
index 9dc0b4c6..2e6c8aa0 100644
--- a/docs/nl-NL/advanced-config/README.md
+++ b/docs/nl-NL/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/docs/nl-NL/config/README.md b/docs/nl-NL/config/README.md
index dccdabf2..1619411e 100644
--- a/docs/nl-NL/config/README.md
+++ b/docs/nl-NL/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/no-NO/advanced-config/README.md b/docs/no-NO/advanced-config/README.md
index 9dc0b4c6..2e6c8aa0 100644
--- a/docs/no-NO/advanced-config/README.md
+++ b/docs/no-NO/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/docs/no-NO/config/README.md b/docs/no-NO/config/README.md
index dccdabf2..1619411e 100644
--- a/docs/no-NO/config/README.md
+++ b/docs/no-NO/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/pl-PL/advanced-config/README.md b/docs/pl-PL/advanced-config/README.md
index dd5351f4..c32224cf 100644
--- a/docs/pl-PL/advanced-config/README.md
+++ b/docs/pl-PL/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/docs/pl-PL/config/README.md b/docs/pl-PL/config/README.md
index a39cc9bb..5d0824c4 100644
--- a/docs/pl-PL/config/README.md
+++ b/docs/pl-PL/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/pt-BR/advanced-config/README.md b/docs/pt-BR/advanced-config/README.md
index 25e75a32..a8b75558 100644
--- a/docs/pt-BR/advanced-config/README.md
+++ b/docs/pt-BR/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt e TransientRightPrompt em Bash
+
+O framework [Ble.sh](https://github.com/akinomyoga/ble.sh) permite substituir o prompt anteriormente impresso por strings personalizadas. Isso é útil em casos onde nem sempre todas as informações do prompt são necessárias. Para habilitar isso, coloque em `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+O \ aqui é uma lista separada por dois pontos de `always`, `same-dir` e `trim`. Quando `prompt_ps1_final` está vazio e esta opção tem um valor não-vazio, o prompt especificado pelo `PS1` é apagado ao sair da linha de comando atual. Se o valor contém um campo `trim`, apenas a última linha de multilinha `PS1` é preservada e as outras linhas são apagadas. Caso contrário, a linha de comando será redesenhada como se `PS1=` fosse especificado. Quando um campo `same-dir` está contido no valor e o diretório de trabalho atual difere do diretório final da linha de comando anterior, esta opção `prompt_ps1_transient` é ignorada.
+
+Faça as seguintes alterações no seu `~/.bashrc` para personalizar o que é exibido à esquerda e à direita:
+
+- Para personalizar o que o lado esquerdo do valor de entrada é substituído, configure a opção `prompt_ps1_final` Ble.sh. Por exemplo, para exibir o caractere da `Starship` aqui, você faria
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- Para personalizar o que o lado direito de entrada é substituído, configure a opção `prompt_rps1_final` Ble.sh. Por exemplo, para exibir o momento em que o último comando foi iniciado, você faria
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Comandos personalizados de pré-prompt e pré-execução no Cmd
O Clink fornece APIs extremamente flexíveis para executar comandos pré-prompt e pré-execução em Cmd shell. É bastante simples de usar com o Starship. Faça as seguintes alterações no seu arquivo `starship.lua` conforme suas necessidades:
@@ -205,7 +225,9 @@ Alguns shells suportam um prompt direito que é renderizado na mesma linha que a
Nota: O prompt direito é uma única linha após o local de entrada. Para alinhar módulos à direita acima da linha de entrada em um prompt de várias linhas, consulte o [módulo `fill`](/config/#fill).
-`right_format` é atualmente suportado pelos seguintes shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Exemplo
diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md
index c27f521a..5c13cf0f 100644
--- a/docs/pt-BR/config/README.md
+++ b/docs/pt-BR/config/README.md
@@ -536,16 +536,16 @@ A opção `display` é um array da seguinte tabela.
#### Exemplo
```toml
-[[battery.display]] # ''bold red' e discharging_symbol é exibido quando a capacidade está entre 0% e 10%
+[[battery.display]] # 'bold red' style and discharging_symbol when capacity is between 0% and 10%
threshold = 10
style = 'bold red'
-[[battery.display]] # 'yellow' style e o símbolo 💦 é exibido quando a capacidade está entre 10% e 30%
+[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
-# quando a capacidade estiver acima de 30%, o indicador de bateria não será exibido
+# when capacity is over 30%, the battery indicator will not be displayed
```
## Buf
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/pt-PT/advanced-config/README.md b/docs/pt-PT/advanced-config/README.md
index 9dc0b4c6..2e6c8aa0 100644
--- a/docs/pt-PT/advanced-config/README.md
+++ b/docs/pt-PT/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md
index dccdabf2..1619411e 100644
--- a/docs/pt-PT/config/README.md
+++ b/docs/pt-PT/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ru-RU/advanced-config/README.md b/docs/ru-RU/advanced-config/README.md
index 005fff03..33c25f81 100644
--- a/docs/ru-RU/advanced-config/README.md
+++ b/docs/ru-RU/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Пример
diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md
index 5aeb02e1..196a4989 100644
--- a/docs/ru-RU/config/README.md
+++ b/docs/ru-RU/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/ru-RU/faq/README.md b/docs/ru-RU/faq/README.md
index 6fe2f96c..d030c244 100644
--- a/docs/ru-RU/faq/README.md
+++ b/docs/ru-RU/faq/README.md
@@ -10,9 +10,9 @@
- **Конфигурация**: [matchai's Dotfiles](https://github.com/matchai/dotfiles/blob/b6c6a701d0af8d145a8370288c00bb9f0648b5c2/.config/fish/config.fish)
- **Подсказка**: [Starship](https://starship.rs/)
-## How do I get command completion as shown in the demo GIF?
+## Как мне получить автодополнение команд, как показано на демонстрационной GIF?
-Completion support, or autocomplete, is provided by your shell of choice. In the case of the demo, the demo was done with [Fish Shell](https://fishshell.com/), which provides completions by default. If you use Z Shell (zsh), I'd suggest taking a look at [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
+Автодополнение команд обеспечивается выбранной вами оболочкой. В данном случае, демо было выполнено с [Fish Shell](https://fishshell.com/), которая обеспечивает дополнения по умолчанию. Если вы используете Z Shell (zsh), я бы посоветовал взглянуть на [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions).
## Do top level `format` and `.disabled` do the same thing?
@@ -21,7 +21,7 @@ Completion support, or autocomplete, is provided by your shell of choice. In the
- Disabling modules is more explicit than omitting them from the top level `format`
- Новосозданные модули будут добавлены в подсказку по мере обновления Starship
-## The docs say Starship is cross-shell. Why isn't my preferred shell supported?
+## Доки говорят, что Starship поддерживается на всех оболочках *(cross-shell)*. Почему моя любимая оболочка не поддерживается?
Starship устроен так, что есть возможность добавить поддержку практически любой оболочки. Бинарный файл Starship не зависит от оболочки и не имеет состояния, так что если ваша оболочка поддерживает расширение подстрок и настройку подсказки, то Starship может быть использован.
@@ -56,15 +56,15 @@ starship prompt --help
curl -sS https://starship.rs/install.sh | sh -s -- --platform unknown-linux-musl
```
-## Why do I see `Executing command "..." timed out.` warnings?
+## Почему я вижу предупреждение `Executing command "..." timed out.`?
-Starship executes different commands to get information to display in the prompt, for example the version of a program or the current git status. To make sure starship doesn't hang while trying to execute these commands we set a time limit, if a command takes longer than this limit starship will stop the execution of the command and output the above warning, this is expected behaviour. This time limit is configurable using the [`command_timeout`key](/config/#prompt) so if you want you can increase the time limit. You can also follow the debugging steps below to see which command is being slow and see if you can optimise it. Finally you can set the `STARSHIP_LOG` env var to `error` to hide these warnings.
+Starship выполняет различные команды, чтобы получить информацию, отображаемую в промпте, например версию программы или текущий git status. Чтобы быть уверенными, что starship не зависнет во время выполнения этих команд, мы поставили лимит времени, и если команда выполняется дольше лимита, starship прекратит её выполнение и выведет это предупреждение, это нормальное поведение. Временной лимит можно изменить с помощью опции [`command_timeout`key](/config/#prompt), поэтому при желании вы можете увеличить это время. Вы так же можете следовать шагам для отладки ниже, чтобы понять, какая команда влияет на время и ускорить промпт. Наконец, вы можете изменить переменную окружения `STARSHIP_LOG` `error`, чтобы спрятать это предупреждение.
-## I see symbols I don't understand or expect, what do they mean?
+## Я вижу символы, которые я не понимаю или не ожидаю, что они означают?
-If you see symbols that you don't recognise you can use `starship explain` to explain the currently showing modules.
+Если вы видите символы, которые вы не узнаете, вы можете использовать команду `starship explain`, чтобы разъяснить показываемые модули.
-## Starship is doing something unexpected, how can I debug it?
+## Starship делает что-то неожиданное, как я могу отладить его?
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
@@ -86,24 +86,24 @@ Finally if you find a bug you can use the `bug-report` command to create a GitHu
starship bug-report
```
-## 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/).
+- Вы используете [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).
+Первая строка должна создать [эмоджи змеи](https://emojipedia.org/snake/), а вторая - символ ветки [(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 report!](https://github.com/starship/starship/issues/new/choose)
## Как удалить Starship?
@@ -121,10 +121,10 @@ If Starship was installed using the install script, the following command will d
sh -c 'rm "$(command -v 'starship')"'
```
-## How do I install Starship without `sudo`?
+## Как Starship без `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+Скрипт установки (`https://starship.rs/install. h`) использует `sudo` только если директория установки недоступна для записи текущим пользователем. Директория установки по умолчанию это значение переменной окружения `$BIN_DIR` или `/usr/local/bin`, если `$BIN_DIR` не установлен. Если вместо этого выбрать директорию установки, которая доступна для записи пользователем, вы можете установить starship без `sudo`. Например, в `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` флаг `-b` установочного скрипта используется, чтобы задать директорию установки на `~/.local/bin`.
-For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+Для неинтерактивной установки Starship не забудьте добавить опцию `-y` чтобы пропустить подтверждение. Проверьте исходник установочного скрипта, чтобы получить список всех поддерживаемых параметров установки.
-When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
+При через пакетный менеджер, смотрите документацию для вашего пакетного менеджера об установке с `sudo` и без.
diff --git a/docs/ru-RU/guide/README.md b/docs/ru-RU/guide/README.md
index 5795e781..66a2794e 100644
--- a/docs/ru-RU/guide/README.md
+++ b/docs/ru-RU/guide/README.md
@@ -180,18 +180,18 @@
### Обязательные требования
-- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (for example, try the [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)).
+- Установленный и включенный в вашем терминале [Nerd Font](https://www.nerdfonts.com/) (например, попробуйте [FiraCode Nerd Font](https://www.nerdfonts.com/font-downloads)).
### Шаг 1. Установите Starship
-Select your operating system from the list below to view installation instructions:
+Выберите вашу операционную систему из списка ниже для просмотра инструкций по установке:
Android
-Install Starship using any of the following package managers:
+Установите Starship с помощью любого из следующих менеджеров пакетов:
-| Repository | Instructions |
+| Репозиторий | Команда |
| --------------------------------------------------------------------------------- | ---------------------- |
| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` |
@@ -200,32 +200,32 @@ Install Starship using any of the following package managers:
BSD
-Install Starship using any of the following package managers:
+Установите Starship с помощью любого из следующих менеджеров пакетов:
-| Distribution | Repository | Instructions |
-| ------------ | -------------------------------------------------------- | --------------------------------- |
-| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
-| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
-| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
+| Дистрибутив | Репозиторий | Команда |
+| ----------- | -------------------------------------------------------- | --------------------------------- |
+| **_Любой_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
+| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` |
+| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` |
Linux
-Install the latest version for your system:
+Установите последнюю версию для вашей системы:
```sh
curl -sS https://starship.rs/install.sh | sh
```
-Alternatively, install Starship using any of the following package managers:
+Или же установите Starship с помощью любого из следующих пакетных менеджеров:
-| Distribution | Repository | Instructions |
+| Дистрибутив | Репозиторий | Команда |
| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
-| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
-| _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
-| _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
+| **_Любой_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
+| _Любой_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
+| _Любой_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
| Arch Linux | [Arch Linux Extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` `dnf install starship` |
@@ -240,15 +240,15 @@ Alternatively, install Starship using any of the following package managers:
macOS
-Install the latest version for your system:
+Установите последнюю версию для вашей системы:
```sh
curl -sS https://starship.rs/install.sh | sh
```
-Alternatively, install Starship using any of the following package managers:
+Или же установите Starship с помощью любого из следующих пакетных менеджеров:
-| Repository | Instructions |
+| Репозиторий | Команда |
| -------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
@@ -262,9 +262,9 @@ Alternatively, install Starship using any of the following package managers:
Install the latest version for your system with the MSI-installers from the [releases section](https://github.com/starship/starship/releases/latest).
-Install Starship using any of the following package managers:
+Установите Starship с помощью любого из следующих менеджеров пакетов:
-| Repository | Instructions |
+| Репозиторий | Команда |
| -------------------------------------------------------------------------------------------- | --------------------------------------- |
| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` |
| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` |
@@ -274,9 +274,9 @@ Install Starship using any of the following package managers:
-### Шаг 2. Set up your shell to use Starship
+### Шаг 2. Настройте оболочку для использования Starship
-Configure your shell to initialize starship. Select yours from the list below:
+Настройте оболочку для инициализации starship. Выберете вашу оболочку из списка:
Bash
@@ -292,7 +292,7 @@ eval "$(starship init bash)"
Cmd
-You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents:
+Вам нужно использовать [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) с Cmd. Создайте файл по этому пути `%LocalAppData%\clink\starship.lua` со следующим содержанием:
```lua
load(io.popen('starship init cmd'):read("*a"))()
@@ -309,7 +309,7 @@ load(io.popen('starship init cmd'):read("*a"))()
eval (starship init elvish)
```
-Note: Only Elvish v0.18+ is supported
+Примечание: поддерживается только Elvish v0.18+
@@ -399,15 +399,15 @@ eval "$(starship init zsh)"
-### Шаг 3. Configure Starship
+### Шаг 3. Настройте Starship
-Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy!
+Запустите новую сессию оболочки, и вы увидите ваш новый прекрасный промпт. Если вы довольны с настройками по умолчанию, наслаждайтесь!
-If you're looking to further customize Starship:
+Если вы хотите детальнее настроить Starship:
-- **[Configuration](https://starship.rs/config/)** – learn how to configure Starship to tweak your prompt to your liking
+- **[Конфигурация](https://starship.rs/config/)** – узнайте, как настраивать Starship, чтобы подкорректировать промпт на ваш вкус
-- **[Presets](https://starship.rs/presets/)** – get inspired by the pre-built configuration of others
+- **[Пресеты](https://starship.rs/presets/)** – вдохновиться готовой конфигурацией других
## 🤝 Помощь
@@ -421,15 +421,15 @@ If you're looking to further customize Starship:
Пожалуйста, ознакомьтесь с этими предыдущими работами, которые помогли вдохновить создание Starship. 🙏
-- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – A ZSH prompt for astronauts.
+- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – ZSH промпт для космонавтов.
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript.
- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons.
-## ❤️ Sponsors
+## ❤️ Спонсоры
-Support this project by [becoming a sponsor](https://github.com/sponsors/starship). Your name or logo will show up here with a link to your website.
+Поддержите этот проект, [став спонсором](https://github.com/sponsors/starship). Ваше имя или логотип будут отображаться здесь со ссылкой на ваш сайт.
**Supporter Tier**
diff --git a/docs/ru-RU/installing/README.md b/docs/ru-RU/installing/README.md
index 25615b14..3c5aeaa5 100644
--- a/docs/ru-RU/installing/README.md
+++ b/docs/ru-RU/installing/README.md
@@ -1,4 +1,4 @@
-# Advanced Installation
+# Продвинутая установка
To install starship, you need to do two things:
diff --git a/docs/tr-TR/advanced-config/README.md b/docs/tr-TR/advanced-config/README.md
index c874aab1..698071fd 100644
--- a/docs/tr-TR/advanced-config/README.md
+++ b/docs/tr-TR/advanced-config/README.md
@@ -81,6 +81,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Example
diff --git a/docs/tr-TR/config/README.md b/docs/tr-TR/config/README.md
index 6c01d99b..a0223f27 100644
--- a/docs/tr-TR/config/README.md
+++ b/docs/tr-TR/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/uk-UA/advanced-config/README.md b/docs/uk-UA/advanced-config/README.md
index 00762752..457c68f3 100644
--- a/docs/uk-UA/advanced-config/README.md
+++ b/docs/uk-UA/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt та TransientRightPrompt в Bash
+
+[Ble.sh](https://github.com/akinomyoga/ble.sh) дозволяє замінювати попередньо надрукований командний рядок іншим рядком. Це корисно у випадках, коли вся інформація з командного рядка не потрібна. Для увімкнення цього додайте до `~/.bashrc` рядок `bleopt prompt_ps1_transient=`:
+
+\ тут – це розділений двокрапкою список `always`, `same-dir` та `trim`. Якщо `prompt_ps1_final` порожній і цей параметр має не пусте значення, командний рядок, вказаний у `PS1` буде стертий при виході з поточного командного рядка. Якщо значення містить поле `trim`, тільки останній рядок багаторядкового `PS1` буде збережений, а інші вилучені. В іншому випадку командний рядок буде встановлено перестворено, якщо вказано `PS1=`. Коли поле `same-dir` міститься у значені та поточна тека є відмінною від останньої теки у попередньому виводі командного рядка, параметр `prompt_ps1_transient` не враховується.
+
+Зробіть наступні зміни у `~/.bashrc`, щоб налаштувати, що показується ліворуч і праворуч:
+
+- Для налаштування того, чим замінюється ліва частина вводу, налаштуйте параметр `prompt_ps1_final`. Наприклад, щоб показати тут модуль Starship `character`, вам потрібно
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- Для налаштування того, чим замінюється права частина вводу, налаштуйте параметр `prompt_rps1_final`. Наприклад, щоб показати час, коли була запущена остання команда, ви можете зробити
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Власні команди pre-prompt та pre-execution в Cmd
Clink забезпечує надзвичайно гнучкий API для виконання команд pre-prompt і pre-exec в Cmd. Його досить просто використовувати в Starship. Зробіть наступні зміни у вашому `starship.lua` відповідно до ваших вимог:
@@ -205,7 +225,9 @@ Invoke-Expression (&starship init powershell)
Примітка: командний рядок праворуч – це один рядок, що знаходиться праворуч у рядку вводу. Щоб вирівняти модулі праворуч над рядком введення в багаторядковому запиті, перегляньте модуль [`fill`](/config/#fill).
-`right_format` наразі підтримується для таких оболонок: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` наразі підтримується для таких оболонок: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Примітка: фреймворк [Ble.sh](https://github.com/akinomyoga/ble.sh) має бути встановлений для того, щоб використовувати розташування командного рядка в bash праворуч.
### Приклад
diff --git a/docs/uk-UA/config/README.md b/docs/uk-UA/config/README.md
index 179a76ee..0d965192 100644
--- a/docs/uk-UA/config/README.md
+++ b/docs/uk-UA/config/README.md
@@ -1165,6 +1165,7 @@ truncation_symbol = '…/'
| `detect_files` | `['.envrc']` | Які імена файлів мають запускати цей модуль. |
| `detect_folders` | `[]` | В яких теках цей модуль має запускатись. |
| `allowed_msg` | `'allowed'` | Повідомлення, що показується коли використання rc-файлу дозволене. |
+| `not_allowed_msg` | `'not allowed'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
| `denied_msg` | `'denied'` | Повідомлення, що показується коли використання rc-файлу заборонене. |
| `loaded_msg` | `'loaded'` | Повідомлення, що показується коли rc-файл завантажений. |
| `unloaded_msg` | `'not loaded'` | Повідомлення, що показується коли rc-файл не завантажений. |
diff --git a/docs/uk-UA/faq/README.md b/docs/uk-UA/faq/README.md
index afdb13d6..d3b3d41f 100644
--- a/docs/uk-UA/faq/README.md
+++ b/docs/uk-UA/faq/README.md
@@ -121,10 +121,10 @@ Starship так само легко видалити, як і встановит
sh -c 'rm "$(command -v 'starship')"'
```
-## How do I install Starship without `sudo`?
+## Як встановити Starship без `sudo`?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+Скрипт для встановлення оболонки (`https://starship.rs/install.sh`) намагається використовувати `sudo` лише в тому випадку, якщо поточний користувач не може писати в цільову теку. Стандартна тека для встановлення – є значенням змінної `$BIN_DIR` або це `/usr/local/bin`, якщо змінну `$BIN_DIR` не встановлено. Якщо замісць стандартної теки вказати теку, в яку ви можете писати, starship можна встановити без використання `sudo`. Наприклад, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` використовує параметр `-b` для встановлення в теку`~/.local/bin`.
-For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+Якщо ви хочете виконати встановлення в повністю автоматичному режимі, не перериваючись на підтвердження в процесі, додайте параметр `-y`. Перегляньте сирці скрипту встановлення для ознайомлення зі всіма можливими параметрами.
-When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
+У разі використання пакетного менеджера, ознайомтесь з документацією до нього що до можливості встановлення з застосуванням, чи без, `sudo`.
diff --git a/docs/vi-VN/advanced-config/README.md b/docs/vi-VN/advanced-config/README.md
index e4d0e527..c7f3c956 100644
--- a/docs/vi-VN/advanced-config/README.md
+++ b/docs/vi-VN/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### Ví dụ
diff --git a/docs/vi-VN/config/README.md b/docs/vi-VN/config/README.md
index 72769990..c8e5113b 100644
--- a/docs/vi-VN/config/README.md
+++ b/docs/vi-VN/config/README.md
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -1165,6 +1165,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Những tên tệp nào sẽ kích hoạt mô-đun này. |
| `detect_folders` | `[]` | Những thư mục nào sẽ kích hoạt mô-đun này. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
diff --git a/docs/zh-CN/README.md b/docs/zh-CN/README.md
index 316497e0..4ce164ea 100644
--- a/docs/zh-CN/README.md
+++ b/docs/zh-CN/README.md
@@ -2,23 +2,23 @@
home: true
heroImage: /logo.svg
heroText:
-tagline: 轻量、迅速、可无限定制的高颜值终端!
+tagline: 轻量、迅速、客制化的高颜值终端!
actionText: 快速上手 →
actionLink: ./guide/
features:
-
title: 兼容性优先
- details: Starship 可以在各种常见的操作系统和常见的 shell 上运行。 尝试着在各种地方使用它吧!
+ details: Starship 可以在常见的操作系统和 shell 上运行。 尝试着在各种地方使用它吧!
-
- title: 使用 Rust 编写
- details: 具有 Rust 独树一帜的速度与安全性,使你的提示符尽可能的快速可靠。
+ title: 基于 Rust
+ details: Rust 特有的的速度与安全性,让你的提示尽可能的快速可靠。
-
- title: 可自定义
- details: 每个小细节都可以按您喜欢的自定义,不论是最小化以求速度,还是最大化以获得最完善的功能。
-footer: ISC 许可 | 版权所有 © 2019 - 目前 Starship 贡献者
+ title: 客制化
+ details: 每个小细节都可以按您喜欢的客制化,不论是最小化以求速度,还是更大以获得最完善的功能。
+footer: ISC 许可 | 版权所有 © 2019至今 - Starship 贡献者
#Used for the description meta tag, for SEO
metaTitle: "Starship:可用于各种 Shell 的提示符"
-description: Starship是一款轻量级、反应迅速、可自定义的高颜值终端! 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。
+description: Starship是一款轻量、迅速、可客制化的高颜值终端! 只显示所需要的信息,将优雅和轻量化合二为一。 可以为Bash、Fish、ZSH、Ion、Tcsh、Elvish、Nu、Xonsh、Cmd和PowerShell执行快速安装。
---
@@ -162,7 +162,7 @@ description: Starship是一款轻量级、反应迅速、可自定义的高颜
然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
```sh
- 使用 ~/.cache/starship/init.nu
+ use ~/.cache/starship/init.nu
```
diff --git a/docs/zh-CN/advanced-config/README.md b/docs/zh-CN/advanced-config/README.md
index 0ef535d6..e4afa3ff 100644
--- a/docs/zh-CN/advanced-config/README.md
+++ b/docs/zh-CN/advanced-config/README.md
@@ -58,9 +58,9 @@ load(io.popen('starship init cmd'):read("*a"))()
可以用自定义字符串替换预设的命令行提示。 这在不经常需要所有提示信息的情况下很有用。 若要启用该功能,请在 shell 中运行 `Enable-TransitientPrompt`命令 若要永久启用该功能,请将 上述语句放在您的 `~/.config/fish/config.fish` 中。 通过在shell中运行 `Disable-TransientPrompt`命令来禁用这项功能。
-请注意,对于Fish,命令行提示只在命令行非空 和语法正确的情况下才会显示。
+请注意,对于Fish,命令行提示只在命令行非空 且语法正确的情况下才会显示。
-- 默认情况下,输入的左侧是 粗体绿色的❯符号。 要自定义它,请定义一个新函数,名为 `Invoke-Starship-TransitentFunction`。 例如,要 在这里显示Starship的 `character` 模块,您需要如下操作:
+- 默认情况下,输入的左侧是 粗体绿色的`❯`符号。 要自定义它,请定义一个新函数,名为 `Invoke-Starship-TransitentFunction`。 例如,要在这里显示 Starship 的 `character` 组件,您需要如下操作:
```fish
function starship_transent_rmpt_func
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient= `:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. 例如,要在这里显示 最后一个命令开始的时间,您需要如下操作:
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## 在 Cmd 中自定义提示符显示前和执行前的命令
Clink 提供了很灵活的 API,能在 Cmd shell 中运行预提示和执行前命令。 在 Starship 中使用这些 API 很容易。 对你的 `starship.lua` 按需做出如下修改:
@@ -205,7 +225,9 @@ Invoke-Expression (&starship init powershell)
注意:右侧提示和输入区显示在同一行。 如果需要在输入区的上方显示右对齐的组件,请查阅 [`fill` 组件](/config/#fill)。
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### 示例
diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md
index b41d3714..ceb6bc6f 100644
--- a/docs/zh-CN/config/README.md
+++ b/docs/zh-CN/config/README.md
@@ -1,6 +1,6 @@
# 配置
-请为 Starship 创建配置文件 `~/.config/starship.toml`。
+为 Starship 创建配置文件 `~/.config/starship.toml`。
```sh
mkdir -p ~/.config && touch ~/.config/starship.toml
@@ -16,8 +16,8 @@ Starship 的所有配置都在此 [TOML](https://github.com/toml-lang/toml) 文
add_newline = true
# 将提示符中的 '❯' 替换为 '➜'
-[character] # 此模块名称为 'character'
-success_symbol = '[➜](bold green)' # 将 'success_symbol' 片段设置成颜色为 'bold green' 的 '➜'
+[character] # 此组件名称为 'character'
+success_symbol = '[➜](bold green)' # 将 'success_symbol' 字段设置成颜色为 'bold green' 的 '➜'
# 禁用 'package' 组件,将其隐藏
[package]
@@ -46,7 +46,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star
### 日志
-默认情况下,Starship 会将警告和错误日志记录到文件 `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`. 其中 session key 与您的终端实例相对应。 不过,这也可以使用 `STARSHIP_CACHE` 环境变量来修改:
+默认情况下,Starship 会将警告和错误日志记录到文件 `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`. 其中 session key 与您的终端实例相对应。 不过,也可以使用 `STARSHIP_CACHE` 环境变量来修改:
```sh
export STARSHIP_CACHE=~/.starship/cache
@@ -210,7 +210,7 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
::: tip
-If you have symlinks to networked filesystems, consider setting `follow_symlinks` to `false`.
+如果你有链接至网络文件系统的符号链接, 建议设置 `follow_symlinks` 为 `false`
:::
@@ -340,7 +340,7 @@ $shell\
$character"""
```
-如果你只是想扩展默认的格式,你可以使用 `$all`; 你另外添加到格式中的modules不会重复出现。 例如:
+如果你只是想扩展默认的格式,你可以使用 `$all`; 你另外添加到格式中的组件不会重复出现。 例如:
```toml
# Move the directory to the second line
@@ -388,7 +388,7 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile
*: 此变量只能作为样式字符串的一部分使用
-### Examples
+### 示例
#### Display everything
@@ -442,12 +442,12 @@ The `azure` module shows the current Azure Subscription. This is based on showin
| 字段 | 默认值 | 描述 |
| ---------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------- |
| `format` | `'on [$symbol($subscription)]($style) '` | The format for the Azure module to render. |
-| `符号` | `' '` | The symbol used in the format. |
+| `符号` | `' '` | 格式中使用的符号 |
| `style` | `'blue bold'` | The style used in the format. |
-| `disabled` | `true` | Disables the `azure` module. |
+| `disabled` | `true` | 禁用 `azure` 组件。 |
| `subscription_aliases` | `{}` | Table of subscription name aliases to display in addition to Azure subscription name. |
-### Examples
+### 示例
#### Display Subscription Name
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -560,10 +560,10 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
| 选项 | 默认值 | 描述 |
| ------------------- | ----------------------------------------------- | ----------------------------------------------------- |
| `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. |
-| `version_format` | `'v${raw}'` | The version format. |
+| `version_format` | `'v${raw}'` | 版本格式 |
| `符号` | `'🐃 '` | The symbol used before displaying the version of Buf. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | Which filenames should trigger this module. |
+| `detect_files` | `['buf.yaml', 'buf.gen.yaml', 'buf.work.yaml']` | 哪些文件应触发此组件 |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `style` | `'bold blue'` | 此组件的样式。 |
| `disabled` | `false` | Disables the `elixir` module. |
@@ -596,24 +596,24 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🍞 '` | A format string representing the symbol of Bun. |
-| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'bold red'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `bun` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | -------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `symbol` | `'🍞 '` | 用于表示Bun的格式化字符串 |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['bun.lockb', 'bunfig.toml']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'bold red'` | 此组件的样式。 |
+| `disabled` | `false` | 禁用`bun`组件 |
### 变量
-| 字段 | 示例 | 描述 |
-| --------- | -------- | -------------------- |
-| version | `v0.1.4` | The version of `bun` |
-| 符号 | | `symbol`对应值 |
-| style\* | | `style`对应值 |
+| 字段 | 示例 | 描述 |
+| --------- | -------- | ----------- |
+| version | `v0.1.4` | `bun` 版本 |
+| symbol | | `symbol`对应值 |
+| style\* | | `style`对应值 |
*: 此变量只能作为样式字符串的一部分使用
@@ -632,17 +632,17 @@ The `c` module shows some information about your C compiler. By default the modu
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'C '` | The symbol used before displaying the compiler details |
-| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
-| `style` | `'bold 149'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `c` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------ |
+| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'C '` | The symbol used before displaying the compiler details |
+| `detect_extensions` | `['c', 'h']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `commands` | `[ [ 'cc', '--version' ], [ 'gcc', '--version' ], [ 'clang', '--version' ] ]` | How to detect what the compiler is |
+| `style` | `'bold 149'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `c` module. |
### 变量
@@ -708,7 +708,7 @@ By default it only changes color. If you also want to change its shape take a lo
| -- | -- | -------------------------------------------------------------------------------------------------------- |
| 符号 | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. |
-### Examples
+### 示例
#### With custom error shape
@@ -748,16 +748,16 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | -------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'△ '` | 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'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `cmake` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | -------------------------------------- | -------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'△ '` | 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'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `cmake` module. |
### 变量
@@ -778,16 +778,16 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `符号` | `'⚙️ '` | The symbol used before displaying the version of COBOL. |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `style` | `'bold blue'` | 此组件的样式。 |
-| `detect_extensions` | `['cbl', 'cob', 'CBL', 'COB']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `disabled` | `false` | Disables the `cobol` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------- |
+| `符号` | `'⚙️ '` | The symbol used before displaying the version of COBOL. |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `style` | `'bold blue'` | 此组件的样式。 |
+| `detect_extensions` | `['cbl', 'cob', 'CBL', 'COB']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `disabled` | `false` | Disables the `cobol` module. |
### 变量
@@ -924,16 +924,16 @@ The `crystal` module shows the currently installed version of [Crystal](https://
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `符号` | `'🔮 '` | The symbol used before displaying the version of crystal. |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `style` | `'bold red'` | 此组件的样式。 |
-| `detect_extensions` | `['cr']` | Which extensions should trigger this module. |
-| `detect_files` | `['shard.yml']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `disabled` | `false` | Disables the `crystal` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | --------------------------------------------------------- |
+| `符号` | `'🔮 '` | The symbol used before displaying the version of crystal. |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `style` | `'bold red'` | 此组件的样式。 |
+| `detect_extensions` | `['cr']` | Which extensions should trigger this module. |
+| `detect_files` | `['shard.yml']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `disabled` | `false` | Disables the `crystal` module. |
### 变量
@@ -962,16 +962,16 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'Λ '` | A format string representing the symbol of Daml |
-| `style` | `'bold cyan'` | 此组件的样式。 |
-| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `['daml.yaml']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `disabled` | `false` | Disables the `daml` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'Λ '` | A format string representing the symbol of Daml |
+| `style` | `'bold cyan'` | 此组件的样式。 |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['daml.yaml']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `disabled` | `false` | Disables the `daml` module. |
### 变量
@@ -1002,16 +1002,16 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🎯 '` | 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'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `dart` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------------------- | ----------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'🎯 '` | 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']` | 哪些文件应触发此组件 |
+| `detect_folders` | `['.dart_tool']` | 那些文件夹应该触发此组件 |
+| `style` | `'bold blue'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `dart` module. |
### 变量
@@ -1040,16 +1040,16 @@ The `deno` module shows you your currently installed version of [Deno](https://d
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🦕 '` | A format string representing the symbol of Deno |
-| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `['deno.json', 'deno.jsonc', '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'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `deno` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ----------------------------------------------------------------------- | ----------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'🦕 '` | A format string representing the symbol of Deno |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['deno.json', 'deno.jsonc', 'mod.ts', 'mod.js', 'deps.ts', 'deps.js']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'green bold'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `deno` module. |
### 变量
@@ -1162,9 +1162,10 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `style` | `'bold orange'` | 此组件的样式。 |
| `disabled` | `true` | Disables the `direnv` module. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `detect_files` | `['.envrc']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
@@ -1249,17 +1250,17 @@ The module will also show the Target Framework Moniker ( '` | The symbol used before displaying the version of PureScript. |
-| `detect_extensions` | `['purs']` | Which extensions should trigger this module. |
-| `detect_files` | `['spago.dhall']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'bold white'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `purescript` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'<=> '` | The symbol used before displaying the version of PureScript. |
+| `detect_extensions` | `['purs']` | Which extensions should trigger this module. |
+| `detect_files` | `['spago.dhall']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'bold white'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `purescript` module. |
### 变量
@@ -3372,7 +3373,7 @@ By default the module will be shown if any of the following conditions are met:
| 选项 | 默认值 | 描述 |
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
| `符号` | `'🐍 '` | 用于表示Python的格式化字符串。 |
| `style` | `'yellow bold'` | 此组件的样式。 |
| `pyenv_version_name` | `false` | 使用 pyenv 获取 Python 版本 |
@@ -3452,16 +3453,16 @@ The `rlang` module shows the currently installed version of [R](https://www.r-pr
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'📐'` | A format string representing the symbol of R. |
-| `style` | `'blue bold'` | 此组件的样式。 |
-| `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 |
-| `disabled` | `false` | Disables the `r` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | --------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'📐'` | A format string representing the symbol of R. |
+| `style` | `'blue bold'` | 此组件的样式。 |
+| `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 |
+| `disabled` | `false` | Disables the `r` module. |
### 变量
@@ -3489,16 +3490,16 @@ The `raku` module shows the currently installed version of [Raku](https://www.ra
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version-$vm_version )]($style)'` | The format string for the module. |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🦋 '` | The symbol used before displaying the version of Raku |
-| `detect_extensions` | `['p6', 'pm6', 'pod6', 'raku', 'rakumod']` | Which extensions should trigger this module. |
-| `detect_files` | `['META6.json']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'bold 149'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `raku` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version-$vm_version )]($style)'` | The format string for the module. |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'🦋 '` | The symbol used before displaying the version of Raku |
+| `detect_extensions` | `['p6', 'pm6', 'pod6', 'raku', 'rakumod']` | Which extensions should trigger this module. |
+| `detect_files` | `['META6.json']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'bold 149'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `raku` module. |
### 变量
@@ -3526,16 +3527,16 @@ By default the `red` module shows the currently installed version of [Red](https
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🔺 '` | A format string representing the symbol of Red. |
-| `detect_extensions` | `['red']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'red bold'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `red` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'🔺 '` | A format string representing the symbol of Red. |
+| `detect_extensions` | `['red']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'red bold'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `red` module. |
### 变量
@@ -3569,17 +3570,17 @@ Starship gets the current Ruby version by running `ruby -v`.
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'💎 '` | A format string representing the symbol of Ruby. |
-| `detect_extensions` | `['rb']` | Which extensions should trigger this module. |
-| `detect_files` | `['Gemfile', '.ruby-version']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `detect_variables` | `['RUBY_VERSION', 'RBENV_VERSION']` | Which environment variables should trigger this module. |
-| `style` | `'bold red'` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `ruby` 组件。 |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'💎 '` | A format string representing the symbol of Ruby. |
+| `detect_extensions` | `['rb']` | Which extensions should trigger this module. |
+| `detect_files` | `['Gemfile', '.ruby-version']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `detect_variables` | `['RUBY_VERSION', 'RBENV_VERSION']` | Which environment variables should trigger this module. |
+| `style` | `'bold red'` | 此组件的样式。 |
+| `disabled` | `false` | 禁用 `ruby` 组件。 |
### 变量
@@ -3609,16 +3610,16 @@ By default the `rust` module shows the currently installed version of [Rust](htt
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🦀 '` | A format string representing the symbol of Rust |
-| `detect_extensions` | `['rs']` | Which extensions should trigger this module. |
-| `detect_files` | `['Cargo.toml']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'bold red'` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `rust` 组件。 |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'🦀 '` | A format string representing the symbol of Rust |
+| `detect_extensions` | `['rs']` | Which extensions should trigger this module. |
+| `detect_files` | `['Cargo.toml']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'bold red'` | 此组件的样式。 |
+| `disabled` | `false` | 禁用 `rust` 组件。 |
### 变量
@@ -3651,16 +3652,16 @@ The `scala` module shows the currently installed version of [Scala](https://www.
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ---------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [${symbol}(${version} )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `['sbt', 'scala']` | Which extensions should trigger this module. |
-| `detect_files` | `['.scalaenv', '.sbtenv', 'build.sbt']` | Which filenames should trigger this module. |
-| `detect_folders` | `['.metals']` | Which folders should trigger this modules. |
-| `符号` | `'🆂 '` | A format string representing the symbol of Scala. |
-| `style` | `'red dimmed'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `scala` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ---------------------------------------- | ------------------------------------------------- |
+| `format` | `'via [${symbol}(${version} )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `detect_extensions` | `['sbt', 'scala']` | Which extensions should trigger this module. |
+| `detect_files` | `['.scalaenv', '.sbtenv', 'build.sbt']` | 哪些文件应触发此组件 |
+| `detect_folders` | `['.metals']` | Which folders should trigger this modules. |
+| `符号` | `'🆂 '` | A format string representing the symbol of Scala. |
+| `style` | `'red dimmed'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `scala` module. |
### 变量
@@ -3720,7 +3721,7 @@ The `shell` module shows an indicator for currently used shell.
*: 此变量只能作为样式字符串的一部分使用
-### Examples
+### 示例
```toml
# ~/.config/starship.toml
@@ -3824,17 +3825,17 @@ The `solidity` module shows the currently installed version of [Solidity](https:
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'S '` | A format string representing the symbol of Solidity |
-| `compiler | ['solc'] | The default compiler for Solidity. |
-| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'bold blue'` | 此组件的样式。 |
-| `disabled` | `false` | Disables this module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | --------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${major}.${minor}.${patch}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'S '` | A format string representing the symbol of Solidity |
+| `compiler | ['solc'] | The default compiler for Solidity. |
+| `detect_extensions` | `['sol']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'bold blue'` | 此组件的样式。 |
+| `disabled` | `false` | Disables this module. |
### 变量
@@ -4006,16 +4007,16 @@ By default the `swift` module shows the currently installed version of [Swift](h
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'🐦 '` | A format string representing the symbol of Swift |
-| `detect_extensions` | `['swift']` | Which extensions should trigger this module. |
-| `detect_files` | `['Package.swift']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'bold 202'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `swift` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ------------------------------------------------ |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'🐦 '` | A format string representing the symbol of Swift |
+| `detect_extensions` | `['swift']` | Which extensions should trigger this module. |
+| `detect_files` | `['Package.swift']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'bold 202'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `swift` module. |
### 变量
@@ -4053,16 +4054,16 @@ By default the module will be shown if any of the following conditions are met:
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `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` |
-| `符号` | `'💠'` | A format string shown before the terraform workspace. |
-| `detect_extensions` | `['tf', 'tfplan', 'tfstate']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `['.terraform']` | Which folders should trigger this module. |
-| `style` | `'bold 105'` | 此组件的样式。 |
-| `disabled` | `false` | 禁用 `terraform` 组件。 |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol$workspace]($style) '` | The format string for the module. |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'💠'` | A format string shown before the terraform workspace. |
+| `detect_extensions` | `['tf', 'tfplan', 'tfstate']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `['.terraform']` | 那些文件夹应该触发此组件 |
+| `style` | `'bold 105'` | 此组件的样式。 |
+| `disabled` | `false` | 禁用 `terraform` 组件。 |
### 变量
@@ -4152,16 +4153,16 @@ By default, the module will be shown if any of the following conditions are met:
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'t '` | A format string representing the symbol of Daml |
-| `style` | `'bold #0093A7'` | 此组件的样式。 |
-| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
-| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `disabled` | `false` | Disables the `daml` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'t '` | A format string representing the symbol of Daml |
+| `style` | `'bold #0093A7'` | 此组件的样式。 |
+| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
+| `detect_files` | `['template.typ']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `disabled` | `false` | Disables the `daml` module. |
### 变量
@@ -4227,16 +4228,16 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'⍱ '` | A format string representing the symbol of Vagrant. |
-| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `['Vagrantfile']` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'cyan bold'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `vagrant` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | --------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'⍱ '` | A format string representing the symbol of Vagrant. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `['Vagrantfile']` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'cyan bold'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `vagrant` module. |
### 变量
@@ -4266,16 +4267,16 @@ The `vlang` module shows you your currently installed version of [V](https://vla
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'V '` | A format string representing the symbol of V |
-| `detect_extensions` | `['v']` | Which extensions should trigger this module. |
-| `detect_files` | `['v.mod', 'vpkg.json', '.vpkg-lock.json' ]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `'blue bold'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `vlang` module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | -------------------------------------------- | -------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'V '` | A format string representing the symbol of V |
+| `detect_extensions` | `['v']` | Which extensions should trigger this module. |
+| `detect_files` | `['v.mod', 'vpkg.json', '.vpkg-lock.json' ]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
+| `style` | `'blue bold'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `vlang` module. |
### 变量
@@ -4333,16 +4334,16 @@ By default the `zig` module shows the currently installed version of [Zig](https
### 配置项
-| 选项 | 默认值 | 描述 |
-| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
-| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
-| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `符号` | `'↯ '` | The symbol used before displaying the version of Zig. |
-| `style` | `'bold yellow'` | 此组件的样式。 |
-| `disabled` | `false` | Disables the `zig` module. |
-| `detect_extensions` | `['zig']` | Which extensions should trigger this module. |
-| `detect_files` | `[]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
+| 选项 | 默认值 | 描述 |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `'via [$symbol($version )]($style)'` | 组件格式化模板。 |
+| `version_format` | `'v${raw}'` | 版本格式 可用的有 `raw`, `major`, `minor` 和 `patch` |
+| `符号` | `'↯ '` | The symbol used before displaying the version of Zig. |
+| `style` | `'bold yellow'` | 此组件的样式。 |
+| `disabled` | `false` | Disables the `zig` module. |
+| `detect_extensions` | `['zig']` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | 哪些文件应触发此组件 |
+| `detect_folders` | `[]` | 那些文件夹应该触发此组件 |
### 变量
diff --git a/docs/zh-CN/faq/README.md b/docs/zh-CN/faq/README.md
index 9d21b222..57f87a70 100644
--- a/docs/zh-CN/faq/README.md
+++ b/docs/zh-CN/faq/README.md
@@ -121,10 +121,10 @@ Starship 的卸载过程与安装过程一样简单。
sh -c 'rm "$(command -v 'starship')"'
```
-## How do I install Starship without `sudo`?
+## 我如何在没有 `sudo` 的情况下安装 Starship?
-The shell install script (`https://starship.rs/install.sh`) only attempts to use `sudo` if the target installation directory is not writable by the current user. The default installation diretory is the value of the `$BIN_DIR` environment variable or `/usr/local/bin` if `$BIN_DIR` is not set. If you instead set the installation directory to one that is writable by your user, you should be able to install starship without `sudo`. For example, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` uses the `-b` command line option of the install script to set the installation directory to `~/.local/bin`.
+Shell 安装脚本(`https://starship.rs/install`) 只尝试使用 `sudo`当安装目录不可被当前用户写入 默认安装目录是环境变量 `$BIN_DIR` 的值或者 `/usr/loca/bin` 如果 if `$BIN_DIR` 未设置 如果你使用一个用户可写的安装目录替代, 你应该可以不使用 `sudo` 安装 Starship 例如, `curl -sS https://starship.rs/install.sh | sh -s -- -b ~/.local/bin` 使用 `-b` 选项设置安装目录到 `~/.local/bin`
-For a non-interactive installation of Starship, don't forget to add the `-y` option to skip the confirmation. Check the source of the installation script for a list of all supported installation options.
+对于非交互 Starship 安装, 请添加 `-y` 以跳过确认 查看安装脚本源码以获取所有支持的选项
-When using a package manager, see the documentation for your package manager about installing with or without `sudo`.
+当使用包管理器时, 查询包管理器关于有无`sudo`安装的文档
diff --git a/docs/zh-CN/guide/README.md b/docs/zh-CN/guide/README.md
index b2b95546..3ee33d96 100644
--- a/docs/zh-CN/guide/README.md
+++ b/docs/zh-CN/guide/README.md
@@ -161,10 +161,10 @@
align="right"
/>
-**轻量、迅速、可无限定制的高颜值终端!**
+**轻量、迅速、客制化的高颜值终端!**
- **快:** 很快 —— 真的真的非常快! 🚀
-- **定制化:** 可定制各种各样的提示符。
+- **客制化:** 可定制各种各样的提示符。
- **通用:** 适用于任何 Shell、任何操作系统。
- **智能:** 一目了然地显示相关信息。
- **功能丰富:** 支持所有你喜欢的工具。
@@ -227,7 +227,7 @@ curl -sS https://starship.rs/install.sh | sh
| _任意发行版_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` |
| _任意发行版_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` |
| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` |
-| Arch Linux | [Arch Linux 额外](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
+| Arch Linux | [Arch Linux extra](https://archlinux.org/packages/extra/x86_64/starship) | `pacman -S starship` |
| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` `dnf install starship` |
| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` |
| Manjaro | | `pacman -S starship` |
@@ -348,7 +348,7 @@ starship init nu | save -f ~/.cache/starship/init.nu
然后在您的 Nushell 配置文件的最后(使用 `$nu.config-path` 来获取它的路径),添加以下内容:
```sh
-使用 ~/.cache/starship/init.nu
+use ~/.cache/starship/init.nu
```
注意:仅支持 Nushell v0.78+
@@ -411,7 +411,7 @@ eval "$(starship init zsh)"
## 🤝 贡献
-我们欢迎 **任何水平** 的参与者! 如果想练手,可以试着解决某个标记为 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue) 的议题。
+我们欢迎 **任何水平** 的参与者! 如果想练手,可以试着解决某个标记为 [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue) 的 Issue。
如果你精通非英语语言,请协助我们翻译并更新文档,非常感谢! 你可以在 [Starship Crowdin](https://translate.starship.rs/) 上参与翻译。
@@ -419,7 +419,7 @@ eval "$(starship init zsh)"
## 💭 该项目受以下项目启发
-请看看这些之前的项目,他们启发了 Starship 项目。 🙏
+请查看这些曾经启发了 Starship 的项目。 🙏
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – 为宇航员准备的 ZSH 提示符。
diff --git a/docs/zh-CN/presets/gruvbox-rainbow.md b/docs/zh-CN/presets/gruvbox-rainbow.md
index 4701cd1a..8402e96d 100644
--- a/docs/zh-CN/presets/gruvbox-rainbow.md
+++ b/docs/zh-CN/presets/gruvbox-rainbow.md
@@ -8,7 +8,7 @@ This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), an
### 前置要求
-- 安装一种 [Nerd fonts](https://www.nerdfonts.com/) 并在您的终端启用。
+- 安装一种 [Nerd Font](https://www.nerdfonts.com/) 并在您的终端启用。
### 配置
diff --git a/docs/zh-CN/presets/nerd-font.md b/docs/zh-CN/presets/nerd-font.md
index eb6b1440..312f3c64 100644
--- a/docs/zh-CN/presets/nerd-font.md
+++ b/docs/zh-CN/presets/nerd-font.md
@@ -2,13 +2,13 @@
# Nerd 字体符号预设
-此预设使用 Nerd 字体的符号显示所有组件。
+此预设使用 Nerd Font 的符号显示所有组件。
-![Nerd 字体符号预设截图](/presets/img/nerd-font-symbols.png)
+![Nerd Font 符号预设截图](/presets/img/nerd-font-symbols.png)
### 前置要求
-- 安装一种 [Nerd 字体](https://www.nerdfonts.com/) 并在您的终端启用(示例使用的是 Fira Code 字体)。
+- 安装一种 [Nerd Font](https://www.nerdfonts.com/) 并在您的终端启用 (示例使用的是 Fira Code 字体)。
### 配置
diff --git a/docs/zh-CN/presets/tokyo-night.md b/docs/zh-CN/presets/tokyo-night.md
index 57f8b38e..526f2781 100644
--- a/docs/zh-CN/presets/tokyo-night.md
+++ b/docs/zh-CN/presets/tokyo-night.md
@@ -8,7 +8,7 @@
### 前置要求
-- 安装一种 [Nerd fonts](https://www.nerdfonts.com/) 并在您的终端启用。
+- 安装一种 [Nerd Font](https://www.nerdfonts.com/) 并在您的终端启用。
### 配置
diff --git a/docs/zh-TW/advanced-config/README.md b/docs/zh-TW/advanced-config/README.md
index 3b5c300c..89a696d7 100644
--- a/docs/zh-TW/advanced-config/README.md
+++ b/docs/zh-TW/advanced-config/README.md
@@ -80,6 +80,26 @@ starship init fish | source
enable_transience
```
+## TransientPrompt and TransientRightPrompt in Bash
+
+The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=`:
+
+The \ here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored.
+
+Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right:
+
+- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do
+
+```bash
+bleopt prompt_ps1_final="$(starship module character)"
+```
+
+- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do
+
+```bash
+bleopt prompt_rps1_final="$(starship module time)"
+```
+
## Custom pre-prompt and pre-execution Commands in Cmd
Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
@@ -205,7 +225,9 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [`fill` module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash.
+
+Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash.
### 範例
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index 7f0845e4..508690dd 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -46,7 +46,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star
### 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 an 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
@@ -85,7 +85,7 @@ The following Starship syntax symbols have special usage in a format string and
| `'''` | multi-line literal string | less escaping |
| `"""` | multi-line string | more escaping, newlines in declarations can be ignored |
-For example:
+範例:
```toml
# literal string
@@ -98,7 +98,7 @@ format = "☺\\☻ "
format = '\[\$\] '
```
-When using line breaks, multi-line declarations can be used. For example, if you want to print a `$` symbol on a new line, the following values for `format` are equivalent:
+使用換行符號時,可以使用多行宣告 舉例來說,如果你想在一個新行印出 `$` 符號,則下列的 `format` 值具有相同效果
```toml
# with literal string
@@ -115,7 +115,7 @@ format = """
format = "\n\\$"
```
-In multiline basic strings, newlines can be used for formatting without being present in the value by escaping them.
+在多行基本字串中,換行符號可用於格式化,而無需透過跳脫字元出現在值中。
```toml
format = """
@@ -128,7 +128,7 @@ line2
"""
```
-### Format 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.
@@ -136,7 +136,7 @@ Format strings are the format that a module prints all its variables with. Most
A variable contains a `$` symbol followed by the name of the variable. The name of a variable can only contain letters, numbers and `_`.
-For example:
+範例:
- `'$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`.
@@ -150,7 +150,7 @@ The first part, which is enclosed in a `[]`, is a [format string](#format-string
In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part.
-For example:
+範例:
- `'[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.
@@ -173,7 +173,7 @@ Starship 內大多數的模組允許你設定他們的顯示風格。 這要透
A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty.
-For example:
+範例:
- `'(@$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.
@@ -197,7 +197,7 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts']
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ----------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format` | [連結](#default-prompt-format) | Configure the format of the prompt. |
| `right_format` | `''` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) |
@@ -242,9 +242,9 @@ blue = '21'
mustard = '#af8700'
```
-### Default Prompt Format
+### 預設提示字元格式
-The default `format` is used to define the format of the prompt, if empty or no `format` is provided. 預設如下:
+如果為空值或未提供 `format`,則預設`format`用於定義提示字元的格式。 預設如下:
```toml
format = '$all'
@@ -340,7 +340,7 @@ $shell\
$character"""
```
-If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg.
+如果你只是想要擴充預設的格式,可以使用 `$all`,您明確地新增到格式中的模組將不會重複。 Eg.
```toml
# Move the directory to the second line
@@ -365,7 +365,7 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `format` | `'on [$symbol($profile )(\($region\) )(\[$duration\] )]($style)'` | The format for the module. |
| `symbol` | `'☁️ '` | 顯示在目前 AWS 配置之前的符號。 |
@@ -376,7 +376,7 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile
| `disabled` | `false` | 停用 `AWS` 模組。 |
| `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------------- | ------------------------------------------- |
@@ -388,9 +388,9 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile
*: This variable can only be used as a part of a style string
-### Examples
+### 範例
-#### Display everything
+#### 顯示所有
```toml
# ~/.config/starship.toml
@@ -406,7 +406,7 @@ us-east-1 = 'va'
CompanyGroupFrobozzOnCallAccess = 'Frobozz'
```
-#### Display region
+#### 顯示 region
```toml
# ~/.config/starship.toml
@@ -420,7 +420,7 @@ ap-southeast-2 = 'au'
us-east-1 = 'va'
```
-#### Display profile
+#### 顯示 profile
```toml
# ~/.config/starship.toml
@@ -447,9 +447,9 @@ The `azure` module shows the current Azure Subscription. This is based on showin
| `disabled` | `true` | Disables the `azure` module. |
| `subscription_aliases` | `{}` | Table of subscription name aliases to display in addition to Azure subscription name. |
-### Examples
+### 範例
-#### Display Subscription Name
+#### 顯示訂閱名稱
```toml
# ~/.config/starship.toml
@@ -461,7 +461,7 @@ symbol = ' '
style = 'blue bold'
```
-#### Display Username
+#### 顯示使用者名稱
```toml
# ~/.config/starship.toml
@@ -473,7 +473,7 @@ symbol = " "
style = "blue bold"
```
-#### Display Subscription Name Alias
+#### 顯示訂閱名稱別名
```toml
# ~/.config/starship.toml
@@ -488,7 +488,7 @@ very-long-subscription-name = 'vlsn'
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | --------------------------------- | -------------------------- |
| `full_symbol` | `' '` | 當電池充飽時顯示的符號。 |
| `charging_symbol` | `' '` | 當電池正在充電時顯示的符號。 |
@@ -526,7 +526,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r
`display` 選項是一個下列表格的陣列。
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | ------------ | --------------------------------------------------------------------------------------------------------- |
| `threshold` | `10` | 顯示選項的上界。 |
| `style` | `'red bold'` | 顯示選項使用時的風格。 |
@@ -543,7 +543,7 @@ style = 'bold red'
[[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = 'bold yellow'
-discharging_symbol = '💦'
+discharging_symbol = '💦 '
# when capacity is over 30%, the battery indicator will not be displayed
```
@@ -557,7 +557,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------------- | ----------------------------------------------------- |
| `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. |
| `version_format` | `'v${raw}'` | The version format. |
@@ -568,7 +568,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil
| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `elixir` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -596,7 +596,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -607,7 +607,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun.
| `style` | `'bold red'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `bun` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -632,7 +632,7 @@ The `c` module shows some information about your C compiler. By default the modu
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -644,7 +644,7 @@ The `c` module shows some information about your C compiler. By default the modu
| `style` | `'bold 149'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `c` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------- | ------ | ------------------------------------ |
@@ -691,7 +691,7 @@ By default it only changes color. If you also want to change its shape take a lo
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| --------------------------- | -------------------- | --------------------------------------------------------------------------------------- |
| `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. |
@@ -702,13 +702,13 @@ By default it only changes color. If you also want to change its shape take a lo
| `vimcmd_visual_symbol` | `'[❮](bold yellow)'` | The format string used before the text input if the shell is in vim visual mode. |
| `disabled` | `false` | 停用 `character` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------ | -- | -------------------------------------------------------------------------------------------------------- |
| symbol | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. |
-### Examples
+### 範例
#### With custom error shape
@@ -748,7 +748,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -759,7 +759,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak
| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `cmake` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -778,7 +778,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `symbol` | `'⚙️ '` | The symbol used before displaying the version of COBOL. |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
@@ -789,7 +789,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `cobol` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------- | ------------------------------------ |
@@ -813,7 +813,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
| `show_milliseconds` | `false` | 顯示時間除了以秒為單位外,亦以毫秒顯示 |
@@ -824,7 +824,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t
| `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). |
| `notification_timeout` | | Duration to show notification for (in milliseconds). If unset, notification timeout will be determined by daemon. Not all notification daemons honor this option. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | --------------------------------------- |
@@ -855,7 +855,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `truncation_length` | `1` | 如果環境變數由所`conda create -p [path]`產生時,環境變數的資料夾需要截斷的數目。 `0` 表示不截斷 也請參考 [`directory`](#directory)模組 |
| `symbol` | `'🅒 '` | 環境名稱前使用的符號。 |
@@ -864,7 +864,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
| `ignore_base` | `true` | Ignores `base` environment when activated. |
| `disabled` | `false` | 停用 `conda` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ----------- | ------------ | ------------------------------------ |
@@ -889,14 +889,14 @@ The `container` module displays a symbol and container name, if inside a contain
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | ---------------------------------- | ----------------------------------------- |
| `symbol` | `'⬢'` | The symbol shown, when inside a container |
| `style` | `'bold red dimmed'` | 這個模組的風格。 |
| `format` | `'[$symbol \[$name\]]($style) '` | The format for the module. |
| `disabled` | `false` | Disables the `container` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------------- | ------------------------------------ |
@@ -924,7 +924,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `symbol` | `'🔮 '` | The symbol used before displaying the version of crystal. |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
@@ -935,7 +935,7 @@ The `crystal` module shows the currently installed version of [Crystal](https://
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `crystal` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -962,7 +962,7 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -973,7 +973,7 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `daml` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -1002,7 +1002,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -1013,7 +1013,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d
| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `dart` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -1040,7 +1040,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -1051,7 +1051,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d
| `style` | `'green bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `deno` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -1078,7 +1078,7 @@ When using the `fish_style_pwd_dir_length` option, instead of hiding the path th
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `truncation_length` | `3` | 到達現在資料夾的路徑中,要被裁減掉的資料夾數目。 |
| `truncate_to_repo` | `true` | 是否要裁減到你現在所在的 git 儲存庫的根目錄。 |
@@ -1115,7 +1115,7 @@ When using the `fish_style_pwd_dir_length` option, instead of hiding the path th
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------------------- | ----------------------------------- |
@@ -1155,7 +1155,7 @@ The `direnv` module shows the status of the current rc file if one is present. T
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
@@ -1165,11 +1165,12 @@ The `direnv` module shows the status of the current rc file if one is present. T
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
+| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------------- | --------------------------------------- |
@@ -1196,7 +1197,7 @@ The `docker_context` module shows the currently active [Docker context](https://
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `format` | `'via [$symbol$context]($style) '` | The format for the module. |
| `symbol` | `'🐳 '` | The symbol used before displaying the Docker context. |
@@ -1207,7 +1208,7 @@ The `docker_context` module shows the currently active [Docker context](https://
| `style` | `'blue bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `docker_context` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------------- | ------------------------------------ |
@@ -1249,7 +1250,7 @@ The module will also show the Target Framework Moniker ("` | The description of the module that is shown when running `starship explain`. |
| `disabled` | `false` | 停用 `env_var` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------------------------------------- | ------------------------------------------ |
@@ -1444,7 +1445,7 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -1455,7 +1456,7 @@ The `erlang` module shows the currently installed version of [Erlang/OTP](https:
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `erlang` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -1482,7 +1483,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -1493,7 +1494,7 @@ The `fennel` module shows the currently installed version of [Fennel](https://fe
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `disabled` | `false` | Disables the `fennel` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -1518,7 +1519,7 @@ The `fill` module fills any extra space on the line with a symbol. If multiple `
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | -------------- | --------------------------------- |
| `symbol` | `'.'` | The symbol used to fill the line. |
| `style` | `'bold black'` | 這個模組的風格。 |
@@ -1547,7 +1548,7 @@ The `fossil_branch` module shows the name of the active branch of the check-out
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------- |
| `format` | `'on [$symbol$branch]($style) '` | The format for the module. Use `'$branch'` to refer to the current branch name. |
| `symbol` | `' '` | The symbol used before the branch name of the check-out in your current directory. |
@@ -1556,7 +1557,7 @@ The `fossil_branch` module shows the name of the active branch of the check-out
| `truncation_symbol` | `'…'` | 用來指示分支名稱被縮減的符號。 You can use `''` for no symbol. |
| `disabled` | `true` | Disables the `fossil_branch` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------- | ------------------------------------ |
@@ -1583,7 +1584,7 @@ The `fossil_metrics` module will show the number of added and deleted lines in t
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
| `format` | `'([+$added]($added_style) )([-$deleted]($deleted_style) )'` | The format for the module. |
| `added_style` | `'bold green'` | The style for the added count. |
@@ -1591,7 +1592,7 @@ The `fossil_metrics` module will show the number of added and deleted lines in t
| `only_nonzero_diffs` | `true` | Render status only for changed items. |
| `disabled` | `true` | Disables the `fossil_metrics` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ----------------- | --- | ------------------------------------------- |
@@ -1620,7 +1621,7 @@ When the module is enabled it will always be active, unless `detect_env_vars` ha
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ----------------- | ---------------------------------------------------------- | ---------------------------------------------------------------- |
| `format` | `'on [$symbol$account(@$domain)(\($region\))]($style) '` | The format for the module. |
| `symbol` | `'☁️ '` | The symbol used before displaying the current GCP profile. |
@@ -1630,7 +1631,7 @@ When the module is enabled it will always be active, unless `detect_env_vars` ha
| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `gcloud` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------- | ------------------------------------------------------------------ |
@@ -1644,7 +1645,7 @@ When the module is enabled it will always be active, unless `detect_env_vars` ha
*: This variable can only be used as a part of a style string
-### Examples
+### 範例
#### Display account and project
@@ -1694,7 +1695,7 @@ very-long-project-name = 'vlpn'
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `always_show_remote` | `false` | Shows the remote tracking branch name, even if it is equal to the local branch name. |
| `format` | `'on [$symbol$branch(:$remote_branch)]($style) '` | The format for the module. Use `'$branch'` to refer to the current branch name. |
@@ -1706,7 +1707,7 @@ very-long-project-name = 'vlpn'
| `ignore_branches` | `[]` | A list of names to avoid displaying. Useful for 'master' or 'main'. |
| `disabled` | `false` | 停用 `git_branch` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------ |
@@ -1730,13 +1731,13 @@ truncation_symbol = ''
ignore_branches = ['master', 'main']
```
-## Git Commit
+## Git 提交
The `git_commit` module shows the current commit hash and also the tag (if any) of the repo in your current directory.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | ------------------------------ | ------------------------------------------------------------------------------------ |
| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
| `format` | `'[\($hash$tag\)]($style) '` | The format for the module. |
@@ -1747,7 +1748,7 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
| `tag_symbol` | `' 🏷 '` | Tag symbol prefixing the info shown |
| `disabled` | `false` | Disables the `git_commit` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | -------------------------------------------- |
@@ -1773,7 +1774,7 @@ tag_symbol = '🔖 '
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| `rebase` | `'REBASING'` | A format string displayed when a `rebase` is in progress. |
| `merge` | `'MERGING'` | A format string displayed when a `merge` is in progress. |
@@ -1786,7 +1787,7 @@ tag_symbol = '🔖 '
| `format` | `'\([$state( $progress_current/$progress_total)]($style)\) '` | The format for the module. |
| `disabled` | `false` | 停用 `git_state` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ---------------- | ---------- | ----------------------------------- |
@@ -1819,7 +1820,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | ------------------------------------------------------------ | ------------------------------------- |
| `added_style` | `'bold green'` | The style for the added count. |
| `deleted_style` | `'bold red'` | The style for the deleted count. |
@@ -1828,7 +1829,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
| `disabled` | `true` | Disables the `git_metrics` module. |
| `ignore_submodules` | `false` | Ignore changes to submodules |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ----------------- | --- | ------------------------------------------- |
@@ -1849,7 +1850,7 @@ added_style = 'bold blue'
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
```
-## Git Status
+## Git 狀態
`git_status` 模組顯示用來表示現在資料夾之中儲存庫狀態的符號。
@@ -1861,7 +1862,7 @@ The Git Status module is very slow in Windows directories (for example under `/m
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
| `conflicted` | `'='` | 這個分支有合併衝突。 |
@@ -1881,7 +1882,7 @@ The Git Status module is very slow in Windows directories (for example under `/m
| `disabled` | `false` | 停用 `git_status` 模組。 |
| `windows_starship` | | Use this (Linux) path to a Windows Starship executable to render `git_status` when on Windows paths in WSL. |
-### Variables
+### 變數
The following variables can be used in `format`:
@@ -1969,7 +1970,7 @@ The `golang` module shows the currently installed version of [Go](https://golang
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -1981,7 +1982,7 @@ The `golang` module shows the currently installed version of [Go](https://golang
| `not_capable_style` | `'bold red'` | The style for the module when the go directive in the go.mod file does not match the installed Go version. |
| `disabled` | `false` | 停用 `golang` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ----------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -2016,14 +2017,14 @@ The `guix_shell` module shows the [guix-shell](https://guix.gnu.org/manual/devel
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | -------------------------- | ------------------------------------------------------ |
| `format` | `'via [$symbol]($style) '` | The format for the module. |
| `symbol` | `'🐃 '` | A format string representing the symbol of guix-shell. |
| `style` | `'yellow bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `guix_shell` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -- | ------------------------------------ |
@@ -2055,7 +2056,7 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2067,7 +2068,7 @@ The `gradle` module is only able to read your Gradle Wrapper version from your c
| `disabled` | `false` | Disables the `gradle` module. |
| `recursive` | `false` | Enables recursive finding for the `gradle` directory. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------- | -------- | ------------------------------------ |
@@ -2088,7 +2089,7 @@ By default the module will be shown if any of the following conditions are met:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | -------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `symbol` | `'λ '` | A format string representing the symbol of Haskell |
@@ -2098,7 +2099,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `'bold purple'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `haskell` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| -------------- | ----------- | --------------------------------------------------------------------------------------- |
@@ -2120,7 +2121,7 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2131,7 +2132,7 @@ The `haxe` module shows the currently installed version of [Haxe](https://haxe.o
| `style` | `'bold fg:202'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `haxe` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -2159,7 +2160,7 @@ The `helm` module shows the currently installed version of [Helm](https://helm.s
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2170,7 +2171,7 @@ The `helm` module shows the currently installed version of [Helm](https://helm.s
| `style` | `'bold white'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `helm` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -2195,7 +2196,7 @@ format = 'via [⎈ $version](bold white) '
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ----------------- | -------------------------------------- | -------------------------------------------------------------------------------------------- |
| `ssh_only` | `true` | 只在連接到一個 SSH session 時顯示主機名稱。 |
| `ssh_symbol` | `'🌐 '` | A format string representing the symbol when connected to SSH session. |
@@ -2205,7 +2206,7 @@ format = 'via [⎈ $version](bold white) '
| `style` | `'bold dimmed green'` | 這個模組的風格。 |
| `disabled` | `false` | 停用 `hostname` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ---------- | ---------- | ----------------------------------------------------- |
@@ -2215,7 +2216,7 @@ format = 'via [⎈ $version](bold white) '
*: This variable can only be used as a part of a style string
-### Examples
+### 範例
#### Always show the hostname
@@ -2249,7 +2250,7 @@ The `java` module shows the currently installed version of [Java](https://www.or
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [${symbol}(${version} )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2260,7 +2261,7 @@ The `java` module shows the currently installed version of [Java](https://www.or
| `style` | `'red dimmed'` | 這個模組的風格。 |
| `disabled` | `false` | 停用 `java` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ----- | ------------------------------------ |
@@ -2303,7 +2304,7 @@ The `threshold` option is deprecated, but if you want to use it, the module will
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------ | ----------------------------- | ------------------------------------------------------------------------ |
| `threshold`* | `1` | 在超過指定值時顯示工作數量。 |
| `symbol_threshold` | `1` | Show `symbol` if the job count is at least `symbol_threshold`. |
@@ -2315,7 +2316,7 @@ The `threshold` option is deprecated, but if you want to use it, the module will
*: This option is deprecated, please use the `number_threshold` and `symbol_threshold` options instead.
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --- | ------------------------------------ |
@@ -2346,7 +2347,7 @@ The `julia` module shows the currently installed version of [Julia](https://juli
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2357,7 +2358,7 @@ The `julia` module shows the currently installed version of [Julia](https://juli
| `style` | `'bold purple'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `julia` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -2384,7 +2385,7 @@ The `kotlin` module shows the currently installed version of [Kotlin](https://ko
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2396,7 +2397,7 @@ The `kotlin` module shows the currently installed version of [Kotlin](https://ko
| `kotlin_binary` | `'kotlin'` | Configures the kotlin binary that Starship executes when getting the version. |
| `disabled` | `false` | Disables the `kotlin` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -2443,7 +2444,7 @@ The `context_aliases` and `user_aliases` options are deprecated. Use `contexts`
:::
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ---------------------------------------------------- | --------------------------------------------------------------------- |
| `symbol` | `'☸ '` | A format string representing the symbol displayed before the Cluster. |
| `format` | `'[$symbol$context( \($namespace\))]($style) in '` | The format for the module. |
@@ -2471,7 +2472,7 @@ To customize the style of the module for specific environments, use the followin
Note that all regular expression are anchored with `^$` and so must match the whole string. The `*_pattern` regular expressions may contain capture groups, which can be referenced in the corresponding alias via `$name` and `$N` (see example below and the [rust Regex::replace() documentation](https://docs.rs/regex/latest/regex/struct.Regex.html#method.replace)).
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------------------- | ---------------------------------------- |
@@ -2545,7 +2546,7 @@ context_alias = "gke-$cluster"
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | ------- | ----------------------------- |
| `disabled` | `false` | 停用 `line_break` 模組,讓提示字元變成一行。 |
@@ -2564,14 +2565,14 @@ The `localip` module shows the IPv4 address of the primary network interface.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | ------------------------- | ------------------------------------------------------ |
| `ssh_only` | `true` | Only show IP address when connected to an SSH session. |
| `format` | `'[$localipv4]($style) '` | The format for the module. |
| `style` | `'bold yellow'` | 這個模組的風格。 |
| `disabled` | `true` | Disables the `localip` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------ | ----------------------------------- |
@@ -2601,7 +2602,7 @@ The `lua` module shows the currently installed version of [Lua](http://www.lua.o
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2613,7 +2614,7 @@ 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
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -2646,7 +2647,7 @@ format = 'via [🌕 $version](bold blue) '
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ----------- | ----------------------------------------------- | -------------------------- |
| `threshold` | `75` | 將記憶體使用量隱藏,除非使用量超過指定值。 |
| `format` | `'via $symbol [${ram}( \| ${swap})]($style) '` | The format for the module. |
@@ -2654,7 +2655,7 @@ format = 'via [🌕 $version](bold blue) '
| `style` | `'bold dimmed white'` | 這個模組的風格。 |
| `disabled` | `true` | 停用 `memory_usage` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ---------------- | ------------- | ------------------------------------------------------------------ |
@@ -2687,7 +2688,7 @@ By default the Meson project name is displayed, if `$MESON_DEVENV` is set.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ---------------------------------- | ----------------------------------------------------------------------------------------- |
| `truncation_length` | `2^32 - 1` | Truncates a project name to `N` graphemes. |
| `truncation_symbol` | `'…'` | The symbol used to indicate a project name was truncated. You can use `''` for no symbol. |
@@ -2696,7 +2697,7 @@ By default the Meson project name is displayed, if `$MESON_DEVENV` is set.
| `style` | `'blue bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `meson` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------- | ------------------------------------ |
@@ -2724,7 +2725,7 @@ The `hg_branch` module shows the active branch and topic of the repo in your cur
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------- |
| `symbol` | `' '` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
| `style` | `'bold purple'` | 這個模組的風格。 |
@@ -2733,7 +2734,7 @@ The `hg_branch` module shows the active branch and topic of the repo in your cur
| `truncation_symbol` | `'…'` | 用來指示分支名稱被縮減的符號。 |
| `disabled` | `true` | Disables the `hg_branch` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -2766,7 +2767,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2777,7 +2778,7 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| `style` | `'bold yellow'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `nim` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -2803,7 +2804,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------- | ---------------------------------------------- | --------------------------------------------------------------------- |
| `format` | `'via [$symbol$state( \($name\))]($style) '` | The format for the module. |
| `symbol` | `'❄️ '` | A format string representing the symbol of nix-shell. |
@@ -2814,7 +2815,7 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
| `disabled` | `false` | 停用 `nix_shell` 模組。 |
| `heuristic` | `false` | Attempts to detect new `nix shell`-style shells with a heuristic. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------- | ------------------------------------ |
@@ -2851,7 +2852,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2863,7 +2864,7 @@ The `nodejs` module shows the currently installed version of [Node.js](https://n
| `disabled` | `false` | 停用 `nodejs` 模組。 |
| `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
+### 變數
| 變數 | 範例 | 說明 |
| --------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -2896,7 +2897,7 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2909,7 +2910,7 @@ The `ocaml` module shows the currently installed version of [OCaml](https://ocam
| `style` | `'bold yellow'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `ocaml` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ---------------- | ------------ | ----------------------------------------------------------------- |
@@ -2936,7 +2937,7 @@ The `opa` module shows the currently installed version of the OPA tool. By defau
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -2947,7 +2948,7 @@ The `opa` module shows the currently installed version of the OPA tool. By defau
| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `opa` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -2972,14 +2973,14 @@ The `openstack` module shows the current OpenStack cloud and project. The module
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | ----------------------------------------------- | -------------------------------------------------------------- |
| `format` | `'on [$symbol$cloud(\($project\))]($style) '` | The format for the module. |
| `symbol` | `'☁️ '` | The symbol used before displaying the current OpenStack cloud. |
| `style` | `'bold yellow'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `openstack` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------ | ------------------------------------ |
@@ -3019,7 +3020,7 @@ The [os_info](https://lib.rs/crates/os_info) crate used by this module is known
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | --------------------- | ------------------------------------------------------ |
| `format` | `'[$symbol]($style)'` | The format for the module. |
| `style` | `'bold white'` | 這個模組的風格。 |
@@ -3074,7 +3075,7 @@ Unknown = "❓ "
Windows = "🪟 "
```
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------ | ------------------------------------------------------------------ |
@@ -3129,7 +3130,7 @@ The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'is [$symbol$version]($style) '` | The format for the module. |
| `symbol` | `'📦 '` | 顯示在套件的版本之前的符號。 |
@@ -3138,7 +3139,7 @@ The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並
| `display_private` | `false` | Enable displaying version for packages marked as private. |
| `disabled` | `false` | 停用 `package` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3169,7 +3170,7 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3180,7 +3181,7 @@ The `perl` module shows the currently installed version of [Perl](https://www.pe
| `style` | `'bold 149'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `perl` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --------- | ------------------------------------ |
@@ -3207,7 +3208,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3218,7 +3219,7 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| `style` | `'147 bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `php` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3243,7 +3244,7 @@ The `pijul_channel` module shows the active channel of the repo in your current
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | --------------------------------- | ------------------------------------------------------------------------------------ |
| `symbol` | `' '` | The symbol used before the pijul channel name of the repo in your current directory. |
| `style` | `'bold purple'` | 這個模組的風格。 |
@@ -3269,7 +3270,7 @@ By default the module will be shown if any of the following conditions are met:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($username@)$stack]($style) '` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3278,7 +3279,7 @@ By default the module will be shown if any of the following conditions are met:
| `search_upwards` | `true` | Enable discovery of pulumi config files in parent directories. |
| `disabled` | `false` | Disables the `pulumi` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------- | ------------------------------------ |
@@ -3319,7 +3320,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3330,7 +3331,7 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| `style` | `'bold white'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `purescript` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3369,7 +3370,7 @@ By default the module will be shown if any of the following conditions are met:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3391,7 +3392,7 @@ The default values and order for `python_binary` was chosen to first identify th
:::
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------------ | --------------- | ------------------------------------------ |
@@ -3452,7 +3453,7 @@ The `rlang` module shows the currently installed version of [R](https://www.r-pr
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3463,7 +3464,7 @@ The `rlang` module shows the currently installed version of [R](https://www.r-pr
| `detect_folders` | `['.Rproj.user']` | Which folders should trigger this module |
| `disabled` | `false` | Disables the `r` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------- | ------------- | ------------------------------------ |
@@ -3489,7 +3490,7 @@ The `raku` module shows the currently installed version of [Raku](https://www.ra
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version-$vm_version )]($style)'` | The format string for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3500,7 +3501,7 @@ The `raku` module shows the currently installed version of [Raku](https://www.ra
| `style` | `'bold 149'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `raku` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ---------- | ------ | ------------------------------------ |
@@ -3526,7 +3527,7 @@ By default the `red` module shows the currently installed version of [Red](https
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3537,7 +3538,7 @@ By default the `red` module shows the currently installed version of [Red](https
| `style` | `'red bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `red` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3569,7 +3570,7 @@ Starship gets the current Ruby version by running `ruby -v`.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3581,7 +3582,7 @@ Starship gets the current Ruby version by running `ruby -v`.
| `style` | `'bold red'` | 這個模組的風格。 |
| `disabled` | `false` | 停用 `ruby` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3609,7 +3610,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3620,7 +3621,7 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| `style` | `'bold red'` | 這個模組的風格。 |
| `disabled` | `false` | 停用 `rust` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ----------------- | -------------------------------------------- |
@@ -3651,7 +3652,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ---------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [${symbol}(${version} )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3662,7 +3663,7 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| `style` | `'red dimmed'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `scala` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3693,7 +3694,7 @@ The `shell` module shows an indicator for currently used shell.
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------ |
| `bash_indicator` | `'bsh'` | A format string used to represent bash. |
| `fish_indicator` | `'fsh'` | A format string used to represent fish. |
@@ -3711,7 +3712,7 @@ The `shell` module shows an indicator for currently used shell.
| `style` | `'white bold'` | 這個模組的風格。 |
| `disabled` | `true` | Disables the `shell` module. |
-### Variables
+### 變數
| 變數 | 預設 | 說明 |
| --------- | -- | ---------------------------------------------------------- |
@@ -3720,7 +3721,7 @@ The `shell` module shows an indicator for currently used shell.
*: This variable can only be used as a part of a style string
-### Examples
+### 範例
```toml
# ~/.config/starship.toml
@@ -3739,7 +3740,7 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| --------------- | ---------------------------- | ------------------------------------------------------------------- |
| `threshold` | `2` | Display threshold. |
| `format` | `'[$symbol$shlvl]($style) '` | The format for the module. |
@@ -3749,7 +3750,7 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int
| `style` | `'bold yellow'` | 這個模組的風格。 |
| `disabled` | `true` | Disables the `shlvl` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | --- | ------------------------------------ |
@@ -3790,14 +3791,14 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | -------------------------------- | ------------------------------------------------ |
| `format` | `'[$symbol\[$env\]]($style) '` | The format for the module. |
| `symbol` | `''` | A format string displayed before the image name. |
| `style` | `'bold dimmed blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `singularity` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------ | ------------------------------------ |
@@ -3824,7 +3825,7 @@ The `solidity` module shows the currently installed version of [Solidity](https:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${major}.${minor}.${patch}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -3836,7 +3837,7 @@ The `solidity` module shows the currently installed version of [Solidity](https:
| `style` | `'bold blue'` | 這個模組的風格。 |
| `disabled` | `false` | Disables this module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -3860,7 +3861,7 @@ The `spack` module shows the current [Spack](https://spack.readthedocs.io/en/lat
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `truncation_length` | `1` | The number of directories the environment path should be truncated to. `0` 表示不截斷 也請參考 [`directory`](#directory)模組 |
| `symbol` | `'🅢 '` | 環境名稱前使用的符號。 |
@@ -3868,7 +3869,7 @@ The `spack` module shows the current [Spack](https://spack.readthedocs.io/en/lat
| `format` | `'via [$symbol$environment]($style) '` | The format for the module. |
| `disabled` | `false` | Disables the `spack` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ----------- | ------------ | ------------------------------------ |
@@ -3899,7 +3900,7 @@ The `status` module displays the exit code of the previous command. If $success_
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| --------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `format` | `'[$symbol$status]($style) '` | The format of the module |
| `symbol` | `'❌'` | The symbol displayed on program error |
@@ -3917,7 +3918,7 @@ The `status` module displays the exit code of the previous command. If $success_
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
| `disabled` | `true` | Disables the `status` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
@@ -3960,7 +3961,7 @@ The `sudo` module displays if sudo credentials are currently cached. The module
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| --------------- | ------------------------ | ------------------------------------------------------- |
| `format` | `'[as $symbol]($style)'` | The format of the module |
| `symbol` | `'🧙 '` | The symbol displayed when credentials are cached |
@@ -3968,7 +3969,7 @@ The `sudo` module displays if sudo credentials are currently cached. The module
| `allow_windows` | `false` | Since windows has no default sudo, default is disabled. |
| `disabled` | `true` | Disables the `sudo` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -- | ------------------------------------ |
@@ -4006,7 +4007,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -4017,7 +4018,7 @@ By default the `swift` module shows the currently installed version of [Swift](h
| `style` | `'bold 202'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `swift` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -4053,7 +4054,7 @@ By default the module will be shown if any of the following conditions are met:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `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` |
@@ -4064,7 +4065,7 @@ By default the module will be shown if any of the following conditions are met:
| `style` | `'bold 105'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `terraform` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------- | ------------------------------------ |
@@ -4107,7 +4108,7 @@ format = '[🏎💨 $workspace]($style) '
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- |
| `format` | `'at [$time]($style) '` | The format string for the module. |
| `use_12hr` | `false` | 啟用 12 小時格式。 |
@@ -4119,7 +4120,7 @@ format = '[🏎💨 $workspace]($style) '
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
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------- | ----------------------------------- |
@@ -4152,7 +4153,7 @@ By default, the module will be shown if any of the following conditions are met:
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -4163,7 +4164,7 @@ By default, the module will be shown if any of the following conditions are met:
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `disabled` | `false` | Disables the `daml` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------------- | --------- | ----------------------------------------------- |
@@ -4191,7 +4192,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------- | ----------------------- | ------------------------------------------- |
| `style_root` | `'bold red'` | The style used when the user is root/admin. |
| `style_user` | `'bold yellow'` | 非 root 使用者時使用的風格。 |
@@ -4199,7 +4200,7 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
| `show_always` | `false` | 總是顯示 `username` 模組。 |
| `disabled` | `false` | 停用 `username` 模組。 |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| ------- | ------------ | ------------------------------------------------------------------------------------------- |
@@ -4227,7 +4228,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -4238,7 +4239,7 @@ The `vagrant` module shows the currently installed version of [Vagrant](https://
| `style` | `'cyan bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `vagrant` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ---------------- | ------------------------------------ |
@@ -4266,7 +4267,7 @@ The `vlang` module shows you your currently installed version of [V](https://vla
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -4277,7 +4278,7 @@ The `vlang` module shows you your currently installed version of [V](https://vla
| `style` | `'blue bold'` | 這個模組的風格。 |
| `disabled` | `false` | Disables the `vlang` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------ | ------------------------------------ |
@@ -4299,14 +4300,14 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ---------- | -------------------------------- | ------------------------------------------------------ |
| `symbol` | `''` | The symbol used before displaying the repository name. |
| `style` | `'bold yellow'` | 這個模組的風格。 |
| `format` | `'vcsh [$symbol$repo]($style) '` | The format for the module. |
| `disabled` | `false` | Disables the `vcsh` module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | ------------------------------------------- | ------------------------------------ |
@@ -4333,7 +4334,7 @@ By default the `zig` module shows the currently installed version of [Zig](https
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
@@ -4344,7 +4345,7 @@ By default the `zig` module shows the currently installed version of [Zig](https
| `detect_files` | `[]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
-### Variables
+### 變數
| 變數 | 範例 | 說明 |
| --------- | -------- | ------------------------------------ |
@@ -4403,7 +4404,7 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
### 選項
-| Option | 預設 | 說明 |
+| 選項 | 預設 | 說明 |
| ------------------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `command` | `''` | The command whose output should be printed. The command will be passed on stdin to the shell. |
| `when` | `false` | Either a boolean value (`true` or `false`, without quotes) or a string shell command used as a condition to show the module. In case of a string, the module will be shown if the command returns a `0` status code. |
@@ -4421,7 +4422,7 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
| `use_stdin` | | An optional boolean value that overrides whether commands should be forwarded to the shell via the standard input or as an argument. If unset standard input is used by default, unless the shell does not support it (cmd, nushell). Setting this disables shell-specific argument handling. |
| `ignore_timeout` | `false` | Ignore global `command_timeout` setting and keep running external commands, no matter how long they take. |
-### Variables
+### 變數
| 變數 | 說明 |
| --------- | -------------------------------------- |
diff --git a/docs/zh-TW/migrating-to-0.45.0/README.md b/docs/zh-TW/migrating-to-0.45.0/README.md
index 639fbcf8..410ad6d2 100644
--- a/docs/zh-TW/migrating-to-0.45.0/README.md
+++ b/docs/zh-TW/migrating-to-0.45.0/README.md
@@ -1,16 +1,16 @@
-# Migrating to v0.45.0
+# 遷移版本至 v0.45.0
-Starship v0.45.0 is a release containing breaking changes, in preparation for the big v1.0.0. We have made some major changes around how configuration is done on the prompt, to allow for a greater degree of customization.
+Starship v0.45.0 包含了破壞性的變更,這個變更是為了大的 v1.0.0. 做準備 我們圍繞著如何在提示上完成設定進行了一些重大的更改,以允許更大程度的客製化。
-This guide is intended to walk you through the breaking changes.
+這個指南目的在引導您走過一次這些破壞性的變更
-## `prompt_order` has been replaced by a root-level `format`
+## `prompt_order` 已經被根層級的 `format` 所取代
-Previously to v0.45.0, `prompt_order` would accept an array of module names in the order which they should be rendered by Starship.
+v0.45.0 以前, `prompt_order` 將會依照 Starship 渲染的順序來接受模組名稱的陣列
-Starship v0.45.0 instead accepts a `format` value, allowing for customization of the prompt outside of the modules themselves.
+取而代之的是 Starship v0.45.0 會接受 `format` 值,這個值允許在模組本身之外自訂提示
-**Example pre-v0.45.0 configuration**
+**pre-v0.45.0 的設定範例**
```toml
prompt_order = [
@@ -31,7 +31,7 @@ prompt_order = [
]
```
-**Example v0.45.0 configuration**
+** v0.45.0 的設定範例**
```toml
format = """\
@@ -52,20 +52,20 @@ format = """\
"""
```
-## Module `prefix` and `suffix` have been replaced by `format`
+## 模組 `prefix` 以及 `suffix` 已經被 `format` 所取代
-Previously to v0.45.0, some modules would accept `prefix` and/or `suffix` in order to stylize the way that modules are rendered.
+v0.45.0 版之前,有些模組會接受 `prefix` 且/或 `suffix`,以便使得模組呈現的方式更為風格化
-Starship v0.45.0 instead accepts a `format` value, allowing for further customization of how modules are rendered. Instead of defining a prefix and suffix for the context-based variables, the variables can now be substituted from within a format string, which represents the module's output.
+Starship v0.45.0 取而代之的接受了 `format` 的值,允許進一步客製模組的渲染方式 現在可以從表示模組輸出的格式字串中取代變數,而不是基於上下文的變數定義前綴以及後綴
-**Example pre-v0.45.0 configuration**
+**pre-v0.45.0 的設定範例**
```toml
[cmd_duration]
prefix = "took "
```
-**Example v0.45.0 configuration**
+** v0.45.0 的設定範例**
```toml
[cmd_duration]
@@ -74,18 +74,18 @@ prefix = "took "
format = "took [$duration]($style) "
```
-### Affected Modules
+### 受影響的模組
#### 字元
-| Removed Property | Replacement |
+| 已移除的屬性 | 取代屬性 |
| ----------------------- | ---------------- |
| `symbol` | `success_symbol` |
| `use_symbol_for_status` | `error_symbol` |
| `style_success` | `success_symbol` |
| `style_failure` | `error_symbol` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[character]
@@ -98,26 +98,26 @@ format = "took [$duration]($style) "
++ vicmd_symbol = "[❮](bold green)"
```
-Previously, the `use_symbol_for_status` property was used to configure the prompt to show the `error_symbol` when the last command resulted in a non-zero status code.
+在之前 `use_symbol_for_status` 屬性會被用於設定提示字元在最後一個指令執行的結果為非 0 的狀態代碼時,會顯示 `error_symbol`
-With the release of v0.45.0, we now always use `error_symbol` after non-zero status codes, unifying `use_symbol_for_status` and `error_symbol` properties.
+隨著 v0.45.0 版本的發布,我們現在都只會在非零狀態代碼之後使用 `error_symbol`,統一 `use_symbol_for_status` 以及 `error_symbol` 屬性
-To configure the prompt to use the older `use_symbol_for_status = true` configuration, add the following to your config file:
+如果要設定提示字元使用舊的 `use_symbol_for_status = true` 設定,請將以下設定加入您的設定檔案中:
```toml
[character]
error_symbol = "[✖](bold red)"
```
-_Note:_ The `character` element automatically adds a space after, so unlike the other `format` strings, we specifically do not add one in the above examples.
+_Note:_ ,`character` 元素會自動附加一個空格, 所以與設定值 `format` 字串不同, 我們上面的例子中刻意沒有加入這個設定
#### 指令持續時間
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `prefix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[cmd_duration]
@@ -127,11 +127,11 @@ _Note:_ The `character` element automatically adds a space after, so unlike the
#### 資料夾
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `prefix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[directory]
@@ -141,12 +141,12 @@ _Note:_ The `character` element automatically adds a space after, so unlike the
#### 環境變數
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[env_var]
@@ -155,14 +155,14 @@ _Note:_ The `character` element automatically adds a space after, so unlike the
++ format = "with [$env_value]($style) "
```
-#### Git Commit
+#### Git 提交
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[git_commit]
@@ -171,15 +171,15 @@ _Note:_ The `character` element automatically adds a space after, so unlike the
++ format = '[\($hash\)]($style) '
```
-#### Git Status
+#### Git 狀態
-| Removed Property | Replacement |
-| ----------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
-| `show_sync_count` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| ----------------- | -------- |
+| `prefix` | `format` |
+| `suffix` | `format` |
+| `show_sync_count` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[git_status]
@@ -189,11 +189,11 @@ _Note:_ The `character` element automatically adds a space after, so unlike the
++ format = '([\[$all_status$ahead_behind\]]($style) )'
```
-Previously, the `show_sync_count` property was used to configure the prompt to show the number of commits the branch was ahead or behind the remote branch.
+在之前的版本 `show_sync_count` 屬性是被用於設定提示字元顯示分之在遠端分支之前或之後所 commit 的數量
-With the release of v0.45.0, this has been replaced with three separate properties, `ahead`, `behind`, and `diverged`.
+在 v0.45.0 的版本,這個屬性已經被三個分開的屬性所取代,分別是 `ahead`、`behind` 以及 `diverged`
-To configure the prompt to use the older `show_sync_count = true` configuration, set the following to your config file:
+為了能夠讓題是字元能夠使用舊的 `show_sync_count = true` 設定,請將以下內容設定至您的設定檔當中
```toml
[git_status]
@@ -204,12 +204,12 @@ behind = "⇣${count}"
#### 主機名稱
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[hostname]
@@ -220,13 +220,13 @@ behind = "⇣${count}"
#### Singularity
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `label` | `format` |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `label` | `format` |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[singularity]
@@ -237,11 +237,11 @@ behind = "⇣${count}"
#### 時間
-| Removed Property | Replacement |
-| ---------------- | ------------- |
-| `format` | `time_format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | ------------- |
+| `format` | `time_format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[time]
@@ -250,14 +250,14 @@ behind = "⇣${count}"
++ format = "at 🕙[$time]($style) "
```
-#### Custom Commands
+#### 自訂指令
-| Removed Property | Replacement |
-| ---------------- | ----------- |
-| `prefix` | `format` |
-| `suffix` | `format` |
+| 已移除的屬性 | 取代屬性 |
+| -------- | -------- |
+| `prefix` | `format` |
+| `suffix` | `format` |
-**Changes to the Default Configuration**
+**預設設定的異動**
```diff
[custom.example]
From 5fcada26309382c0c9124162ab83e58ad397c26a Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 24 Feb 2024 11:00:16 +0000
Subject: [PATCH 155/651] build(deps): update rust crate nix to 0.28.0
---
Cargo.lock | 17 ++++++++++++-----
Cargo.toml | 2 +-
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index f917930b..40e67346 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -392,6 +392,12 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
+[[package]]
+name = "cfg_aliases"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
+
[[package]]
name = "chrono"
version = "0.4.34"
@@ -1758,9 +1764,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "libc"
-version = "0.2.152"
+version = "0.2.153"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7"
+checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
[[package]]
name = "libredox"
@@ -1954,12 +1960,13 @@ dependencies = [
[[package]]
name = "nix"
-version = "0.27.1"
+version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"
+checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
dependencies = [
"bitflags 2.4.1",
"cfg-if",
+ "cfg_aliases",
"libc",
]
@@ -2852,7 +2859,7 @@ dependencies = [
"indexmap 2.2.3",
"log",
"mockall",
- "nix 0.27.1",
+ "nix 0.28.0",
"notify-rust",
"nu-ansi-term",
"once_cell",
diff --git a/Cargo.toml b/Cargo.toml
index f5f8db84..1a9ddc1b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -114,7 +114,7 @@ features = [
]
[target.'cfg(not(windows))'.dependencies]
-nix = { version = "0.27.1", default-features = false, features = ["feature", "fs", "user"] }
+nix = { version = "0.28.0", default-features = false, features = ["feature", "fs", "user"] }
[build-dependencies]
shadow-rs = { version = "0.26.1", default-features = false }
From 560c60b8f66016531b2a7119c4372c74fba47da5 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 25 Feb 2024 18:20:16 +0000
Subject: [PATCH 156/651] build(deps): update rust crate gix to 0.59.0
---
Cargo.lock | 153 ++++++++++++++++++++++++++++++++---------------------
Cargo.toml | 2 +-
2 files changed, 95 insertions(+), 60 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 40e67346..260c32b4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,6 +8,18 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
+[[package]]
+name = "ahash"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d713b3834d76b85304d4d525563c1276e2e30dc97cc67bfb4585a4a29fc2c89f"
+dependencies = [
+ "cfg-if",
+ "once_cell",
+ "version_check",
+ "zerocopy",
+]
+
[[package]]
name = "aho-corasick"
version = "1.1.2"
@@ -17,6 +29,12 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "allocator-api2"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
+
[[package]]
name = "android-tzdata"
version = "0.1.1"
@@ -350,15 +368,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "btoi"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dd6407f73a9b8b6162d8a2ef999fe6afd7cc15902ebf42c5cd296addf17e0ad"
-dependencies = [
- "num-traits",
-]
-
[[package]]
name = "bumpalo"
version = "3.14.0"
@@ -1052,9 +1061,9 @@ dependencies = [
[[package]]
name = "gix"
-version = "0.58.0"
+version = "0.59.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "31887c304d9a935f3e5494fb5d6a0106c34e965168ec0db9b457424eedd0c741"
+checksum = "3888ed07a42651c02060cc35eb0468f4eb99f617b1c02afc990d473b5697ba90"
dependencies = [
"gix-actor",
"gix-commitgraph",
@@ -1093,16 +1102,16 @@ dependencies = [
[[package]]
name = "gix-actor"
-version = "0.30.0"
+version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a7bb9fad6125c81372987c06469601d37e1a2d421511adb69971b9083517a8a"
+checksum = "a033a3bac3c31f7afc8aa713677e6296bb4d8801dc4882b8e4e6a163af8611bb"
dependencies = [
"bstr",
- "btoi",
"gix-date",
+ "gix-utils",
"itoa",
"thiserror",
- "winnow 0.5.31",
+ "winnow 0.6.0",
]
[[package]]
@@ -1125,9 +1134,9 @@ dependencies = [
[[package]]
name = "gix-commitgraph"
-version = "0.24.0"
+version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "82dbd7fb959862e3df2583331f0ad032ac93533e8a52f1b0694bc517f5d292bc"
+checksum = "b27bf9d74c34eca0c5c676087b7309ea5b362809ebcaf7eb90c38b547dac3e9f"
dependencies = [
"bstr",
"gix-chunk",
@@ -1139,9 +1148,9 @@ dependencies = [
[[package]]
name = "gix-config"
-version = "0.34.0"
+version = "0.35.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e62bf2073b6ce3921ffa6d8326f645f30eec5fc4a8e8a4bc0fcb721a2f3f69dc"
+checksum = "f184a0b16d8872494b58c0f288996ec93b81d8df3a0f364a29e95a07fa61408d"
dependencies = [
"bstr",
"gix-config-value",
@@ -1155,14 +1164,14 @@ dependencies = [
"smallvec",
"thiserror",
"unicode-bom",
- "winnow 0.5.31",
+ "winnow 0.6.0",
]
[[package]]
name = "gix-config-value"
-version = "0.14.4"
+version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b8a1e7bfb37a46ed0b8468db37a6d8a0a61d56bdbe4603ae492cb322e5f3958"
+checksum = "74ab5d22bc21840f4be0ba2e78df947ba14d8ba6999ea798f86b5bdb999edd0c"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1173,9 +1182,9 @@ dependencies = [
[[package]]
name = "gix-date"
-version = "0.8.3"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb7f3dfb72bebe3449b5e642be64e3c6ccbe9821c8b8f19f487cf5bfbbf4067e"
+checksum = "17077f0870ac12b55d2eed9cb3f56549e40def514c8a783a0a79177a8a76b7c5"
dependencies = [
"bstr",
"itoa",
@@ -1185,9 +1194,9 @@ dependencies = [
[[package]]
name = "gix-diff"
-version = "0.40.0"
+version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cbdcb5e49c4b9729dd1c361040ae5c3cd7c497b2260b18c954f62db3a63e98cf"
+checksum = "3a3ebedca270c2a5144548cfc22902ad18499b8db0e67c6e96b0cbeb1530f129"
dependencies = [
"bstr",
"gix-hash",
@@ -1197,9 +1206,9 @@ dependencies = [
[[package]]
name = "gix-discover"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4669218f3ec0cbbf8f16857b32200890f8ca585f36f5817242e4115fe4551af"
+checksum = "f740b01565662e5bca9cc454d70c4baf5d734a7eb0e0089786e1db8f3a314f6c"
dependencies = [
"bstr",
"dunce",
@@ -1246,9 +1255,9 @@ dependencies = [
[[package]]
name = "gix-glob"
-version = "0.16.0"
+version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4965a1d06d0ab84a29d4a67697a97352ab14ae1da821084e5afb1fd6d8191ca0"
+checksum = "e7c050a43e4e5601c99af40d7613957698e7a90a5b33f2a319c3842f9f9dc48b"
dependencies = [
"bitflags 2.4.1",
"bstr",
@@ -1279,14 +1288,14 @@ dependencies = [
[[package]]
name = "gix-index"
-version = "0.29.0"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d7152181ba8f0a3addc5075dd612cea31fc3e252b29c8be8c45f4892bf87426"
+checksum = "a1f914963133b6bc2ba81db86facae9a675ba83c38bae2f98ac9f8c0643a8aca"
dependencies = [
"bitflags 2.4.1",
"bstr",
- "btoi",
"filetime",
+ "fnv",
"gix-bitmap",
"gix-features",
"gix-fs",
@@ -1294,6 +1303,8 @@ dependencies = [
"gix-lock",
"gix-object",
"gix-traverse",
+ "gix-utils",
+ "hashbrown 0.14.3",
"itoa",
"libc",
"memmap2",
@@ -1326,28 +1337,28 @@ dependencies = [
[[package]]
name = "gix-object"
-version = "0.41.0"
+version = "0.41.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "693ce9d30741506cb082ef2d8b797415b48e032cce0ab23eff894c19a7e4777b"
+checksum = "dfe92360506e7228240ee477fd440b82f071d5bb57fb988d7ed8ec17ba348631"
dependencies = [
"bstr",
- "btoi",
"gix-actor",
"gix-date",
"gix-features",
"gix-hash",
+ "gix-utils",
"gix-validate",
"itoa",
"smallvec",
"thiserror",
- "winnow 0.5.31",
+ "winnow 0.6.0",
]
[[package]]
name = "gix-odb"
-version = "0.57.0"
+version = "0.58.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ba2fa9e81f2461b78b4d81a807867667326c84cdab48e0aed7b73a593aa1be4"
+checksum = "a0c84a97c644e99bb6178a867320862597f3ced3b22bd46948f31fcf4990f8a8"
dependencies = [
"arc-swap",
"gix-date",
@@ -1365,9 +1376,9 @@ dependencies = [
[[package]]
name = "gix-pack"
-version = "0.47.0"
+version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8da5f3e78c96b76c4e6fe5e8e06b76221e4a0ee9a255aa935ed1fdf68988dfd8"
+checksum = "bc338331abdf961c6cd19e77ef615fff62cf5da6551a3e9e8042fe621a52ac26"
dependencies = [
"clru",
"gix-chunk",
@@ -1386,9 +1397,9 @@ dependencies = [
[[package]]
name = "gix-path"
-version = "0.10.4"
+version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14a6282621aed1becc3f83d64099a564b3b9063f22783d9a87ea502a3e9f2e40"
+checksum = "69e0b521a5c345b7cd6a81e3e6f634407360a038c8b74ba14c621124304251b8"
dependencies = [
"bstr",
"gix-trace",
@@ -1399,20 +1410,20 @@ dependencies = [
[[package]]
name = "gix-quote"
-version = "0.4.10"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f7dc10303d73a960d10fb82f81188b036ac3e6b11b5795b20b1a60b51d1321f"
+checksum = "4d1b102957d975c6eb56c2b7ad9ac7f26d117299b910812b2e9bf086ec43496d"
dependencies = [
"bstr",
- "btoi",
+ "gix-utils",
"thiserror",
]
[[package]]
name = "gix-ref"
-version = "0.41.0"
+version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5818958994ad7879fa566f5441ebcc48f0926aa027b28948e6fbf6578894dc31"
+checksum = "745f66ecfae5d6478c6f6018a556b5aa7567fcbd5781894ade9d4d0f173380aa"
dependencies = [
"gix-actor",
"gix-date",
@@ -1427,14 +1438,14 @@ dependencies = [
"gix-validate",
"memmap2",
"thiserror",
- "winnow 0.5.31",
+ "winnow 0.6.0",
]
[[package]]
name = "gix-refspec"
-version = "0.22.0"
+version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "613aa4d93034c5791d13bdc635e530f4ddab1412ddfb4a8215f76213177b61c7"
+checksum = "bf9c85581664f38684b7463e133e5b4058992ee7a9f71642289d01f5c5dd2dec"
dependencies = [
"bstr",
"gix-hash",
@@ -1446,9 +1457,9 @@ dependencies = [
[[package]]
name = "gix-revision"
-version = "0.26.0"
+version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "288f6549d7666db74dc3f169a9a333694fc28ecd2f5aa7b2c979c89eb556751a"
+checksum = "8b1d950b5926e7d2a6b84e5ba2955553b086c8aae843239004bec58526e2cf10"
dependencies = [
"bstr",
"gix-date",
@@ -1477,9 +1488,9 @@ dependencies = [
[[package]]
name = "gix-sec"
-version = "0.10.4"
+version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8d9bf462feaf05f2121cba7399dbc6c34d88a9cad58fc1e95027791d6a3c6d2"
+checksum = "022592a0334bdf77c18c06e12a7c0eaff28845c37e73c51a3e37d56dd495fb35"
dependencies = [
"bitflags 2.4.1",
"gix-path",
@@ -1524,9 +1535,9 @@ dependencies = [
[[package]]
name = "gix-url"
-version = "0.27.0"
+version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26f1981ecc700f4fd73ae62b9ca2da7c8816c8fd267f0185e3f8c21e967984ac"
+checksum = "34db38a818cda121a8b9fea119e1136ba7fb4021b89f30a3449e9873bff84fe8"
dependencies = [
"bstr",
"gix-features",
@@ -1538,9 +1549,9 @@ dependencies = [
[[package]]
name = "gix-utils"
-version = "0.1.9"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56e839f3d0798b296411263da6bee780a176ef8008a5dfc31287f7eda9266ab8"
+checksum = "60157a15b9f14b11af1c6817ad7a93b10b50b4e5136d98a127c46a37ff16eeb6"
dependencies = [
"fastrand 2.0.1",
"unicode-normalization",
@@ -1579,6 +1590,10 @@ name = "hashbrown"
version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
+dependencies = [
+ "ahash",
+ "allocator-api2",
+]
[[package]]
name = "heck"
@@ -3778,6 +3793,26 @@ dependencies = [
"zvariant",
]
+[[package]]
+name = "zerocopy"
+version = "0.7.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
+dependencies = [
+ "zerocopy-derive",
+]
+
+[[package]]
+name = "zerocopy-derive"
+version = "0.7.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.46",
+]
+
[[package]]
name = "zvariant"
version = "3.15.0"
diff --git a/Cargo.toml b/Cargo.toml
index 1a9ddc1b..eef4dc82 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,7 +49,7 @@ dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
-gix = { version = "0.58.0", default-features = false, features = ["max-performance-safe", "revision"] }
+gix = { version = "0.59.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
indexmap = { version = "2.2.3", features = ["serde"] }
log = { version = "0.4.20", features = ["std"] }
From aaaf3d82e8391140573f7974aa619bb250cd2402 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 26 Feb 2024 01:25:16 +0000
Subject: [PATCH 157/651] build(deps): update dprint plugins
---
.dprint.json | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.dprint.json b/.dprint.json
index 1dced25c..1ff7dd68 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -25,9 +25,9 @@
"target/"
],
"plugins": [
- "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.89.1/plugin.wasm",
- "https://github.com/dprint/dprint-plugin-json/releases/download/0.19.1/plugin.wasm",
- "https://github.com/dprint/dprint-plugin-markdown/releases/download/0.16.3/plugin.wasm",
- "https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.0/plugin.wasm"
+ "https://github.com/dprint/dprint-plugin-typescript/releases/download/0.89.3/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-json/releases/download/0.19.2/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-markdown/releases/download/0.16.4/plugin.wasm",
+ "https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.1/plugin.wasm"
]
}
From 6a96e84a15e3ea598356e4fcad23ac4b2690dd1e Mon Sep 17 00:00:00 2001
From: Fraser Li
Date: Mon, 26 Feb 2024 22:21:00 +1100
Subject: [PATCH 158/651] fix(git_branch): fall back to "HEAD" when there is no
current branch (#5768)
* fix(git_branch): fall back to "HEAD" when there is no current branch
* test(git_branch): add test for branch fallback on detached HEAD
---
src/modules/git_branch.rs | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/src/modules/git_branch.rs b/src/modules/git_branch.rs
index f57b8657..cda4065c 100644
--- a/src/modules/git_branch.rs
+++ b/src/modules/git_branch.rs
@@ -30,13 +30,13 @@ pub fn module<'a>(context: &'a Context) -> Option> {
return None;
}
- let branch_name = repo.branch.as_ref()?;
+ let branch_name = repo.branch.as_deref().unwrap_or("HEAD");
let mut graphemes: Vec<&str> = branch_name.graphemes(true).collect();
if config
.ignore_branches
.iter()
- .any(|ignored| branch_name.eq(ignored))
+ .any(|&ignored| branch_name.eq(ignored))
{
return None;
}
@@ -428,6 +428,29 @@ mod tests {
remote_dir.close()
}
+ #[test]
+ fn test_branch_fallback_on_detached() -> io::Result<()> {
+ let repo_dir = fixture_repo(FixtureProvider::Git)?;
+
+ create_command("git")?
+ .args(["checkout", "@~1"])
+ .current_dir(repo_dir.path())
+ .output()?;
+
+ let actual = ModuleRenderer::new("git_branch")
+ .config(toml::toml! {
+ [git_branch]
+ format = "$branch"
+ })
+ .path(repo_dir.path())
+ .collect();
+
+ let expected = Some("HEAD".into());
+
+ assert_eq!(expected, actual);
+ repo_dir.close()
+ }
+
// This test is not possible until we switch to `git status --porcelain`
// where we can mock the env for the specific git process. This is because
// git2 does not care about our mocking and when we set the real `GIT_DIR`
From c3e078cbf3e3e0dd3e82659418c65f95e5282382 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 26 Feb 2024 23:17:05 +0000
Subject: [PATCH 159/651] build(deps): update rust crate tempfile to 3.10.1
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 260c32b4..9d8fd10b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2990,9 +2990,9 @@ dependencies = [
[[package]]
name = "tempfile"
-version = "3.10.0"
+version = "3.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67"
+checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1"
dependencies = [
"cfg-if",
"fastrand 2.0.1",
diff --git a/Cargo.toml b/Cargo.toml
index eef4dc82..a8276ee0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -125,7 +125,7 @@ winres = "0.1.12"
[dev-dependencies]
mockall = "0.12"
-tempfile = "3.10.0"
+tempfile = "3.10.1"
[profile.release]
codegen-units = 1
From f505ceb757fde14aa3c3fa778610e50126a8f646 Mon Sep 17 00:00:00 2001
From: nataziel <114114079+nataziel@users.noreply.github.com>
Date: Tue, 27 Feb 2024 18:20:32 +1000
Subject: [PATCH 160/651] docs(preset): add Jetpack to presets/README.md
(#5797)
---
docs/presets/README.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/presets/README.md b/docs/presets/README.md
index 6d6fbd9b..1259b884 100644
--- a/docs/presets/README.md
+++ b/docs/presets/README.md
@@ -74,3 +74,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
From 3727754c21a77d5378f095d9cade76a139c5ac7b Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 27 Feb 2024 22:26:48 +0000
Subject: [PATCH 161/651] build(deps): update rust crate windows to 0.54.0
---
Cargo.lock | 12 ++++++------
Cargo.toml | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 9d8fd10b..1d07bc4b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2908,7 +2908,7 @@ dependencies = [
"urlencoding",
"versions",
"which",
- "windows 0.53.0",
+ "windows 0.54.0",
"winres",
"yaml-rust",
]
@@ -3513,11 +3513,11 @@ dependencies = [
[[package]]
name = "windows"
-version = "0.53.0"
+version = "0.54.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "efc5cf48f83140dcaab716eeaea345f9e93d0018fb81162753a3f76c3397b538"
+checksum = "9252e5725dbed82865af151df558e754e4a3c2c30818359eb17465f1346a1b49"
dependencies = [
- "windows-core 0.53.0",
+ "windows-core 0.54.0",
"windows-targets 0.52.3",
]
@@ -3532,9 +3532,9 @@ dependencies = [
[[package]]
name = "windows-core"
-version = "0.53.0"
+version = "0.54.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dcc5b895a6377f1ab9fa55acedab1fd5ac0db66ad1e6c7f47e28a22e446a5dd"
+checksum = "12661b9c89351d684a50a8a643ce5f608e20243b9fb84687800163429f161d65"
dependencies = [
"windows-result",
"windows-targets 0.52.3",
diff --git a/Cargo.toml b/Cargo.toml
index a8276ee0..99e17ac7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -104,7 +104,7 @@ features = ["preserve_order", "indexmap2"]
deelevate = "0.2.0"
[target.'cfg(windows)'.dependencies.windows]
-version = "0.53.0"
+version = "0.54.0"
features = [
"Win32_Foundation",
"Win32_UI_Shell",
From 28eb8c8e115170feda5d7fd2726b93896a67610e Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 28 Feb 2024 01:44:46 +0000
Subject: [PATCH 162/651] build(deps): update rust crate rayon to 1.9.0
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 1d07bc4b..db0f3f62 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2481,9 +2481,9 @@ dependencies = [
[[package]]
name = "rayon"
-version = "1.8.1"
+version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa7237101a77a10773db45d62004a272517633fbcc3df19d96455ede1122e051"
+checksum = "e4963ed1bc86e4f3ee217022bd855b297cef07fb9eac5dfa1f788b220b49b3bd"
dependencies = [
"either",
"rayon-core",
diff --git a/Cargo.toml b/Cargo.toml
index 99e17ac7..48947022 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -66,7 +66,7 @@ pest = "2.7.7"
pest_derive = "2.7.7"
quick-xml = "0.31.0"
rand = "0.8.5"
-rayon = "1.8.1"
+rayon = "1.9.0"
regex = { version = "1.10.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.20.0"
semver = "1.0.22"
From 9a06fc770870d27826052c5352e4573f85362826 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 28 Feb 2024 06:52:16 +0000
Subject: [PATCH 163/651] build(deps): update rust crate open to 5.0.2
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index db0f3f62..be501249 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2099,9 +2099,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "open"
-version = "5.0.1"
+version = "5.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90878fb664448b54c4e592455ad02831e23a3f7e157374a8b95654731aac7349"
+checksum = "eedff767bc49d336bff300224f73307ae36963c843e38dc9312a22171b012cbc"
dependencies = [
"is-wsl",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index 48947022..6b7b5a8f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -58,7 +58,7 @@ log = { version = "0.4.20", features = ["std"] }
notify-rust = { version = "4.10.0", optional = true }
nu-ansi-term = "0.50.0"
once_cell = "1.19.0"
-open = "5.0.1"
+open = "5.0.2"
# update os module config and tests when upgrading os_info
os_info = "3.7.0"
path-slash = "0.2.1"
From 49b5e1cfb1733c4a9c97f60400d85c79a1e01c24 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 29 Feb 2024 01:11:04 +0000
Subject: [PATCH 164/651] build(deps): update rust crate log to 0.4.21
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index be501249..f66f1ba1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1845,9 +1845,9 @@ dependencies = [
[[package]]
name = "log"
-version = "0.4.20"
+version = "0.4.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
+checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
[[package]]
name = "mac-notification-sys"
diff --git a/Cargo.toml b/Cargo.toml
index 6b7b5a8f..a829e655 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -52,7 +52,7 @@ gethostname = "0.4.3"
gix = { version = "0.59.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
indexmap = { version = "2.2.3", features = ["serde"] }
-log = { version = "0.4.20", features = ["std"] }
+log = { version = "0.4.21", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
notify-rust = { version = "4.10.0", optional = true }
From ef8171a3d5d2ce86118db853f3d079c6f16fb71f Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 29 Feb 2024 04:12:32 +0000
Subject: [PATCH 165/651] build(deps): update rust crate indexmap to 2.2.4
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index f66f1ba1..c9e3b5aa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1668,9 +1668,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.2.3"
+version = "2.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177"
+checksum = "967d6dd42f16dbf0eb8040cb9e477933562684d3918f7d253f2ff9087fb3e7a3"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@@ -2608,7 +2608,7 @@ checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
- "indexmap 2.2.3",
+ "indexmap 2.2.4",
"schemars_derive",
"serde",
"serde_json",
@@ -2871,7 +2871,7 @@ dependencies = [
"gix-features",
"guess_host_triple",
"home",
- "indexmap 2.2.3",
+ "indexmap 2.2.4",
"log",
"mockall",
"nix 0.28.0",
@@ -3160,7 +3160,7 @@ version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290"
dependencies = [
- "indexmap 2.2.3",
+ "indexmap 2.2.4",
"serde",
"serde_spanned",
"toml_datetime",
@@ -3182,7 +3182,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.2.3",
+ "indexmap 2.2.4",
"toml_datetime",
"winnow 0.5.31",
]
@@ -3193,7 +3193,7 @@ version = "0.22.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6"
dependencies = [
- "indexmap 2.2.3",
+ "indexmap 2.2.4",
"serde",
"serde_spanned",
"toml_datetime",
diff --git a/Cargo.toml b/Cargo.toml
index a829e655..04b4f693 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,7 +51,7 @@ gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.59.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
-indexmap = { version = "2.2.3", features = ["serde"] }
+indexmap = { version = "2.2.4", features = ["serde"] }
log = { version = "0.4.21", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
From f38bf826a422f5fa1acde252fa175a2076d05bef Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 29 Feb 2024 20:44:46 +0000
Subject: [PATCH 166/651] build(deps): update rust crate indexmap to 2.2.5
---
Cargo.lock | 14 +++++++-------
Cargo.toml | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index c9e3b5aa..f15703b2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1668,9 +1668,9 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.2.4"
+version = "2.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "967d6dd42f16dbf0eb8040cb9e477933562684d3918f7d253f2ff9087fb3e7a3"
+checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@@ -2608,7 +2608,7 @@ checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29"
dependencies = [
"dyn-clone",
"indexmap 1.9.3",
- "indexmap 2.2.4",
+ "indexmap 2.2.5",
"schemars_derive",
"serde",
"serde_json",
@@ -2871,7 +2871,7 @@ dependencies = [
"gix-features",
"guess_host_triple",
"home",
- "indexmap 2.2.4",
+ "indexmap 2.2.5",
"log",
"mockall",
"nix 0.28.0",
@@ -3160,7 +3160,7 @@ version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290"
dependencies = [
- "indexmap 2.2.4",
+ "indexmap 2.2.5",
"serde",
"serde_spanned",
"toml_datetime",
@@ -3182,7 +3182,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.2.4",
+ "indexmap 2.2.5",
"toml_datetime",
"winnow 0.5.31",
]
@@ -3193,7 +3193,7 @@ version = "0.22.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6"
dependencies = [
- "indexmap 2.2.4",
+ "indexmap 2.2.5",
"serde",
"serde_spanned",
"toml_datetime",
diff --git a/Cargo.toml b/Cargo.toml
index 04b4f693..8b52cff7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -51,7 +51,7 @@ gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.59.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.0", optional = true }
-indexmap = { version = "2.2.4", features = ["serde"] }
+indexmap = { version = "2.2.5", features = ["serde"] }
log = { version = "0.4.21", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
From a9713e726e142bea475d31d024cb96a178fa912e Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 2 Mar 2024 14:22:33 +0000
Subject: [PATCH 167/651] build(deps): update pest crates to 2.7.8
---
Cargo.lock | 16 ++++++++--------
Cargo.toml | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index f15703b2..dc98462d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2207,9 +2207,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]]
name = "pest"
-version = "2.7.7"
+version = "2.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219c0dcc30b6a27553f9cc242972b67f75b60eb0db71f0b5462f38b058c41546"
+checksum = "56f8023d0fb78c8e03784ea1c7f3fa36e68a723138990b8d5a47d916b651e7a8"
dependencies = [
"memchr",
"thiserror",
@@ -2218,9 +2218,9 @@ dependencies = [
[[package]]
name = "pest_derive"
-version = "2.7.7"
+version = "2.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22e1288dbd7786462961e69bfd4df7848c1e37e8b74303dbdab82c3a9cdd2809"
+checksum = "b0d24f72393fd16ab6ac5738bc33cdb6a9aa73f8b902e8fe29cf4e67d7dd1026"
dependencies = [
"pest",
"pest_generator",
@@ -2228,9 +2228,9 @@ dependencies = [
[[package]]
name = "pest_generator"
-version = "2.7.7"
+version = "2.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1381c29a877c6d34b8c176e734f35d7f7f5b3adaefe940cb4d1bb7af94678e2e"
+checksum = "fdc17e2a6c7d0a492f0158d7a4bd66cc17280308bbaff78d5bef566dca35ab80"
dependencies = [
"pest",
"pest_meta",
@@ -2241,9 +2241,9 @@ dependencies = [
[[package]]
name = "pest_meta"
-version = "2.7.7"
+version = "2.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0934d6907f148c22a3acbda520c7eed243ad7487a30f51f6ce52b58b7077a8a"
+checksum = "934cd7631c050f4674352a6e835d5f6711ffbfb9345c2fc0107155ac495ae293"
dependencies = [
"once_cell",
"pest",
diff --git a/Cargo.toml b/Cargo.toml
index 8b52cff7..574e97fa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,8 +62,8 @@ open = "5.0.2"
# update os module config and tests when upgrading os_info
os_info = "3.7.0"
path-slash = "0.2.1"
-pest = "2.7.7"
-pest_derive = "2.7.7"
+pest = "2.7.8"
+pest_derive = "2.7.8"
quick-xml = "0.31.0"
rand = "0.8.5"
rayon = "1.9.0"
From a7038a73dae0e26d68ddd5192a84e0ae1e9a68e7 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 2 Mar 2024 14:22:36 +0000
Subject: [PATCH 168/651] build(deps): update crate-ci/typos action to v1.19.0
---
.github/workflows/spell-check.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml
index 2348e3b5..50326c5f 100644
--- a/.github/workflows/spell-check.yml
+++ b/.github/workflows/spell-check.yml
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: crate-ci/typos@v1.18.2
+ - uses: crate-ci/typos@v1.19.0
From a8e7968319697d77355543215c7f2c0e94924087 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sat, 2 Mar 2024 16:41:21 +0000
Subject: [PATCH 169/651] build(deps): update rust crate open to 5.1.0
---
Cargo.lock | 4 ++--
Cargo.toml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index dc98462d..e152d7e3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2099,9 +2099,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "open"
-version = "5.0.2"
+version = "5.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eedff767bc49d336bff300224f73307ae36963c843e38dc9312a22171b012cbc"
+checksum = "1f2588edf622de56e7a1fed57bf203344f63c03f3d43472ba0434a92373c8f27"
dependencies = [
"is-wsl",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index 574e97fa..4551e7ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -58,7 +58,7 @@ log = { version = "0.4.21", features = ["std"] }
notify-rust = { version = "4.10.0", optional = true }
nu-ansi-term = "0.50.0"
once_cell = "1.19.0"
-open = "5.0.2"
+open = "5.1.0"
# update os module config and tests when upgrading os_info
os_info = "3.7.0"
path-slash = "0.2.1"
From 421b358c32aa281b0f34f8b92322f3bda27684fa Mon Sep 17 00:00:00 2001
From: Matan Kushner
Date: Mon, 4 Mar 2024 01:54:51 +0900
Subject: [PATCH 170/651] docs(i18n): new Crowdin updates (#5803)
* New translations readme.md (French)
* New translations readme.md (Spanish)
* New translations readme.md (Arabic)
* New translations readme.md (German)
* New translations readme.md (Italian)
* New translations readme.md (Japanese)
* New translations readme.md (Korean)
* New translations readme.md (Dutch)
* New translations readme.md (Norwegian)
* New translations readme.md (Polish)
* New translations readme.md (Portuguese)
* New translations readme.md (Russian)
* New translations readme.md (Turkish)
* New translations readme.md (Ukrainian)
* New translations readme.md (Chinese Simplified)
* New translations readme.md (Chinese Traditional)
* New translations readme.md (Vietnamese)
* New translations readme.md (Portuguese, Brazilian)
* New translations readme.md (Indonesian)
* New translations readme.md (Bengali)
* New translations readme.md (Sorani (Kurdish))
* New translations readme.md (Ukrainian)
---
docs/ar-SA/presets/README.md | 6 ++++++
docs/bn-BD/presets/README.md | 6 ++++++
docs/ckb-IR/presets/README.md | 6 ++++++
docs/de-DE/presets/README.md | 6 ++++++
docs/es-ES/presets/README.md | 6 ++++++
docs/fr-FR/presets/README.md | 6 ++++++
docs/id-ID/presets/README.md | 6 ++++++
docs/it-IT/presets/README.md | 6 ++++++
docs/ja-JP/presets/README.md | 6 ++++++
docs/ko-KR/presets/README.md | 6 ++++++
docs/nl-NL/presets/README.md | 6 ++++++
docs/no-NO/presets/README.md | 6 ++++++
docs/pl-PL/presets/README.md | 6 ++++++
docs/pt-BR/presets/README.md | 6 ++++++
docs/pt-PT/presets/README.md | 6 ++++++
docs/ru-RU/presets/README.md | 6 ++++++
docs/tr-TR/presets/README.md | 6 ++++++
docs/uk-UA/presets/README.md | 6 ++++++
docs/vi-VN/presets/README.md | 6 ++++++
docs/zh-CN/presets/README.md | 6 ++++++
docs/zh-TW/presets/README.md | 6 ++++++
21 files changed, 126 insertions(+)
diff --git a/docs/ar-SA/presets/README.md b/docs/ar-SA/presets/README.md
index 2e332ad1..7a4a5b25 100644
--- a/docs/ar-SA/presets/README.md
+++ b/docs/ar-SA/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/bn-BD/presets/README.md b/docs/bn-BD/presets/README.md
index 2e332ad1..7a4a5b25 100644
--- a/docs/bn-BD/presets/README.md
+++ b/docs/bn-BD/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/ckb-IR/presets/README.md b/docs/ckb-IR/presets/README.md
index 0e31d455..a85010a3 100644
--- a/docs/ckb-IR/presets/README.md
+++ b/docs/ckb-IR/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/de-DE/presets/README.md b/docs/de-DE/presets/README.md
index ca52d7e8..af7699f5 100644
--- a/docs/de-DE/presets/README.md
+++ b/docs/de-DE/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
Diese Voreinstellung ist stark inspiriert von [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot von Gruvbox Regenbogen](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/es-ES/presets/README.md b/docs/es-ES/presets/README.md
index 3a6e96f1..06400441 100644
--- a/docs/es-ES/presets/README.md
+++ b/docs/es-ES/presets/README.md
@@ -69,3 +69,9 @@ Este preset está inspirado en [tokyo-night-vscode-theme](https://github.com/enk
Este preajuste está muy inspirado en [Pastel Powerline](./pastel-powerline.md) y [Tokyo Night](./tokyo-night.md).
[![Captura de pantalla de el preajuste Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Clic para ver el preajuste Gruvbox Rainbow")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+Este es un preajuste pseudominimalista inspirado en las indicaciones [geometría](https://github.com/geometry-zsh/geometry) y [nave espacial](https://github.com/spaceship-prompt/spaceship-prompt).
+
+[![Captura de pantalla del preajuste Jetpack](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/fr-FR/presets/README.md b/docs/fr-FR/presets/README.md
index 11b18e52..85597fdc 100644
--- a/docs/fr-FR/presets/README.md
+++ b/docs/fr-FR/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/id-ID/presets/README.md b/docs/id-ID/presets/README.md
index 29c180d1..9e208674 100644
--- a/docs/id-ID/presets/README.md
+++ b/docs/id-ID/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/it-IT/presets/README.md b/docs/it-IT/presets/README.md
index b5e07764..d29b9805 100644
--- a/docs/it-IT/presets/README.md
+++ b/docs/it-IT/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/ja-JP/presets/README.md b/docs/ja-JP/presets/README.md
index 0eebf1a3..0cbdece9 100644
--- a/docs/ja-JP/presets/README.md
+++ b/docs/ja-JP/presets/README.md
@@ -69,3 +69,9 @@ This preset does not show icons if the toolset is not found.
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/ko-KR/presets/README.md b/docs/ko-KR/presets/README.md
index 7d41e37c..bc7e4faf 100644
--- a/docs/ko-KR/presets/README.md
+++ b/docs/ko-KR/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [M365Princess](https://github.com/JanDeDobbeleer/oh-m
이 프리셋은 [Pastel Powerline](./pastel-powerline.md) 및 [Tokyo Night](./tokyo-night.md)에서 강하게 영감을 받았습니다.
[![Gruvbox Rainbow 프리셋 스크린샷](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/nl-NL/presets/README.md b/docs/nl-NL/presets/README.md
index 2e332ad1..7a4a5b25 100644
--- a/docs/nl-NL/presets/README.md
+++ b/docs/nl-NL/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/no-NO/presets/README.md b/docs/no-NO/presets/README.md
index 2e332ad1..7a4a5b25 100644
--- a/docs/no-NO/presets/README.md
+++ b/docs/no-NO/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/pl-PL/presets/README.md b/docs/pl-PL/presets/README.md
index 5bb82d8e..cda51a76 100644
--- a/docs/pl-PL/presets/README.md
+++ b/docs/pl-PL/presets/README.md
@@ -69,3 +69,9 @@ Ten zestaw ustawień jest inspirowany [tokyo-night-vscode-theme](https://github.
Zestaw mocno inspirowany przez [Pastel Powerline](./pastel-powerline.md) i [Tokyo Night](./tokyo-night.md).
[![Zrzut ekranu ustawień Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Kliknij, aby wyświetlić ustawienia Gruvbox Rainbow")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/pt-BR/presets/README.md b/docs/pt-BR/presets/README.md
index 0d58e994..9bbae2df 100644
--- a/docs/pt-BR/presets/README.md
+++ b/docs/pt-BR/presets/README.md
@@ -69,3 +69,9 @@ Este preset é inspirado por [tokyo-night-vscode-theme](https://github.com/enki
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/pt-PT/presets/README.md b/docs/pt-PT/presets/README.md
index 2e332ad1..7a4a5b25 100644
--- a/docs/pt-PT/presets/README.md
+++ b/docs/pt-PT/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/ru-RU/presets/README.md b/docs/ru-RU/presets/README.md
index a20991e9..2821e763 100644
--- a/docs/ru-RU/presets/README.md
+++ b/docs/ru-RU/presets/README.md
@@ -69,3 +69,9 @@
Этот пресет в значительной степени вдохновлен [Pastel Powerline](./pastel-powerline.md) и [Tokyo Night](./tokyo-night.md).
[![Скриншот пресета Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Нажмите, чтобы просмотреть пресет Gruvbox Rainbow")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+Это псевдоминималистичный пресет, вдохновленный приглашениями командной оболочки [geometry](https://github.com/geometry-zsh/geometry) и [spaceship](https://github.com/spaceship-prompt/spaceship-prompt).
+
+[![Скриншот пресета Jetpack](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/tr-TR/presets/README.md b/docs/tr-TR/presets/README.md
index 1c20e038..bd1cf914 100644
--- a/docs/tr-TR/presets/README.md
+++ b/docs/tr-TR/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/uk-UA/presets/README.md b/docs/uk-UA/presets/README.md
index e1dc7d3c..5759c56d 100644
--- a/docs/uk-UA/presets/README.md
+++ b/docs/uk-UA/presets/README.md
@@ -69,3 +69,9 @@
Цей шаблон створено під впливом [Pastel Powerline](./pastel-powerline.md) та [Tokyo Night](./tokyo-night.md).
[![Скріншот шаблона Gruvbox Rainbow](/presets/img/gruvbox-rainbow.png "Натисніть, щоб переглянути шаблон Gruvbox Rainbow")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+Цей псевдомінімалістичний шаблон створений під враженням від [geometry](https://github.com/geometry-zsh/geometry) та [spaceship](https://github.com/spaceship-prompt/spaceship-prompt).
+
+[![Скріншот шаблона Jetpack](/presets/img/jetpack.png "Натисніть для перегляду шаблона Jetpack")](./jetpack)
diff --git a/docs/vi-VN/presets/README.md b/docs/vi-VN/presets/README.md
index ea3f1b6f..3869b988 100644
--- a/docs/vi-VN/presets/README.md
+++ b/docs/vi-VN/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/zh-CN/presets/README.md b/docs/zh-CN/presets/README.md
index 1bec89ef..a7953fd0 100644
--- a/docs/zh-CN/presets/README.md
+++ b/docs/zh-CN/presets/README.md
@@ -69,3 +69,9 @@ This preset does not show icons if the toolset is not found.
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
diff --git a/docs/zh-TW/presets/README.md b/docs/zh-TW/presets/README.md
index 0e6678b3..788c3b49 100644
--- a/docs/zh-TW/presets/README.md
+++ b/docs/zh-TW/presets/README.md
@@ -69,3 +69,9 @@ This preset is inspired by [tokyo-night-vscode-theme](https://github.com/enkia/t
This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), and [Tokyo Night](./tokyo-night.md).
[![Screenshot of Gruvbox Rainbow preset](/presets/img/gruvbox-rainbow.png "Click to view Gruvbox Rainbow preset")](./gruvbox-rainbow)
+
+## [Jetpack](./jetpack.md)
+
+This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.
+
+[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)
From 7485c90c9f7259c026a84dd0335f56860005315d Mon Sep 17 00:00:00 2001
From: David Knaack
Date: Sun, 3 Mar 2024 17:55:30 +0100
Subject: [PATCH 171/651] feat(docs): move to vitepress (#5785)
* feat(docs): move to vitepress
* change up hero styles to match existing site
* A bit more style tweaking
* Replace stylus with plain CSS
* improve unicode-range value for nerdfont
---------
Co-authored-by: Matan Kushner
---
.github/workflows/format-workflow.yml | 23 +
.github/workflows/publish-docs.yml | 6 +-
.github/workflows/release.yml | 4 +-
.gitignore | 5 +-
CONTRIBUTING.md | 6 +-
build.rs | 4 +-
.../config.ts => .vitepress/config.mts} | 565 +-
docs/.vitepress/theme/index.css | 97 +
docs/.vitepress/theme/index.js | 4 +
docs/.vuepress/public/config-schema.json | 1 -
docs/.vuepress/public/icon.png | 1 -
docs/.vuepress/public/install.sh | 1 -
docs/.vuepress/public/logo.png | 1 -
docs/.vuepress/public/logo.svg | 1 -
docs/.vuepress/public/nerd-font.woff2 | Bin 378316 -> 0 bytes
docs/.vuepress/styles/index.styl | 38 -
docs/.vuepress/styles/palette.styl | 6 -
docs/README.md | 27 +-
docs/advanced-config/README.md | 2 +-
docs/ar-SA/README.md | 21 +-
docs/ar-SA/advanced-config/README.md | 2 +-
docs/ar-SA/config/README.md | 6 +-
docs/ar-SA/faq/README.md | 2 +-
docs/ar-SA/guide/README.md | 6 +-
docs/ar-SA/installing/README.md | 2 +-
docs/ar-SA/presets/bracketed-segments.md | 4 +-
docs/ar-SA/presets/gruvbox-rainbow.md | 4 +-
docs/ar-SA/presets/jetpack.md | 4 +-
docs/ar-SA/presets/nerd-font.md | 4 +-
docs/ar-SA/presets/no-empty-icons.md | 4 +-
docs/ar-SA/presets/no-nerd-font.md | 4 +-
docs/ar-SA/presets/no-runtimes.md | 4 +-
docs/ar-SA/presets/pastel-powerline.md | 4 +-
docs/ar-SA/presets/plain-text.md | 4 +-
docs/ar-SA/presets/pure-preset.md | 4 +-
docs/ar-SA/presets/tokyo-night.md | 4 +-
docs/bn-BD/README.md | 21 +-
docs/bn-BD/advanced-config/README.md | 2 +-
docs/bn-BD/config/README.md | 6 +-
docs/bn-BD/faq/README.md | 2 +-
docs/bn-BD/guide/README.md | 8 +-
docs/bn-BD/installing/README.md | 2 +-
docs/bn-BD/presets/bracketed-segments.md | 4 +-
docs/bn-BD/presets/gruvbox-rainbow.md | 4 +-
docs/bn-BD/presets/jetpack.md | 4 +-
docs/bn-BD/presets/nerd-font.md | 4 +-
docs/bn-BD/presets/no-empty-icons.md | 4 +-
docs/bn-BD/presets/no-nerd-font.md | 4 +-
docs/bn-BD/presets/no-runtimes.md | 4 +-
docs/bn-BD/presets/pastel-powerline.md | 4 +-
docs/bn-BD/presets/plain-text.md | 4 +-
docs/bn-BD/presets/pure-preset.md | 4 +-
docs/bn-BD/presets/tokyo-night.md | 4 +-
docs/ckb-IR/README.md | 21 +-
docs/ckb-IR/advanced-config/README.md | 2 +-
docs/ckb-IR/config/README.md | 6 +-
docs/ckb-IR/faq/README.md | 2 +-
docs/ckb-IR/guide/README.md | 4 +-
docs/ckb-IR/installing/README.md | 2 +-
docs/ckb-IR/presets/bracketed-segments.md | 4 +-
docs/ckb-IR/presets/gruvbox-rainbow.md | 4 +-
docs/ckb-IR/presets/jetpack.md | 4 +-
docs/ckb-IR/presets/nerd-font.md | 4 +-
docs/ckb-IR/presets/no-empty-icons.md | 4 +-
docs/ckb-IR/presets/no-nerd-font.md | 4 +-
docs/ckb-IR/presets/no-runtimes.md | 4 +-
docs/ckb-IR/presets/pastel-powerline.md | 4 +-
docs/ckb-IR/presets/plain-text.md | 4 +-
docs/ckb-IR/presets/pure-preset.md | 4 +-
docs/ckb-IR/presets/tokyo-night.md | 4 +-
docs/config/README.md | 22 +-
docs/de-DE/README.md | 21 +-
docs/de-DE/advanced-config/README.md | 2 +-
docs/de-DE/config/README.md | 6 +-
docs/de-DE/faq/README.md | 2 +-
docs/de-DE/guide/README.md | 6 +-
docs/de-DE/installing/README.md | 2 +-
docs/de-DE/presets/bracketed-segments.md | 4 +-
docs/de-DE/presets/gruvbox-rainbow.md | 4 +-
docs/de-DE/presets/jetpack.md | 4 +-
docs/de-DE/presets/nerd-font.md | 4 +-
docs/de-DE/presets/no-empty-icons.md | 4 +-
docs/de-DE/presets/no-nerd-font.md | 4 +-
docs/de-DE/presets/no-runtimes.md | 4 +-
docs/de-DE/presets/pastel-powerline.md | 4 +-
docs/de-DE/presets/plain-text.md | 4 +-
docs/de-DE/presets/pure-preset.md | 4 +-
docs/de-DE/presets/tokyo-night.md | 4 +-
docs/es-ES/README.md | 21 +-
docs/es-ES/advanced-config/README.md | 2 +-
docs/es-ES/config/README.md | 30 +-
docs/es-ES/faq/README.md | 2 +-
docs/es-ES/guide/README.md | 6 +-
docs/es-ES/installing/README.md | 2 +-
docs/es-ES/presets/bracketed-segments.md | 4 +-
docs/es-ES/presets/gruvbox-rainbow.md | 4 +-
docs/es-ES/presets/jetpack.md | 4 +-
docs/es-ES/presets/nerd-font.md | 4 +-
docs/es-ES/presets/no-empty-icons.md | 4 +-
docs/es-ES/presets/no-nerd-font.md | 4 +-
docs/es-ES/presets/no-runtimes.md | 4 +-
docs/es-ES/presets/pastel-powerline.md | 4 +-
docs/es-ES/presets/plain-text.md | 4 +-
docs/es-ES/presets/pure-preset.md | 4 +-
docs/es-ES/presets/tokyo-night.md | 4 +-
docs/faq/README.md | 2 +-
docs/fr-FR/README.md | 21 +-
docs/fr-FR/advanced-config/README.md | 2 +-
docs/fr-FR/config/README.md | 6 +-
docs/fr-FR/faq/README.md | 2 +-
docs/fr-FR/guide/README.md | 6 +-
docs/fr-FR/installing/README.md | 2 +-
docs/fr-FR/presets/bracketed-segments.md | 4 +-
docs/fr-FR/presets/gruvbox-rainbow.md | 4 +-
docs/fr-FR/presets/jetpack.md | 4 +-
docs/fr-FR/presets/nerd-font.md | 4 +-
docs/fr-FR/presets/no-empty-icons.md | 4 +-
docs/fr-FR/presets/no-nerd-font.md | 4 +-
docs/fr-FR/presets/no-runtimes.md | 4 +-
docs/fr-FR/presets/pastel-powerline.md | 4 +-
docs/fr-FR/presets/plain-text.md | 4 +-
docs/fr-FR/presets/pure-preset.md | 4 +-
docs/fr-FR/presets/tokyo-night.md | 4 +-
docs/id-ID/README.md | 21 +-
docs/id-ID/advanced-config/README.md | 2 +-
docs/id-ID/config/README.md | 6 +-
docs/id-ID/faq/README.md | 2 +-
docs/id-ID/guide/README.md | 6 +-
docs/id-ID/installing/README.md | 2 +-
docs/id-ID/presets/bracketed-segments.md | 4 +-
docs/id-ID/presets/gruvbox-rainbow.md | 4 +-
docs/id-ID/presets/jetpack.md | 4 +-
docs/id-ID/presets/nerd-font.md | 4 +-
docs/id-ID/presets/no-empty-icons.md | 4 +-
docs/id-ID/presets/no-nerd-font.md | 4 +-
docs/id-ID/presets/no-runtimes.md | 4 +-
docs/id-ID/presets/pastel-powerline.md | 4 +-
docs/id-ID/presets/plain-text.md | 4 +-
docs/id-ID/presets/pure-preset.md | 4 +-
docs/id-ID/presets/tokyo-night.md | 4 +-
docs/installing/README.md | 2 +-
docs/it-IT/README.md | 21 +-
docs/it-IT/advanced-config/README.md | 2 +-
docs/it-IT/config/README.md | 6 +-
docs/it-IT/faq/README.md | 2 +-
docs/it-IT/guide/README.md | 2 +-
docs/it-IT/installing/README.md | 2 +-
docs/it-IT/presets/bracketed-segments.md | 4 +-
docs/it-IT/presets/gruvbox-rainbow.md | 4 +-
docs/it-IT/presets/jetpack.md | 4 +-
docs/it-IT/presets/nerd-font.md | 4 +-
docs/it-IT/presets/no-empty-icons.md | 4 +-
docs/it-IT/presets/no-nerd-font.md | 4 +-
docs/it-IT/presets/no-runtimes.md | 4 +-
docs/it-IT/presets/pastel-powerline.md | 4 +-
docs/it-IT/presets/plain-text.md | 4 +-
docs/it-IT/presets/pure-preset.md | 4 +-
docs/it-IT/presets/tokyo-night.md | 4 +-
docs/ja-JP/README.md | 21 +-
docs/ja-JP/advanced-config/README.md | 2 +-
docs/ja-JP/config/README.md | 6 +-
docs/ja-JP/faq/README.md | 2 +-
docs/ja-JP/guide/README.md | 6 +-
docs/ja-JP/installing/README.md | 2 +-
docs/ja-JP/presets/bracketed-segments.md | 4 +-
docs/ja-JP/presets/gruvbox-rainbow.md | 4 +-
docs/ja-JP/presets/jetpack.md | 4 +-
docs/ja-JP/presets/nerd-font.md | 4 +-
docs/ja-JP/presets/no-empty-icons.md | 4 +-
docs/ja-JP/presets/no-nerd-font.md | 4 +-
docs/ja-JP/presets/no-runtimes.md | 4 +-
docs/ja-JP/presets/pastel-powerline.md | 4 +-
docs/ja-JP/presets/plain-text.md | 4 +-
docs/ja-JP/presets/pure-preset.md | 4 +-
docs/ja-JP/presets/tokyo-night.md | 4 +-
docs/ko-KR/README.md | 21 +-
docs/ko-KR/advanced-config/README.md | 2 +-
docs/ko-KR/config/README.md | 6 +-
docs/ko-KR/faq/README.md | 2 +-
docs/ko-KR/guide/README.md | 6 +-
docs/ko-KR/installing/README.md | 2 +-
docs/ko-KR/presets/bracketed-segments.md | 4 +-
docs/ko-KR/presets/gruvbox-rainbow.md | 4 +-
docs/ko-KR/presets/jetpack.md | 4 +-
docs/ko-KR/presets/nerd-font.md | 4 +-
docs/ko-KR/presets/no-empty-icons.md | 4 +-
docs/ko-KR/presets/no-nerd-font.md | 4 +-
docs/ko-KR/presets/no-runtimes.md | 4 +-
docs/ko-KR/presets/pastel-powerline.md | 4 +-
docs/ko-KR/presets/plain-text.md | 4 +-
docs/ko-KR/presets/pure-preset.md | 4 +-
docs/ko-KR/presets/tokyo-night.md | 4 +-
docs/nl-NL/README.md | 21 +-
docs/nl-NL/advanced-config/README.md | 2 +-
docs/nl-NL/config/README.md | 6 +-
docs/nl-NL/faq/README.md | 2 +-
docs/nl-NL/guide/README.md | 6 +-
docs/nl-NL/installing/README.md | 2 +-
docs/nl-NL/presets/bracketed-segments.md | 4 +-
docs/nl-NL/presets/gruvbox-rainbow.md | 4 +-
docs/nl-NL/presets/jetpack.md | 4 +-
docs/nl-NL/presets/nerd-font.md | 4 +-
docs/nl-NL/presets/no-empty-icons.md | 4 +-
docs/nl-NL/presets/no-nerd-font.md | 4 +-
docs/nl-NL/presets/no-runtimes.md | 4 +-
docs/nl-NL/presets/pastel-powerline.md | 4 +-
docs/nl-NL/presets/plain-text.md | 4 +-
docs/nl-NL/presets/pure-preset.md | 4 +-
docs/nl-NL/presets/tokyo-night.md | 4 +-
docs/no-NO/README.md | 21 +-
docs/no-NO/advanced-config/README.md | 2 +-
docs/no-NO/config/README.md | 6 +-
docs/no-NO/faq/README.md | 2 +-
docs/no-NO/guide/README.md | 6 +-
docs/no-NO/installing/README.md | 2 +-
docs/no-NO/presets/bracketed-segments.md | 4 +-
docs/no-NO/presets/gruvbox-rainbow.md | 4 +-
docs/no-NO/presets/jetpack.md | 4 +-
docs/no-NO/presets/nerd-font.md | 4 +-
docs/no-NO/presets/no-empty-icons.md | 4 +-
docs/no-NO/presets/no-nerd-font.md | 4 +-
docs/no-NO/presets/no-runtimes.md | 4 +-
docs/no-NO/presets/pastel-powerline.md | 4 +-
docs/no-NO/presets/plain-text.md | 4 +-
docs/no-NO/presets/pure-preset.md | 4 +-
docs/no-NO/presets/tokyo-night.md | 4 +-
docs/package-lock.json | 27954 +---------------
docs/package.json | 10 +-
docs/pl-PL/README.md | 21 +-
docs/pl-PL/advanced-config/README.md | 2 +-
docs/pl-PL/config/README.md | 6 +-
docs/pl-PL/faq/README.md | 2 +-
docs/pl-PL/guide/README.md | 6 +-
docs/pl-PL/installing/README.md | 2 +-
docs/pl-PL/presets/bracketed-segments.md | 4 +-
docs/pl-PL/presets/gruvbox-rainbow.md | 4 +-
docs/pl-PL/presets/jetpack.md | 4 +-
docs/pl-PL/presets/nerd-font.md | 4 +-
docs/pl-PL/presets/no-empty-icons.md | 4 +-
docs/pl-PL/presets/no-nerd-font.md | 4 +-
docs/pl-PL/presets/no-runtimes.md | 4 +-
docs/pl-PL/presets/pastel-powerline.md | 4 +-
docs/pl-PL/presets/plain-text.md | 4 +-
docs/pl-PL/presets/pure-preset.md | 4 +-
docs/pl-PL/presets/tokyo-night.md | 4 +-
docs/presets/bracketed-segments.md | 4 +-
docs/presets/gruvbox-rainbow.md | 4 +-
docs/presets/jetpack.md | 4 +-
docs/presets/nerd-font.md | 4 +-
docs/presets/no-empty-icons.md | 4 +-
docs/presets/no-nerd-font.md | 4 +-
docs/presets/no-runtimes.md | 4 +-
docs/presets/pastel-powerline.md | 4 +-
docs/presets/plain-text.md | 4 +-
docs/presets/pure-preset.md | 4 +-
docs/presets/tokyo-night.md | 4 +-
docs/pt-BR/README.md | 21 +-
docs/pt-BR/advanced-config/README.md | 2 +-
docs/pt-BR/config/README.md | 8 +-
docs/pt-BR/faq/README.md | 2 +-
docs/pt-BR/guide/README.md | 6 +-
docs/pt-BR/installing/README.md | 2 +-
docs/pt-BR/presets/bracketed-segments.md | 4 +-
docs/pt-BR/presets/gruvbox-rainbow.md | 4 +-
docs/pt-BR/presets/jetpack.md | 4 +-
docs/pt-BR/presets/nerd-font.md | 4 +-
docs/pt-BR/presets/no-empty-icons.md | 4 +-
docs/pt-BR/presets/no-nerd-font.md | 4 +-
docs/pt-BR/presets/no-runtimes.md | 4 +-
docs/pt-BR/presets/pastel-powerline.md | 4 +-
docs/pt-BR/presets/plain-text.md | 4 +-
docs/pt-BR/presets/pure-preset.md | 4 +-
docs/pt-BR/presets/tokyo-night.md | 4 +-
docs/pt-PT/README.md | 21 +-
docs/pt-PT/advanced-config/README.md | 2 +-
docs/pt-PT/config/README.md | 6 +-
docs/pt-PT/faq/README.md | 2 +-
docs/pt-PT/guide/README.md | 6 +-
docs/pt-PT/installing/README.md | 2 +-
docs/pt-PT/presets/bracketed-segments.md | 4 +-
docs/pt-PT/presets/gruvbox-rainbow.md | 4 +-
docs/pt-PT/presets/jetpack.md | 4 +-
docs/pt-PT/presets/nerd-font.md | 4 +-
docs/pt-PT/presets/no-empty-icons.md | 4 +-
docs/pt-PT/presets/no-nerd-font.md | 4 +-
docs/pt-PT/presets/no-runtimes.md | 4 +-
docs/pt-PT/presets/pastel-powerline.md | 4 +-
docs/pt-PT/presets/plain-text.md | 4 +-
docs/pt-PT/presets/pure-preset.md | 4 +-
docs/pt-PT/presets/tokyo-night.md | 4 +-
docs/{.vuepress => }/public/_redirects | 0
docs/public/config-schema.json | 1 +
docs/{.vuepress => }/public/demo.mp4 | Bin
docs/{.vuepress => }/public/demo.webm | Bin
docs/public/icon.png | 1 +
docs/public/install.sh | 1 +
docs/public/logo.png | 1 +
docs/public/logo.svg | 1 +
docs/public/nerd-font.woff2 | Bin 0 -> 862124 bytes
.../public/presets/img/bracketed-segments.png | Bin
.../public/presets/img/gruvbox-rainbow.png | Bin
.../public/presets/img/jetpack.png | Bin
.../public/presets/img/nerd-font-symbols.png | Bin
.../public/presets/img/no-empty-icons.png | Bin
.../presets/img/no-runtime-versions.png | Bin
.../public/presets/img/pastel-powerline.png | Bin
.../public/presets/img/plain-text-symbols.png | Bin
.../public/presets/img/pure-preset.png | Bin
.../public/presets/img/tokyo-night.png | Bin
.../presets/toml/bracketed-segments.toml | 0
.../public/presets/toml/gruvbox-rainbow.toml | 0
.../public/presets/toml/jetpack.toml | 0
.../presets/toml/nerd-font-symbols.toml | 0
.../public/presets/toml/no-empty-icons.toml | 0
.../public/presets/toml/no-nerd-font.toml | 0
.../presets/toml/no-runtime-versions.toml | 0
.../public/presets/toml/pastel-powerline.toml | 0
.../presets/toml/plain-text-symbols.toml | 0
.../public/presets/toml/pure-preset.toml | 0
.../public/presets/toml/tokyo-night.toml | 0
docs/{.vuepress => }/public/robots.txt | 0
docs/ru-RU/README.md | 21 +-
docs/ru-RU/advanced-config/README.md | 2 +-
docs/ru-RU/config/README.md | 6 +-
docs/ru-RU/faq/README.md | 2 +-
docs/ru-RU/guide/README.md | 6 +-
docs/ru-RU/installing/README.md | 2 +-
docs/ru-RU/presets/bracketed-segments.md | 4 +-
docs/ru-RU/presets/gruvbox-rainbow.md | 4 +-
docs/ru-RU/presets/jetpack.md | 4 +-
docs/ru-RU/presets/nerd-font.md | 4 +-
docs/ru-RU/presets/no-empty-icons.md | 4 +-
docs/ru-RU/presets/no-nerd-font.md | 4 +-
docs/ru-RU/presets/no-runtimes.md | 4 +-
docs/ru-RU/presets/pastel-powerline.md | 4 +-
docs/ru-RU/presets/plain-text.md | 4 +-
docs/ru-RU/presets/pure-preset.md | 4 +-
docs/ru-RU/presets/tokyo-night.md | 4 +-
docs/tr-TR/README.md | 21 +-
docs/tr-TR/advanced-config/README.md | 4 +-
docs/tr-TR/config/README.md | 6 +-
docs/tr-TR/faq/README.md | 2 +-
docs/tr-TR/guide/README.md | 6 +-
docs/tr-TR/installing/README.md | 2 +-
docs/tr-TR/presets/bracketed-segments.md | 4 +-
docs/tr-TR/presets/gruvbox-rainbow.md | 4 +-
docs/tr-TR/presets/jetpack.md | 4 +-
docs/tr-TR/presets/nerd-font.md | 4 +-
docs/tr-TR/presets/no-empty-icons.md | 4 +-
docs/tr-TR/presets/no-nerd-font.md | 4 +-
docs/tr-TR/presets/no-runtimes.md | 4 +-
docs/tr-TR/presets/pastel-powerline.md | 4 +-
docs/tr-TR/presets/plain-text.md | 4 +-
docs/tr-TR/presets/pure-preset.md | 4 +-
docs/tr-TR/presets/tokyo-night.md | 4 +-
docs/uk-UA/README.md | 21 +-
docs/uk-UA/advanced-config/README.md | 2 +-
docs/uk-UA/config/README.md | 10 +-
docs/uk-UA/faq/README.md | 2 +-
docs/uk-UA/guide/README.md | 6 +-
docs/uk-UA/installing/README.md | 2 +-
docs/uk-UA/presets/bracketed-segments.md | 4 +-
docs/uk-UA/presets/gruvbox-rainbow.md | 4 +-
docs/uk-UA/presets/jetpack.md | 4 +-
docs/uk-UA/presets/nerd-font.md | 4 +-
docs/uk-UA/presets/no-empty-icons.md | 4 +-
docs/uk-UA/presets/no-nerd-font.md | 4 +-
docs/uk-UA/presets/no-runtimes.md | 4 +-
docs/uk-UA/presets/pastel-powerline.md | 4 +-
docs/uk-UA/presets/plain-text.md | 4 +-
docs/uk-UA/presets/pure-preset.md | 4 +-
docs/uk-UA/presets/tokyo-night.md | 4 +-
docs/vi-VN/README.md | 21 +-
docs/vi-VN/advanced-config/README.md | 2 +-
docs/vi-VN/config/README.md | 6 +-
docs/vi-VN/faq/README.md | 2 +-
docs/vi-VN/guide/README.md | 6 +-
docs/vi-VN/installing/README.md | 2 +-
docs/vi-VN/presets/bracketed-segments.md | 4 +-
docs/vi-VN/presets/gruvbox-rainbow.md | 4 +-
docs/vi-VN/presets/jetpack.md | 4 +-
docs/vi-VN/presets/nerd-font.md | 4 +-
docs/vi-VN/presets/no-empty-icons.md | 4 +-
docs/vi-VN/presets/no-nerd-font.md | 4 +-
docs/vi-VN/presets/no-runtimes.md | 4 +-
docs/vi-VN/presets/pastel-powerline.md | 4 +-
docs/vi-VN/presets/plain-text.md | 4 +-
docs/vi-VN/presets/pure-preset.md | 4 +-
docs/vi-VN/presets/tokyo-night.md | 4 +-
docs/zh-CN/README.md | 21 +-
docs/zh-CN/advanced-config/README.md | 2 +-
docs/zh-CN/config/README.md | 8 +-
docs/zh-CN/faq/README.md | 2 +-
docs/zh-CN/guide/README.md | 6 +-
docs/zh-CN/installing/README.md | 2 +-
docs/zh-CN/presets/bracketed-segments.md | 4 +-
docs/zh-CN/presets/gruvbox-rainbow.md | 4 +-
docs/zh-CN/presets/jetpack.md | 4 +-
docs/zh-CN/presets/nerd-font.md | 4 +-
docs/zh-CN/presets/no-empty-icons.md | 4 +-
docs/zh-CN/presets/no-nerd-font.md | 4 +-
docs/zh-CN/presets/no-runtimes.md | 4 +-
docs/zh-CN/presets/pastel-powerline.md | 4 +-
docs/zh-CN/presets/plain-text.md | 4 +-
docs/zh-CN/presets/pure-preset.md | 4 +-
docs/zh-CN/presets/tokyo-night.md | 4 +-
docs/zh-TW/README.md | 21 +-
docs/zh-TW/advanced-config/README.md | 2 +-
docs/zh-TW/config/README.md | 6 +-
docs/zh-TW/faq/README.md | 2 +-
docs/zh-TW/guide/README.md | 6 +-
docs/zh-TW/installing/README.md | 2 +-
docs/zh-TW/presets/bracketed-segments.md | 4 +-
docs/zh-TW/presets/gruvbox-rainbow.md | 4 +-
docs/zh-TW/presets/jetpack.md | 4 +-
docs/zh-TW/presets/nerd-font.md | 4 +-
docs/zh-TW/presets/no-empty-icons.md | 4 +-
docs/zh-TW/presets/no-nerd-font.md | 4 +-
docs/zh-TW/presets/no-runtimes.md | 4 +-
docs/zh-TW/presets/pastel-powerline.md | 4 +-
docs/zh-TW/presets/plain-text.md | 4 +-
docs/zh-TW/presets/pure-preset.md | 4 +-
docs/zh-TW/presets/tokyo-night.md | 4 +-
src/print.rs | 2 +-
424 files changed, 2893 insertions(+), 27713 deletions(-)
rename docs/{.vuepress/config.ts => .vitepress/config.mts} (63%)
create mode 100644 docs/.vitepress/theme/index.css
create mode 100644 docs/.vitepress/theme/index.js
delete mode 120000 docs/.vuepress/public/config-schema.json
delete mode 120000 docs/.vuepress/public/icon.png
delete mode 120000 docs/.vuepress/public/install.sh
delete mode 120000 docs/.vuepress/public/logo.png
delete mode 120000 docs/.vuepress/public/logo.svg
delete mode 100644 docs/.vuepress/public/nerd-font.woff2
delete mode 100644 docs/.vuepress/styles/index.styl
delete mode 100644 docs/.vuepress/styles/palette.styl
rename docs/{.vuepress => }/public/_redirects (100%)
create mode 120000 docs/public/config-schema.json
rename docs/{.vuepress => }/public/demo.mp4 (100%)
rename docs/{.vuepress => }/public/demo.webm (100%)
create mode 120000 docs/public/icon.png
create mode 120000 docs/public/install.sh
create mode 120000 docs/public/logo.png
create mode 120000 docs/public/logo.svg
create mode 100644 docs/public/nerd-font.woff2
rename docs/{.vuepress => }/public/presets/img/bracketed-segments.png (100%)
rename docs/{.vuepress => }/public/presets/img/gruvbox-rainbow.png (100%)
rename docs/{.vuepress => }/public/presets/img/jetpack.png (100%)
rename docs/{.vuepress => }/public/presets/img/nerd-font-symbols.png (100%)
rename docs/{.vuepress => }/public/presets/img/no-empty-icons.png (100%)
rename docs/{.vuepress => }/public/presets/img/no-runtime-versions.png (100%)
rename docs/{.vuepress => }/public/presets/img/pastel-powerline.png (100%)
rename docs/{.vuepress => }/public/presets/img/plain-text-symbols.png (100%)
rename docs/{.vuepress => }/public/presets/img/pure-preset.png (100%)
rename docs/{.vuepress => }/public/presets/img/tokyo-night.png (100%)
rename docs/{.vuepress => }/public/presets/toml/bracketed-segments.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/gruvbox-rainbow.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/jetpack.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/nerd-font-symbols.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/no-empty-icons.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/no-nerd-font.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/no-runtime-versions.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/pastel-powerline.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/plain-text-symbols.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/pure-preset.toml (100%)
rename docs/{.vuepress => }/public/presets/toml/tokyo-night.toml (100%)
rename docs/{.vuepress => }/public/robots.txt (100%)
diff --git a/.github/workflows/format-workflow.yml b/.github/workflows/format-workflow.yml
index 50c96a62..34636ad3 100644
--- a/.github/workflows/format-workflow.yml
+++ b/.github/workflows/format-workflow.yml
@@ -40,3 +40,26 @@ jobs:
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: docs/[a-z][a-z][a-z]?-[A-Z][A-Z]?/.*
+
+ # Vitepress build
+ vitepress:
+ name: Vitepress [Build]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Setup | Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup | Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: 'npm'
+ cache-dependency-path: docs/package-lock.json
+
+ - name: Setup | Install dependencies
+ run: npm install
+ working-directory: docs
+
+ - name: Build | Build docs site
+ run: npm run build
+ working-directory: docs
diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml
index 0aabea0c..a28ccc3d 100644
--- a/.github/workflows/publish-docs.yml
+++ b/.github/workflows/publish-docs.yml
@@ -10,9 +10,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup | Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 16
+ node-version: 20
cache: 'npm'
cache-dependency-path: docs/package-lock.json
@@ -27,7 +27,7 @@ jobs:
- name: Publish
uses: netlify/actions/cli@master
with:
- args: deploy --prod --dir=docs/.vuepress/dist
+ args: deploy --prod --dir=docs/.vitepress/dist
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8e2bd1ae..c9cb80ed 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -215,9 +215,9 @@ jobs:
xcrun notarytool store-credentials "$KEYCHAIN_ENTRY" --team-id "$APPLEID_TEAMID" --apple-id "$APPLEID_USERNAME" --password "$APPLEID_PASSWORD" --keychain "$KEYCHAIN_PATH"
- name: Setup | Node
- uses: actions/setup-node@v3
+ uses: actions/setup-node@v4
with:
- node-version: 16
+ node-version: 20
- name: Notarize | Build docs
run: |
diff --git a/.gitignore b/.gitignore
index 7e007b41..ad63a01c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,7 +27,8 @@ Cargo.lock
# Compiled files for documentation
docs/node_modules
-docs/.vuepress/dist/
+docs/.vitepress/dist/
+docs/.vitepress/cache/
# Ignore pkg files within the install directory
-install/**/*.pkg
\ No newline at end of file
+install/**/*.pkg
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ff3c7435..5aaff0eb 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -251,7 +251,7 @@ Changes to documentation can be viewed in a rendered state from the GitHub PR pa
(go to the CI section at the bottom of the page and look for "deploy preview", then
click on "details"). If you want to view changes locally as well, follow these steps.
-After cloning the project, you can do the following to run the VuePress website on your local machine:
+After cloning the project, you can do the following to run the VitePress website on your local machine:
1. `cd` into the `/docs` directory.
2. Install the project dependencies:
@@ -266,7 +266,7 @@ After cloning the project, you can do the following to run the VuePress website
npm run dev
```
-Once setup is complete, you can refer to VuePress documentation on the actual implementation here: .
+Once setup is complete, you can refer to VitePress documentation on the actual implementation here: .
## Git/GitHub workflow
@@ -292,7 +292,7 @@ everyone remember what they are. Don't worry: most of them are quite simple!
appropriate--this is a bare minimum).
- [ ] Add the variable to the appropriate location in the "Default Prompt
Format" section of the documentation
-- [ ] Add an appropriate choice of options to each preset in `docs/.vuepress/public/presets/toml`
+- [ ] Add an appropriate choice of options to each preset in `docs/public/presets/toml`
- [ ] Update the config file schema by running `cargo run --features config-schema -- config-schema > .github/config-schema.json`
- [ ] Create configs structs/traits in `src/configs/.rs` and add the
following:
diff --git a/build.rs b/build.rs
index fb531244..d2ffecf3 100644
--- a/build.rs
+++ b/build.rs
@@ -19,8 +19,8 @@ fn main() -> SdResult<()> {
}
fn gen_presets_hook(mut file: &File) -> SdResult<()> {
- println!("cargo:rerun-if-changed=docs/.vuepress/public/presets/toml");
- let paths = fs::read_dir("docs/.vuepress/public/presets/toml")?;
+ println!("cargo:rerun-if-changed=docs/public/presets/toml");
+ let paths = fs::read_dir("docs/public/presets/toml")?;
let mut sortedpaths = paths.collect::>>()?;
sortedpaths.sort_by_key(std::fs::DirEntry::path);
diff --git a/docs/.vuepress/config.ts b/docs/.vitepress/config.mts
similarity index 63%
rename from docs/.vuepress/config.ts
rename to docs/.vitepress/config.mts
index 38d18333..19bf333d 100644
--- a/docs/.vuepress/config.ts
+++ b/docs/.vitepress/config.mts
@@ -1,98 +1,343 @@
-import { defineConfig, SidebarConfigArray } from "vuepress/config";
+import { defineConfig } from "vitepress";
-const sidebar = (lang, override = {}): SidebarConfigArray =>
+const sidebar = (lang: string | undefined, override = {}) =>
[
- "", // "Home", which should always have a override
- "guide", // README, which should always have a override
+ { page: "guide", text: "Guide" }, // README, which should always have a override
// Overrides for any page below is an inconsistency between the sidebar title and page title
- "installing",
- "config",
- "advanced-config",
- "faq",
- "presets",
- ].map(page => {
+ { page: "installing", text: "Installation" },
+ { page: "config", text: "Configuration" },
+ { page: "advanced-config", text: "Advanced Configuration" },
+ { page: "faq", text: "FAQ" },
+ { page: "presets", text: "Presets" },
+ ].map(item => {
let path = "/";
if (lang) {
path += `${lang}/`;
}
- if (page) {
- path += `${page}/`;
+ if (item.page) {
+ path += `${item.page}/`;
}
- // If no override is set for current page, let VuePress fallback to page title
- return page in override ? [path, override[page]] : path;
+ // If no override is set for current page, let VitePress fallback to page title
+ return { link: path, text: override?.[item.page] ?? item.text };
});
-module.exports = defineConfig({
+const editLinkPattern = 'https://github.com/starship/starship/edit/master/docs/:path';
+
+export default defineConfig({
locales: {
- "/": {
+ root: {
+ label: "English",
lang: "en-US",
title: "Starship",
description: "The minimal, blazing-fast, and infinitely customizable prompt for any shell!",
+
+ themeConfig: {
+ // Custom navbar values
+ nav: [{ text: "Configuration", link: "/config/"}],
+ // Custom sidebar values
+ sidebar: sidebar("", {
+ guide: "Guide",
+ }),
+ // Enable edit links
+ editLink: {
+ text: "Edit this page on GitHub",
+ pattern: editLinkPattern,
+ },
+ }
},
- "/de-DE/": {
+ "de-DE": {
+ label: "Deutsch",
lang: "de-DE",
title: "Starship",
description: "Minimale, super schnelle und unendlich anpassbare Prompt für jede Shell!",
+
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Sprachen",
+ returnToTopLabel: "Zurück zum Seitenanfang",
+ sidebarMenuLabel: "Menü",
+
+ nav: [{ text: "Konfiguration", link: "/de-DE/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("de-DE", {
+ guide: "Anleitung",
+ installing: "Erweiterte Installation",
+ faq: "Häufig gestellte Fragen",
+ presets: "Konfigurations-Beispiele",
+ }),
+ editLink: {
+ text: "Bearbeite diese Seite auf GitHub",
+ pattern: editLinkPattern,
+ },
+ }
},
- "/es-ES/": {
+ "es-ES": {
+ label: "Español",
lang: "es-ES",
title: "Starship",
description:
"¡El prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Idiomas",
+ returnToTopLabel: "Volver arriba",
+ sidebarMenuLabel: "Menú",
+ // Custom navbar values
+ nav: [{ text: "Configuración", link: "/es-ES/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("es-ES", {
+ guide: "Guía",
+ installing: "Instalación avanzada",
+ faq: "Preguntas frecuentes",
+ presets: "Ajustes predeterminados",
+ }),
+ editLink: {
+ text: "Edita esta página en GitHub",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/fr-FR/": {
+ "fr-FR": {
+ label: "Français",
lang: "fr-FR",
title: "Starship",
description: "L'invite minimaliste, ultra-rapide et personnalisable à l'infini pour n'importe quel shell !",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Langues",
+ returnToTopLabel: "Retour en haut",
+ // Custom navbar values
+ nav: [{ text: "Configuration", link: "/fr-FR/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("fr-FR", {
+ guide: "Guide",
+ installing: "Installation avancée",
+ }),
+ editLink: {
+ text: "Éditez cette page sur GitHub",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/id-ID/": {
+ "id-ID": {
+ label: "Bahasa Indonesia",
lang: "id-ID",
title: "Starship",
description: "Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Languages",
+ returnToTopLabel: "Kembali ke atas",
+ // Custom navbar values
+ nav: [{ text: "Konfigurasi", link: "/id-ID/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("id-ID", {
+ guide: "Petunjuk",
+ installing: "Advanced Installation",
+ faq: "Pertanyaan Umum",
+ presets: "Prasetel",
+ }),
+ editLink: {
+ text: "Sunting halaman ini di Github",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/it-IT/": {
+ "it-IT": {
+ label: "Italiano",
lang: "it-IT",
title: "Starship",
description: "Il prompt minimalista, super veloce e infinitamente personalizzabile per qualsiasi shell!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Languages",
+ returnToTopLabel: "Torna all'inizio",
+ // Custom navbar values
+ nav: [{ text: "Configuration", link: "/it-IT/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("it-IT", {
+ guide: "Guide",
+ installing: "Installazione Avanzata",
+ }),
+ editLink: {
+ text: "Modifica questa pagina in Github",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/ja-JP/": {
+ "ja-JP": {
+ label: "日本語",
lang: "ja-JP",
title: "Starship",
description: "シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "言語",
+ returnToTopLabel: "ページの先頭へ",
+ sidebarMenuLabel: "メニュー",
+ // Custom navbar values
+ nav: [{ text: "設定", link: "/ja-JP/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("ja-JP", {
+ guide: "ガイド",
+ installing: "高度なインストール",
+ }),
+ editLink: {
+ text: "GitHub で編集する",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/pt-BR/": {
+ "pt-BR": {
+ label: "Português do Brasil",
lang: "pt-BR",
title: "Starship",
description:
"O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Languages",
+ returnToTopLabel: "Voltar ao topo",
+ // Custom navbar values
+ nav: [{ text: "Configuração", link: "/pt-BR/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("pt-BR", {
+ guide: "Guia",
+ installing: "Instalação avançada",
+ faq: "Perguntas frequentes",
+ presets: "Predefinições",
+ }),
+ editLink: {
+ text: "Edite esta página no Github",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/ru-RU/": {
+ "ru-RU": {
+ label: "Русский",
lang: "ru-RU",
title: "Starship",
description: "Минималистичная, быстрая и бесконечно настраиваемая командная строка для любой оболочки!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Языки",
+ returnToTopLabel: "Наверх",
+ sidebarMenuLabel: "Меню",
+ // Custom navbar values
+ nav: [{ text: "Настройка", link: "/ru-RU/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("ru-RU", {
+ guide: "Руководство",
+ installing: "Advanced Installation",
+ config: "Настройка",
+ "advanced-config": "Расширенная Настройка",
+ faq: "Часто Задаваемые Вопросы",
+ }),
+ editLink: {
+ text: "Редактировать эту страницу на GitHub",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/uk-UA/": {
+ "uk-UA": {
+ label: "Українська",
lang: "uk-UA",
title: "Starship",
description: "Простий, супер швидкий та безмежно адаптивний командний рядок для будь-якої оболонки!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Мови",
+ returnToTopLabel: "Догори",
+ sidebarMenuLabel: "Меню",
+ // Custom navbar values
+ nav: [{ text: "Налаштування", link: "/uk-UA/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("uk-UA", {
+ guide: "Керівництво",
+ installing: "Розширене встановлення",
+ config: "Налаштування",
+ "advanced-config": "Розширені налаштування",
+ faq: "Часті питання",
+ presets: "Шаблони",
+ }),
+ editLink: {
+ text: "Редагувати цю сторінку на GitHub",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/vi-VN/": {
+ "vi-VN": {
+ label: "Tiếng Việt",
lang: "vi-VN",
title: "Starship",
description: "Nhỏ gọn, cực nhanh, và khả năng tuỳ chỉnh vô hạn prompt cho bất kì shell nào!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "Ngôn ngữ",
+ returnToTopLabel: "Quay lại đầu trang",
+ // Custom navbar values
+ nav: [{ text: "Cấu hình", link: "/vi-VN/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("vi-VN", {
+ guide: "Hướng dẫn",
+ installing: "Cài đặt nâng cao",
+ faq: "Các hỏi thường gặp",
+ }),
+ editLink: {
+ text: "Chỉnh sửa trang này trên GitHub",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/zh-CN/": {
+ "zh-CN": {
+ label: "简体中文",
lang: "zh-CN",
title: "Starship",
description: "轻量级、反应迅速,可定制的高颜值终端!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "语言",
+ returnToTopLabel: "返回顶部",
+ sidebarMenuLabel: "目录",
+ // Custom navbar values
+ nav: [{ text: "配置", link: "/zh-CN/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("zh-CN", {
+ guide: "指南",
+ installing: "高级安装",
+ presets: "社区配置分享",
+ }),
+ editLink: {
+ text: "在 GitHub 上修改此页",
+ pattern: editLinkPattern,
+ },
+ },
},
- "/zh-TW/": {
+ "zh-TW": {
+ label: "繁體中文",
lang: "zh-TW",
title: "Starship",
description: "適合任何 shell 的最小、極速、無限客製化的提示字元!",
+ themeConfig: {
+ // text for the language dropdown
+ langMenuLabel: "語言",
+ returnToTopLabel: "返回頂部",
+ sidebarMenuLabel: "目錄",
+ // Custom navbar values
+ nav: [{ text: "設定", link: "/zh-TW/config/" }],
+ // Custom sidebar values
+ sidebar: sidebar("zh-TW", {
+ guide: "指引",
+ installing: "進階安裝",
+ }),
+ editLink: {
+ text: "在 GitHub 上修改此頁面",
+ pattern: editLinkPattern,
+ },
+ },
},
},
// prettier-ignore
@@ -120,7 +365,7 @@ module.exports = defineConfig({
[
"script",
{
- async: true,
+ async: '',
src: "https://www.googletagmanager.com/gtag/js?id=G-N3M0VJ9NL6",
},
],
@@ -130,245 +375,41 @@ module.exports = defineConfig({
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-N3M0VJ9NL6');",
],
],
- evergreen: true,
- theme: "default-prefers-color-scheme",
+ sitemap: {
+ hostname: 'https://starship.rs'
+ },
+ vite: {
+ resolve: {
+ preserveSymlinks: true
+ }
+ },
+ cleanUrls: true,
+ markdown: {
+ theme: "github-dark"
+ },
+ ignoreDeadLinks: [
+ /\/toml\/.*/,
+ ],
+ // VitePress doesn't support README.md as index files
+ // Rewrite README.md to index.md at different levels
+ rewrites: {
+ "README.md": "index.md",
+ ":c0/README.md": ":c0/index.md",
+ ":c0/:c1/README.md": ":c0/:c1/index.md",
+ ":c0/:c1/:c2/README.md": ":c0/:c1/:c2/index.md",
+ ":c0/:c1/:c2/:c3/README.md": ":c0/:c1/:c2/:c3/index.md",
+ },
themeConfig: {
logo: "/icon.png",
- // the GitHub repo path
- repo: "starship/starship",
- // the label linking to the repo
- repoLabel: "GitHub",
- // if your docs are not at the root of the repo:
- docsDir: "docs",
- // defaults to false, set to true to enable
- editLinks: true,
+ socialLinks: [
+ { icon: 'github', link: 'https://github.com/starship/starship' },
+ ],
+
// enables Algolia DocSearch
algolia: {
apiKey: "44118471f56286dcda7db941a043370d",
indexName: "starship",
appId: "M3XUO3SQOR",
},
- locales: {
- "/": {
- // text for the language dropdown
- selectText: "Languages",
- // label for this locale in the language dropdown
- label: "English",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Edit this page on GitHub",
- // Custom navbar values
- nav: [{ text: "Configuration", link: "/config/" }],
- // Custom sidebar values
- sidebar: sidebar("", {
- guide: "Guide",
- }),
- },
- "/de-DE/": {
- // text for the language dropdown
- selectText: "Sprachen",
- // label for this locale in the language dropdown
- label: "Deutsch",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Bearbeite diese Seite auf GitHub",
- // Custom navbar values
- nav: [{ text: "Konfiguration", link: "/de-DE/config/" }],
- // Custom sidebar values
- sidebar: sidebar("de-DE", {
- guide: "Anleitung",
- installing: "Erweiterte Installation",
- faq: "Häufig gestellte Fragen",
- presets: "Konfigurations-Beispiele",
- }),
- },
- "/es-ES/": {
- // text for the language dropdown
- selectText: "Idiomas",
- // label for this locale in the language dropdown
- label: "Español",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Edita esta página en GitHub",
- // Custom navbar values
- nav: [{ text: "Configuración", link: "/es-ES/config/" }],
- // Custom sidebar values
- sidebar: sidebar("es-ES", {
- guide: "Guía",
- installing: "Instalación avanzada",
- faq: "Preguntas frecuentes",
- presets: "Ajustes predeterminados",
- }),
- },
- "/fr-FR/": {
- // text for the language dropdown
- selectText: "Langues",
- // label for this locale in the language dropdown
- label: "Français",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Éditez cette page sur GitHub",
- // Custom navbar values
- nav: [{ text: "Configuration", link: "/fr-FR/config/" }],
- // Custom sidebar values
- sidebar: sidebar("fr-FR", {
- guide: "Guide",
- installing: "Installation avancée",
- }),
- },
- "/id-ID/": {
- // text for the language dropdown
- selectText: "Languages",
- // label for this locale in the language dropdown
- label: "Bahasa Indonesia",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Sunting halaman ini di Github",
- // Custom navbar values
- nav: [{ text: "Konfigurasi", link: "/id-ID/config/" }],
- // Custom sidebar values
- sidebar: sidebar("id-ID", {
- guide: "Petunjuk",
- installing: "Advanced Installation",
- faq: "Pertanyaan Umum",
- presets: "Prasetel",
- }),
- },
- "/it-IT/": {
- // text for the language dropdown
- selectText: "Languages",
- // label for this locale in the language dropdown
- label: "Italiano",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Modifica questa pagina in Github",
- // Custom navbar values
- nav: [{ text: "Configuration", link: "/it-IT/config/" }],
- // Custom sidebar values
- sidebar: sidebar("it-IT", {
- guide: "Guide",
- installing: "Installazione Avanzata",
- }),
- },
- "/ja-JP/": {
- // text for the language dropdown
- selectText: "言語",
- // label for this locale in the language dropdown
- label: "日本語",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "GitHub で編集する",
- // Custom navbar values
- nav: [{ text: "設定", link: "/ja-JP/config/" }],
- // Custom sidebar values
- sidebar: sidebar("ja-JP", {
- guide: "ガイド",
- installing: "高度なインストール",
- }),
- },
- "/pt-BR/": {
- // text for the language dropdown
- selectText: "Languages",
- // label for this locale in the language dropdown
- label: "Português do Brasil",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Edite esta página no Github",
- // Custom navbar values
- nav: [{ text: "Configuração", link: "/pt-BR/config/" }],
- // Custom sidebar values
- sidebar: sidebar("pt-BR", {
- guide: "Guia",
- installing: "Instalação avançada",
- faq: "Perguntas frequentes",
- presets: "Predefinições",
- }),
- },
- "/ru-RU/": {
- // text for the language dropdown
- selectText: "Языки",
- // label for this locale in the language dropdown
- label: "Русский",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Редактировать эту страницу на GitHub",
- // Custom navbar values
- nav: [{ text: "Настройка", link: "/ru-RU/config/" }],
- // Custom sidebar values
- sidebar: sidebar("ru-RU", {
- guide: "Руководство",
- installing: "Advanced Installation",
- config: "Настройка",
- "advanced-config": "Расширенная Настройка",
- faq: "Часто Задаваемые Вопросы",
- }),
- },
- "/uk-UA/": {
- // text for the language dropdown
- selectText: "Мови",
- // label for this locale in the language dropdown
- label: "Українська",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Редагувати цю сторінку на GitHub",
- // Custom navbar values
- nav: [{ text: "Налаштування", link: "/uk-UA/config/" }],
- // Custom sidebar values
- sidebar: sidebar("uk-UA", {
- guide: "Керівництво",
- installing: "Розширене встановлення",
- config: "Налаштування",
- "advanced-config": "Розширені налаштування",
- faq: "Часті питання",
- presets: "Шаблони",
- }),
- },
- "/vi-VN/": {
- // text for the language dropdown
- selectText: "Ngôn ngữ",
- // label for this locale in the language dropdown
- label: "Tiếng Việt",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "Chỉnh sửa trang này trên GitHub",
- // Custom navbar values
- nav: [{ text: "Cấu hình", link: "/vi-VN/config/" }],
- // Custom sidebar values
- sidebar: sidebar("vi-VN", {
- guide: "Hướng dẫn",
- installing: "Cài đặt nâng cao",
- faq: "Các hỏi thường gặp",
- }),
- },
- "/zh-TW/": {
- // text for the language dropdown
- selectText: "語言",
- // label for this locale in the language dropdown
- label: "繁體中文",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "在 GitHub 上修改此頁面",
- // Custom navbar values
- nav: [{ text: "設定", link: "/zh-TW/config/" }],
- // Custom sidebar values
- sidebar: sidebar("zh-TW", {
- guide: "指引",
- installing: "進階安裝",
- }),
- },
- "/zh-CN/": {
- // text for the language dropdown
- selectText: "语言",
- // label for this locale in the language dropdown
- label: "简体中文",
- // Custom text for edit link. Defaults to "Edit this page"
- editLinkText: "在 GitHub 上修改此页",
- // Custom navbar values
- nav: [{ text: "配置", link: "/zh-CN/config/" }],
- // Custom sidebar values
- sidebar: sidebar("zh-CN", {
- guide: "指南",
- installing: "高级安装",
- presets: "社区配置分享",
- }),
- },
- },
- },
- plugins: [
- [
- "vuepress-plugin-sitemap",
- {
- hostname: "https://starship.rs",
- },
- ],
- ["vuepress-plugin-code-copy", true],
- ],
+ }
});
diff --git a/docs/.vitepress/theme/index.css b/docs/.vitepress/theme/index.css
new file mode 100644
index 00000000..0434a59e
--- /dev/null
+++ b/docs/.vitepress/theme/index.css
@@ -0,0 +1,97 @@
+.VPHero .container {
+ flex-direction: column;
+ text-align: center !important;
+ gap: 10px;
+}
+
+.VPHero .image {
+ order: 0;
+ margin: 0;
+}
+
+.VPHero .image-container {
+ transform: none;
+ height: auto;
+}
+
+.VPHero .image img {
+ max-height: 130px;
+ max-width: none;
+ position: static;
+ transform: none;
+}
+
+.VPHero .container .actions {
+ justify-content: center !important;
+}
+
+.VPHero .main {
+ margin: 0 auto;
+}
+
+.demo-video {
+ max-width: 700px;
+ width: 100%;
+ margin: 50px auto;
+ border-radius: 6px;
+}
+
+.action-button {
+ background-color: #dd0b78 !important;
+ border-bottom: #c6096b !important;
+}
+
+p[align="center"] img {
+ display: inline-block;
+}
+
+p[align="center"] img[height="20"] {
+ height: 20px;
+}
+
+@font-face {
+ font-family: 'Nerd Font';
+ src: url("/nerd-font.woff2") format("woff2");
+ font-weight: 400;
+ font-style: normal;
+ unicode-range: U+e000-f8ff, U+f0000-fffff, U+100000-10ffff;
+}
+
+code {
+ overflow-wrap: break-word;
+}
+
+.vp-doc [class*='language-']>button.copy {
+ top: unset;
+ bottom: 12px;
+}
+
+:root {
+ --vp-font-family-mono: 'Nerd Font', source-code-pro, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
+ --vp-c-brand-1: #9b0854;
+ --vp-c-brand-2: #f31186;
+ --vp-c-brand-3: #dd0b78;
+ --vp-c-brand-soft: rgba(221, 11, 120, 0.14);
+ /* The following colors were extracted from the dark variant of the default VitePress theme
+ * Styled variables from: https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css#L319-L362
+ */
+ --vp-code-block-bg: #282c34;
+ --vp-code-color: #282c34;
+ --vp-code-block-divider-color: #000;
+ --vp-code-lang-color: rgba(235, 235, 245, 0.38);
+ --vp-code-line-highlight-color: rgba(101, 117, 133, 0.16);
+ --vp-code-line-number-color: rgba(235, 235, 245, 0.38);
+ --vp-code-copy-code-border-color: #2e2e32;
+ --vp-code-copy-code-bg: #202127;
+ --vp-code-copy-code-hover-border-color: #2e2e32;
+ --vp-code-copy-code-hover-bg: #1b1b1f;
+ --vp-code-copy-code-active-text: rgba(235, 235, 245, 0.6);
+}
+
+.dark {
+ --vp-c-brand-1: #ff70cd;
+ --vp-c-brand-2: #ff14ad;
+ --vp-c-brand-3: #ff33b8;
+ --vp-c-brand-soft: rgba(255, 51, 184, 0.14);
+ --vp-code-color: #fff;
+}
diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js
new file mode 100644
index 00000000..7985f147
--- /dev/null
+++ b/docs/.vitepress/theme/index.js
@@ -0,0 +1,4 @@
+import DefaultTheme from "vitepress/theme";
+import "./index.css";
+
+export default DefaultTheme;
diff --git a/docs/.vuepress/public/config-schema.json b/docs/.vuepress/public/config-schema.json
deleted file mode 120000
index 84b99ad1..00000000
--- a/docs/.vuepress/public/config-schema.json
+++ /dev/null
@@ -1 +0,0 @@
-../../../.github/config-schema.json
\ No newline at end of file
diff --git a/docs/.vuepress/public/icon.png b/docs/.vuepress/public/icon.png
deleted file mode 120000
index bd23aa74..00000000
--- a/docs/.vuepress/public/icon.png
+++ /dev/null
@@ -1 +0,0 @@
-../../../media/icon.png
\ No newline at end of file
diff --git a/docs/.vuepress/public/install.sh b/docs/.vuepress/public/install.sh
deleted file mode 120000
index ecbb1201..00000000
--- a/docs/.vuepress/public/install.sh
+++ /dev/null
@@ -1 +0,0 @@
-../../../install/install.sh
\ No newline at end of file
diff --git a/docs/.vuepress/public/logo.png b/docs/.vuepress/public/logo.png
deleted file mode 120000
index a10bddbe..00000000
--- a/docs/.vuepress/public/logo.png
+++ /dev/null
@@ -1 +0,0 @@
-../../../media/logo.png
\ No newline at end of file
diff --git a/docs/.vuepress/public/logo.svg b/docs/.vuepress/public/logo.svg
deleted file mode 120000
index 69d2f888..00000000
--- a/docs/.vuepress/public/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-../../../media/logo.svg
\ No newline at end of file
diff --git a/docs/.vuepress/public/nerd-font.woff2 b/docs/.vuepress/public/nerd-font.woff2
deleted file mode 100644
index 60f70029f33240c86d5e764887a41e04efa53230..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 378316
zcmV)EK)}CuPew8T0RR911;xw&4gdfE4CcrH1;uUv0RR9100000000000000000000
z0000#Mn+Uk92zDDU;v0N2m}!b3a-~oq}px^^JoA8HUcCA^JD}d1&2%rg8CU-j4is5
z=U|6vP(gtfy$|h1G)LqtLE-H8bGV8Sm7}w!K+Umx
z2S{kCm2NVKn@(OlH_ep&|NsC0|NsC0|NsBrQ}W|6x86+1oB2P<&tZU;7D}<4awtVm
z4p~$L4?snC7c>vCD63RQGzE$_rtU?7qF*eq6h&MXjiYY+fgubBD`7OYLRprUX;odD
zte2e<#Z=i4rZBwJEbDBx*^V)U^;|1#L=Pqcw)zl}dQpUC8v#4JQFNk!6>`tFRBpf8
z*9KH5C=SFSOzy~uVOJdCwdj>rS(9(Xah6v|GA1i2kLRY0ZOak3NpS-9+v4phMxCIn
zM4Qp%nIsa9@eU5x-mj|X8nd()+IhU>rF7-$7={nLmPAQhDeq~__>W|kSP=>PNHUORcw>@znsjU>jwV5DA{pE#cxyw|^N{%q5Fc1Se
z3K&e5+8114C{3wwZ?G(D;wz_u%0y5E4n=1}dM|7wqbP@BxG+&kf|)9ftcVF(S=$6j
zCZ$~^m}#!e1v7>TEK5lQ`R(-khbX#*+|9nioE)E^0SOwVnQ8XJG<%>);-qyrc@y2q
zTPi%fK6=Eh*78Pj1UFEjpxiej6@rp;d+}(|OW!X`Iyp1+Pm7?5C6o4sMpBMUn20c#
zVg^%2gi+KClv{`Q)kcJ^!%e#irkyjhuNwlz9oV_HIs0aE@QF*r&$3Z|5rNW(Wz(!S
z#Sl$?VCg|RLCQeGJq{xX(@CwUOmQk(VAhewN;|3=OvLoW0^#5TrH@Q83{PC~a<>RF
z?V%8fZ_)nTtHvU9Wd-tWXxbpEwW(_rsBT8n98|c>sT;v`u;^mYHFw_CC=h&R3O7v+
zR7sW8=4RUDYj7=XJ|4Xs5AjrL11ep#6=rk7Oc*w)ksBb1-#lFnueWD|V}yayV`%Cn
zl^z$S8%gen?_RIj?vgxIW+!BA1l5v)f-uWmQdXQr(vNk@U>Z!lBOs8*|{
z*zm^1PT&~Z;T@x+b6D{{%IU+BT+~|fBGHe
zsUSQ%Wf%RQdZO
z&d<-#hNfwnrYUlGjCYkxZYiadiX8q?tEH4uN(oi|ew1ir?VeIfsmS5;R2%$T*L7Xj
zDD;${C$;VCx~}UQRsJ5;loD$6CH^jar89e7w5_)y=I!r#ZT&n4!
zuCe%(@EZ?WSy)ET!@ho#-$(sG<$eCB8}-*YnG`@|+Xf}ejn`+P`xx|Gn)-Z^o028XpT;fUIQ$Yi~!Q)B+1p(oysEE%CkBbxqOw9w$t3y*O6*V(6
zbIT0rHX$?DTI;uM+i|TWw$--nuIjXlzSL2^Rkf0LSqazv=HIq)OCDHE|;5^yk{Xno}dxoTg^fsUwjG
zTtuPnOiRS6Ilmeq1mwTlr|=XLN(1+8UD%7LJohenqJmVZK-}?|1^z34eqQzO-!-eZ
z$kDFt+)=7$KzyS~j;0*#rjiLG!pZ^j850B{;LpF){QtG~*0!t-lHme9qKjV-h|U!l
zl1Us3CgWt1Op>v**N@dcv^o#Z;okN#6b=yBQagRn_5r{Q@OJxm&Kh^takz8NS?jEI
z%Q@?ubJiJiBy-+bSs|636+$ISQYlgT!f!}hlE(JeH`D(f>H0#C8~`>!*ye!OfajcE
zxUsdnhOiTsG(W4A?NmuC`vLs{Ve%NePY)P|G!tN(w+p(+kn>M*qo3_GnI|4CI0T%X
z-OMv-&7`hyw$4;Ppe(~3hc?ORaJnfex#9Q!zNz(HoAsHKsu{K&GbAiS0Kl7jZ?)70
zwOTSphLNGF?~j%2?t4#~%p#N2y#Vz0XxJQh%lV~0hqu7Q(20T1T%jvVKdN>`CL;0T
zC$J+DFaMyq=jZX`R%H12{QpR2{q-;}*oBzMJE^j$I{yNhcFalF47Ru1opgpneq7p?Uh8W}Z8dGN2YpuoTt26R?G_Bb?
zMX(`C8Q2AwTNp+(wP+Ziy8X|dEU`Cs*Y4WuaI7Ucip4t4#OAnjhbW146y-W|t}`Jy
zHl$0EvJfk4I=M!r(O)qp_>PY3%a92RHA0{!zF8l5wRp
zj$FNMN=P7W%9wSOH~I!GqYmmZglj0V6bFu7wc@j{j>ly{eg7z
zGYAx@AF@=I2zU4H7&FBdXTs$i;bcb~MYJ{2FdPf=5xZE+5iUm(tY4W4UBOMW%dIL)`l1<4s7pARCN
zMwjHD3CMQsVGd7o`gc$6Jh{8%l3;BTto1-;)xU%UDwYJOXpri*E`d_}7O1V$;AI-1
zbYhT}%9N1Oi2=23->^;;sZGD7dp|ARf&mLGWr0%*{L(}+a9W|IvMSyd7+mo&9%yjI
zDHJrPzyH^=@6TzGL1s0ndOeM+`{(6`C`ouRzz3{~J@ifW|FxH&bT11WJ59-s6E20I
zfH{X(+CU-D97@vkvTgm${LcK+g21rLmJ|?KG6Zbd4z|ti&LjS!U;2wuwI4h_w_BqT
zj7Fo`91bDSl+4IlS#hg1o=jjErWu)`wX!^!noO`*1d)~Nn#CgcSbi3BUier9!7>W>
zx?Lz1i^b(v@t+rp#Z{?P`ugXEVpRMp6-xv3Q>~vFKKgt|qtSSbF_vXnmStHUPsU?R
zFeaD~LI{~mCez7;5Jgc{Rja6zDWQZ?qE)@B>#AN#2uCSPy{^yoX1#ut@GqYd_$kGD>!v|zvcCNcu
zlvWVf6-N%+jvePQ7>?#56T52zCD=_KY@lEd9&Et2Mgi-KJrE{PblK#fb%BGgo7rhR
zgn%E-eIB=cLjhaKMgR$!-6Q%?r0kgJf(I6!R3)%V4rEc*w*VS`pHM&FpaH!?MrA;5DSxVv0lCl%=wG^^0WLrnbaIE@rT+iS
zNLrW?EELW~fHVUOfdxSv2W;=!D`|dq@BP!B^Jfg$g#eWuyJ@gMr#;X_BLyC$%>w}c
zznp!#ezivNdsUKcHH2Z8Gu!O&?E8N=1iOF21Kd_^bgfn1m1o$0uqVV|TOnT2+0T7B
z?dwuYNv2DZ9sUHTML6+^Kwub%6DOWb2Jn5`x^&Ilx^_8^2O;nYK=6t8v?su!GFO#Z
zB|(!}B|%e?Ff+cP-B<&?*0l*!29T{POdE`Vs>)Af@7c`RUz&1~FlC%11acPR1T>Pu
zV9sE=`@HGDpVOdAy~CdZ>gqP?LBb#JW+U7x{ER5*v2gtV|1b63TMC|S=g|d8w&Q@%
z0kUKJ0pQ%Zk`<8b0NTxSLDKx3{qlEq%LfK*9uOof$#wv6=1y1tUi;Pl_umtmRZa9~
zT#M^)&02@FSYYj0Al+GftvsSIs4yx
zadq$ad>>1oR1!xaENNiiSBd|GONO<7G5>`i?G?{l@vgHBe0H9#!s>OC+e-V&ocD?hTQ~&>^
zskGJ`32Y~A4>%6B>4h|<3)pimaNsd~f&&xn`)1O;v#q@ahJe5_228ONr$K1D;eUQS
z`-9OB0^7R>)U?J{=x}fxkqP7*-|cmBW^aGy>hm=$vD86qX_2L$@1@@5d2)bems<`U
zPI)>U1JZ14<UjZ5^^iRF(*ef(WR%5fC>rwg`xbinvfoH_ph?
zotaswnX7F}{nCb7Szmqief5p~t?%34&&K@zzwr^(zWr$q3$rd%r5gD{e}UQ_n5^gzyMT2XXFnRP(GA}0;vBh
zfC7m3kqhU8{a^qFkQ=$<0xsYJ&cFd&zy&;j3%DN+pnj?w!*w{ldV
z0u`um6{v;^xDN*$sDJ{>p@8zoeK_D83Fm+V?jsFuaKL@IK_Aqd`p~tO|5b%%6V38x
zx!jm#zuhQ=j`Brd0AFGlz~FX62-`sC=>Sv=5agU6N;^PDr(Fa+a2ev4aPa@XG_AIQ
zBv}ngJu^wQquNqqsj<}9t#^x!Tg}e6`1kz)BHj-qfgb>w_<^JnA4yIkkfag;P{j-+
z)g)Cthm@-8NbQ_u29ni9B+C#fX^NRrnUvZ|ZKd&US-l)URq%BSO_i)h)}yvnT!+;8xE++>@%{|Nob%)o&vKvIMe9U4YuL
zJ;$rYa_m|fW9@2YvAS{Ji-;F5(nLmN0-2GSKq3Krv
znE=QpC3cTgW`-=Oj8uK*1PohAQZ)sTRF_=$NGfB;lpW*9GE=s_=A7!8@5WfS`?H&6
zZ~tQd&)&M#|GU3f{mtetXS=qmIp62MSGC%{4~jA@uyjUiN1cKE|5d8>
z+lT}bf^4&zlI(7&N2y2okMi%uhJvJ?r_~?k#VX_87ZDlvMMNTBWCBD)CWc6WBq9Nl
z$OI@elcX~uGs(yRK!c!UL-bG-CH0Zz8mOVp(cp;yDK$Y4UnHgOl3cT^dK^}NP_ZZ5
ze^U8R)1+T3|HbYv|7txhw(Iu))m2|=RhQ3neWYj!gM6SCAq%=CJ>PNJQccl7;|Byw
za@ER`e{VH>SU?B~qRpet;=ep^oapI)wWv%n*UXB;;sggW|NqtW-|sv_ax6N9RCJ=~
z*tvE0n-bXPoO@>Ox%WZ@h7^SvDpGoiFHm|R14At@0MuVgaul7S{;%xLWyql`U70|e
z%ziIf!roYfF{R6!!VClj4x!lZd^NRn)Q)m?v#X_ZDjxVi_C}wt=+JVbbd-&*cEbw!
zXpKb(P?T~RbB!G!wHWxi0*W4EEBL=5Mcow{F+l+tefgu~N9O$hp0LDGEmYA0l0X6p
zVMRnc9JqSNyZ2AXwn8RL&sQHM6dxiIWVyZYzqEDj{dV`pQ@vl+s8M4?L_|cy7<`hQ~1`ZHCxT
zP^Jq|Mgj>Wu#@1}t^Og2?ryJz96X2&A|h!J8ze{&5qbSxJMYi=e-NuzyWKp59Y`4N
zT2KPXmbbt5ylmRP1RK+imQg_)EX7+w0tCr+_eJFYUbp9e(GTZz1(gyZkU&CF5R_s9
zlVm2-_B6TozOQGWzg6{CM34~$4@`pY?h&Z___yxMbT$epm-rGs%|&tnQb-__W{hl0
zwj@h%_xSDJ3jj_6{n>}-`F*<}_KMEzX$~g_8(DY29TYu~cb6YRDssq!jagj&0z`xt
zYd(jky%hZh=GT($!C(i>exa@2Q2g;qz*ThVKacsB&chiUbF~w%yikR@>P9#O^}FD|dH
zFEt#2O)vfbj@tuC5G@^g_-_y(4#a{O5M5ik#{ZKo1YWDL;c>g14!cUJkjtbJu}CQ3
z^SB%~i^-tVsALk6fX87mXcQ9Re_m0M4TK6a6WR&R`B@Lb2grwJ;NRsO&^}X7L02&R
zvfKfOJ`!B(44|zKzpRTWzWZ>44`INX8~VskFQ_Z;B_4tZ=6AsPQ3M!}fDzIg+6(k`
z;Vgw03f}v8hy$hottp2-kxJ{>SX=74Cj65;R=F6SO6zkKJ?mM%-chXCQX641F0T~V
zqOYm)&O+1s5(SOG(fHDwl4cjf)B|ok14{7?Wz1SsI~HYVf#e6RLW21^2cB2TGI_Zp
zDG30wDNCK#AG);kx{cQp{CVAVZXGSPTA-?b&|oO(R6>-bu=M^HG8>7az=Xo0*7Zb20VEDi&7OJiaxwGwr2IEi
z2HV=Mdm}Ds0D8PNf}nBW3_yL88wwQhzmA9ffk3hwE%XoKBp3`v7yj$
z@4LdjY`!k<6n-xjyR{X+P?0@UJ-aV}_Ed5{N}UY+zSn
zhBS6b`%W5)$a0Z~^_Tf#B&fT6XscUUi%sQ}vve^OC}1-BGjatIRIzBU1@Fr|cN1&T
z@BNG5R^T%Am?~vhwPD6H3r2^6?-XM6mgVbmJ;6FlCJVM8N;2QcQ7)gyJ+
zETAZN?o0mK7H0P2x!i;ACbeAiME7VUr_SO=g?@Lun-88Oa@-<8O8I!MzeHlEqQ1-~
zyC;A&(&uF=Mnll4*^W(GxZ)6z%nW!+AC?*J#sVD992t~d+ZKv^tlnHvztFXUX+LO_
z#VW3CHnp*J;%xLAGzm}tKN;V1^*oE#KBA6=xSVChKd5f;$1j6Q*#(4uw`~Euf~KbZ
zR(!67Fbu`*M5RpmB}#DcMMs-AAr)wA2HX^-v_)1FMy+p*^$>=xT-YO3=SsH>i~!xr;U
zAekd{fi)%4+T)U)y|-E^GTA0q?;b0xEhWq=yzC8g5~mi*H?`9&dwEt2XOeItyR;h=
zPtDYAWawl$q|NFpLB4z)Gh|b-p#Io6RzKES(C8s%BO|yqUfBszrS*-QOfyc#H6U{a
z5v7hY%yxkokOWF1(Dm%~Tmk%yc(}C9jrf)UrjZ9V)+~`Q^G(b7qVDT$Hh>2m2=g+g
z2GW=eJ8H<1-Qxh5j7B1!2-iGPc5;4gHO&xlfyUpxsz;Dl{1{~Zj8-2W#^<_mdJ-K`
z{!m;ET;OPz&=}?vP-dHh6z!KtCVyru{#l3qM)(0*|nCX6SIS&_##v`Ne(%y-(26*J>@AE<8p|RTDHqAAu>czznLCtYq4gYIyuR4EaEP#GtEes
zA|jM31z9Fz++f&V6j-HBU;i9Ouh_DX?vbNST^P86V4CMgOJ&Gn(3oZH(@|m1rqG
z+wGU1PZpy&$4J1_h^7f6+`{7q*1FL3DaI5M*!AELxx`vq1A&fQEUJD=gqFoRjiAH8kf42a!~Mw2_?c(1n!1(i|-C498<#p&5~O-mO^%v!gDyr(L?V!J*hKAfd<(D9&`b=zo$Xn
z-X~V!feUr^drpGC`jo!re&2JfNM7fvL{p)A$e%(IS#Pg*DK*ZW+w9+wy5s1G<9eE|
zf;^*39Mz`}!VpIJGO6#^WIn`FK{)Mm
zCjEhU#*1n8!~K0xyAedKP)L_Bicjng%ZRu*DSB2~u|K{@GcPTX1gec0C0vRkf5xrh
zru$;U>@7{C?Uyy*{%Q&lnS=c81{V(ZGkxp5ywpvjyT#d@
zyHKoMINDj97SP`)cBj!@^Xhd$WLqxK!~Oq*M)8wd1nx*Qj|z}Bn%4x=ybyHY@W2oY}RWt
z(t3Iy+gFxFraEox?yE45n9>Z;28?OdQK}Y7HGq0c)%=0lm2_
z`DM)20dj;})NI2|Ic2Q2oP^p-@kr4#0;bv(LpDkf2!MyDDHDvbqSTsHXw>
zIY$&_=(XyM)xy)UYPB}zy}za6yr=ZC-a<=}O~`H%7z5-WKCC0-;?3A4J5g+ni8e(j
zB}lQMBRJ(K%1%UCrJCyctZ8*Y(FHVQ(ZMXf#3MylE8TL)Aph5sPLpxkIl2e}5rv?O
z$^zYF$x?E&v6P#pH3p@&5y}*HQB!0s95QlGRI@y+m2CxkIdN5uPsL6|f
zBunQEZEo5q?uT@B)50w(QjG-p7T%;RwCEuOnqJXq(x!9&Rce*=idoK5EBAy1aDAks
zVrLjrTV;?iNP%&da%B1TR!4WD3B3|Kr8`i@b%ThE7hqZH`-`f2sD5`@wc4Uq<$5>n
zi=Aknn}cN-kzD4eEtY{xscGJVOHCy)Y69xJl)m7=&}P%1Dk3;l@($g-%OQ049%U4?
zVbb!q{P5HKUa(bZPa_ws$hRx3gGv%3g6D
zEqswKp8mY+0YXw^9WG2{O&r-$MdTo-loE=_5s_6U)@^UJhEBBD&i0c(wdYSw^qfC6
zmCat8`7D_7r|!Rp@9v-eM^PNdi^*!M+iUW?>b~G!aQ7Tg6ULkyPNd(Tzy8MTFtNbr
z{Lk7|hbG2fbZdrT#U@zCeMVi?*cuI1NRL0or`Wi9CE^nG94!FE
z)ot3AC(dymh9O*bf4Jm)O@QV6D8oDs+r`0jv^*Sb4U=icreW{2J9X;13V4_%NnWNx
za?XX2@5Oczhxlw9_xt_MTn8CrjORBF^K0XH;VQ;JmC*}0ICfg=8HC0#WOKpa!C7<|
znc=bJ)hmxa_BV_`;<}OeQVZa>QDcKR_YH0pGxN?1KHs8pvTq`_JC=}v9
z7l^S7E^pF=_=@RQ%{a=0;L7jr_x)2XEJi-Ma6TUw=AH0%b$b|MIDtbIYBid#@VYMY
zrjw({i59xrZ5A_1#5QiM@fusi@;Bq%z>hYMeQ*o~&J?sfzkFac=yiF0CP-)=RN5Ch
zkV25wc}&_+wLnS;Ofhph#td=8jyK4h!485j`i_fyw@xA{t5#KYs-}a+#M^?4K<2$F
znDEh!w|DaWv&JmB_}
z1Ri6Ic>#}OZ~OiD{p%3Ey*_^Oo*Qm>;)xcB&MDvs{LJ$&V}>(7;EN^djyW=Waq;9}
z0%W+ID`9V4`^T>S!AXJscY-S5-507VaO-Rs$?!N
zyRE#b({5dMiXzIkt8QN8A>D1tES>Y!iNGM3PJ;g<;CYuNV}k#R7Z9tqK|172z>x`o
z(zS2(dRxvUdQ!BEukN?W`8Qw>jIZwxv&H$OpCev-O>o)lmyNrIyQ`C2WD`zA;d9PB
z!4*Gzwl{lIo|k2bI5UG7cS;p==;ofsV~(xfcVChyFJ#=$zuk?Y4|nl47~$b2qDK+0
zLL6ahd41I1IKMExaV*I9C
zlR`YT0ey{lxKquGd1f?8VBpK`TJ-&$uzKyX1%;R~x_hLQFq&nDHk|
z%CE&KiO=7D20g(%@45p?;3@U$naf=
zuPCj7@Q~A+)yKQ!)$92O-yIcbarGKFMqjp1RU*FxepWG}?QuNHLjcD60
zO5YzwnOC|+?8TR?{3*oL9UY$>UybuLFZx`yPDGdeOFiu>4b{%oTG!7^UEO_sX_nXL
zd)2nxpCR6~O}}3N9KgMvDuRI5?in)w_@k!>bNKQ(K0Y?<_4x{7r?MQz)w%a?(0fLU
zUr>(2bpPy&N`C!89kt)UK^D=4GJhhCZDv;PZk_7I$MNOEOMJwKhu8Rcs;9b)+4|@9
z6Srjo>f`BY(NEM3;*3YT{dQpdSb~w<&X`2+gN>FJ;ppLGyKN%|PVau$Hk%IxM+*4j
zi=VAP&!l4RuCn(@_SF``_VEukS|fVs5AFW^cQci(@{p_6z|
z00dunjEb+7R>yhVV3%&jb=fTs8{VM2*|NSb==<4YsXxcBVqLUpgKO#EmQvJwlqTD8
z5REh8%S9QDSBY)Eu#{%2C&xMr<9MhSPd#&7^~wAA|6})G9{B)q(D&{7CstMOagT%Q
z>*h#QKj{96LriDwz#M)Z0eF?w-C~t0W*v_A`mu%dg6irEpwp>)LRKvlC(bt~XM@PS
zw#-+$YxJl}>P`_>=MHrJ`%OXg@HV_XoSq%Fn{X|kZ>IsxdaFZwoi){rxWg*1Cs`Ae54Y4P-AGvT0J
zfpQmZ1CRLTOcfuS+3~(3bX7|{t{*7cJqR+p$)MgWtNVIx#ULkk=GvW#=<}LI70RVaEx_ac3=acZT
z8Zc++$uIZIIiSzv3HCuNtTFmJ0Eg2#Z%UO)N_nlpGn{k*y+k!+y!WQG^2d@2ti}@&
z>BqUBs-VH1bQvn{RjP|h^n$jF%l(@C^~EdG&HG_0=c4s)`suexr&1(?E3eHb{!Z`c
z1Tj?~zbofc*lhH+Rpa&3l+arAT3aWX*DRS)NlBQ)*mkJDsXRX9*SO~m>49i^>l-u2
z+o{pUbiv*>pZH7&@bu2-G`gQ~eR8V@{eYg-C-BKtzWOMuegdoNjXvqSw3qfyKXc_8
zI%KTRjh6*4P8;OjObE`U{>GpPh?uhQ|3Qdj2pD5{o;z(bqIlb+=&Vo%7)sI`%64CF
z-Ved;9GRpwc`7mHxl!j*HD8k1m^+@Phuwpd2Zs-nZuI>Z2M%Ys9ga@l{p|hE<^W)y
z%WyQ^@UiOkwIWkfDO|6man|F6}?x&I~ed_$HmxPAr
zFR_k)WO%{IOo3lJ;M(X#JW#ETCWb)XqYp?JR*gevt^0HEoM`>l86-QBEO_YZ=1KAs
zt@-rmGD&XlvX)y#Q@(^I@85nq-U`Vrf0B8AaDOF-Uw-VgCTePf;4_K&>u<`waVV~8
zKfr{atLx|77iz;7`wS1yy|>0i{w5
z;Ap6$L8n64-hK&w_AsIuKW*(;09xid|KyML(n?;&ZGJ2#5Udl6>+iupMc^rmw4DY}
zKxm;y=vxHAIxZY{SQrmfET!vO&iL8}FSM
zV+}xWjp5Db{J59E_CiCyP{GF88L%rOggG6PZ4lsScYp<93Z4-vKwTUja8&g
z(Ylo6Tu6W9c`j0j*#nxs!S?VHMf$QV@<1EbYdZa8N(nmBWHsBjNyzVxOYIPC)9lne
z7My8@W!DaNZIth6Y)ts1p>2V!SAZy@D$!c+9k>DR>#|Cn46dO?0wocHOBOX}&T_TO
zc_xrchD*?u#FPMZo+gfqv7@>3o9!_-MI5VntKBb6K9%3+gQ(U)Qa-5IlVupRaZMw>
zDGkchZC&+G?q*OCw_C(21x{C7BEPx3D58hCXL|s1U#w{ZksXX9(&**A0HgPv70e-*
z0=Xi?;}Zw?noTBw5RlmVyX2HmF!hDC>uNyifRbZ^o^2z_HEKPitim&Y)q76yEocjG
zRs_|n^fZ_sgks$@mv{^}F!C6Lj}R}G^{jAg*x~AO%G0n7B0K=8WGCIq$4DTwMP|@+
zF83wi?h7%7z<{<$gs$Ko8D-_nkW|dQrc9Wv6+*}^3vCG99bm+V#NQ#Cl|y0<0+kX*
zl2)?JLxE|a?OJtm$z|NOHQ>-0kkNgatj6{Oc~Z&tUg9X;$MfX)L(7x1RrNQ;oR_Mt
z-v(`1KT(m827vH~^n3tnKaks|8kNyPQ?yj|n+|kk45a?hvr93FNxGxHpPi2TMDd
zSy;cP*(6J=i}yw{Nu_evqwC->+-vYiFiiwVZ+l}>*leTTKiO@h8%Hu?!7!u9Y?$n(
zdv)AO`|PXdA@dBtxGrGU-k^6wM)0Po>(#N!7P2QJ)&qCL@{OyJ>Q!%pU$d^|!}UIi
zPY7k}KB=Yl=jT<@cCH5LFmzu2ca?>UFmf&MSp;y+Yp4Sy8AicIBM~4VWGdfudcZIblvKn
zdunM%ca&INAHy1W_|W@mA9}fy#f6|}D(Voi-OfZ&D9AuUlvK`Rzw18VlRZODTj_(W
zRUTNLM)gKT{3Xf6Y1*v0tLD)Gi0;`z5p=EwnCFubmf(HTmI&sR)>X2*F2$-_c?uHS
z0z(fXJ=k?!hkD;MfOA2zh}M!?$rL0m7Rk*?^Hyz~Rcn$y)G6_zCwe{pzOez{_*Ba|
zP}hZ`6_>JS)K7ktzudd+&(jF%iZXPwP2SQ&UGZ)tU&h$7SN=u{pi=!IG1eDDuLOSLe;iJ
zX|H0as?ZKvZaG&qOlo0XZ)$0Pv>_-Dt#`kXwgg)q&$>6HB*~Sk>HsR^IyxGgo^>0PU?+ru4AN-zaZZ){4v(4ERDTNJb#D~DsVxdKG+N2F+3MyQ~m
z0`SZSsex!~A;OVNrYeuE+2hKlIF7Z}*7zwPNopH%sTnJ3XzQf9L6{;INp$me+qTqo
zE713yPqU*yyik%w!^DM}!Xt6jraD5m5VS%tf0TeeZBSNLpd+=`1TF=I9uxu|wR$QN
zsFaiOW)_~@`c);1q`gpfofWX&%gl?V-}F(M*JPq2ZVb4Gtm
zs-_YFP?ZQ|(&BO@F?N6_QdXTH&Y-b4K}q#D9dyuQ2@<6$V`Rz}#)w4c)VF4L>F$TQ
z!FyA#e)!cRoEvEnI4@7JzXA_xGj!#iku48y2$-_-%
zrj4HC8VeS!%OtZ8%HSRUH_-9Wz>&GDEgs3`QIJ+jCnV#&&lPq`^Bg>s6J@6|tG`LJ
zDWW=}+7fVyWlbGEVs94AV76LuXl5&UIH4lIEWLcCBJD!q6K0OS*Vtgv3!(9UjK(E!
z^lD9)-IQuM_Okc4p<=7?@^Wn9{ld)1zyJVnGSivQJ^@;X0vN|klJjiLdrr=AfN>R#
z+0}rv9_?%Xrl}hbHdoP1p;u>6t21xzD>=US4*X$14Gw2hp?{X(K)T_$lGUpp^7MZJfIkek*ylDl*>8XEu=@RLJ84U
zwH6zY2x{j5h#Z>K!)T|%T`=sOw?s@NZ3w{|AGKOn;2ij4qXC%FSluKdkWb4n!r(>7
z)G+XRjmgoo7YWiFQ`#5)#T$(2j;*z>JDUqdP>`Ai(6{7!LaEiTSz=l!1UD(YrK1fD
zqVMzMJY%nKJEv*R3jiKr7u0;?yUqjAaeY$tDxlBa>az4j4A)VjL0aEdoouu5P8Ij1
zcz8#laXeHO+W*>#fL>8Uj)56`%uMvmJaLF>z6c#CZ*HP_a0ulVvUbzbgpS+bY*FMg
z6fSF>*DQB*!jXPiFUe0-4kL7z)i8n`ePZN;F9G<9_dOC5v1gMRbDqNr~N>Z8)
z*G*N9WA&cofe)U!4XfmeP5ddJ-^X}=A!KbM;+`=Ht1NHm`?mDx(7Fj4aK7G>=EcoL
z&JUzGn%a64Q$x?j*h&+fSv@JbFWr}NiE)=+1_XD_HUqKN_37{}B?U6n?oyT!G}mp2
zR8kOA@F$a6|C(SB$%uwXo;GfB%y7l!?u-;O!su9<*~vu_*U+4G+5#-CbZ9ndcSEB{
z5mb>OA^Gw=VnFY5Dh6A<1!yibfi3zOQK(0fVRsTanRCy9}q!GUI-Tmw_w;5^-##VBTXN-cPW@;
zhc>kJI4zN;^jOYqn}9hd6?nyF_lY#yZBG$H0OK<6ud0(K%PlKhXaHS;kHeR-JriG&
zFi__hmUg(Ma$a+t)DEU?kVeFW#tp7%v|{fSGoBgMa?(CO66r#s@D{Em&4jkWJAwtH
zFiB<`iiY`w2qd1~z(#mH$?05rbikuAAX5$IQs$}y-7w(H!T2jG&$T{~>NP$TkI6Sg
zX`Uv0JtNR8qW%u@K!GHwLwD~(xV)82)Ea9#ObK!tlHjn+`6ew7;L*S}rJl&_ZG`Qb
zs2;45FJ$#@bv{4_(m;{Kmc04biIM
zccxElPBJtJpJkUM6*+H=O=2?ESe())8FcEnLkscvijUNlisgC{O^rr@L)zK*kYde{
z9Q-gO$epF}$HjyNRoMN}OVxU>2CW!oD&$E~(55l*HjxX>uS4F7B9)2g40c-kgDpd}
zb<63D=%^#;NQMrCSf6Qn0SbqMKa6nj=s>WDDim6nzLiMEszc9u9Rk66Zr-U|Y`55}
z>Q7PdOzbM6b;rCh@cwpto1kjjv29sIp1X=N2|?q-GlWac3TgYO`REi1zrhSdB>~q&
z;-aLbH1ceMj@6X%C{H&OW|NSHej0p{={M`$W;rYt5eM#Vbu~oCba(KW=#t0!XqhDA
zS!s{h9og*KgNk!51)xP^Dv^04+UXA*ezc(@$RTp2l#Dk`Uz#}f|YTjS{MuU;tr(f(N)Bp
zV{#uzl4iSY+(?Xx9%~#j+`+ybWtnJ
z@8yw;F;EqY^qyWWBY8G>m5B2L3PzS%0Y=11!(2qUio&KAVW}}A555)33UA>PND8gQ
zs0a>gmHQ2G_I8r={*JrV1N
zROhCWd@7&FSo_n(8tH`mc|QrJi}Uj8L>`(1mVy%A!ORkuzZ+2w{5C$wrQtOFPzV9$
zZ=I>ZI<@&j|0E`H@P+G8(8#bx;LGXAxPE=5Tqx>ceNfmr`x&xUNR4l5Ex?W!s(K#6
z>t)Pg02M+QHl{`(5{UD;+&{5Dxr+Xa;Y7NQVI^1AN8x>*`m3nsoesJ^DIn$4jH0|A1JLlxLOLQRk~|U_ly7iLpQ5O$QI%t#6YxvopkM$k{jI2
zqq)Eg^n@xg1JX6ajpr-*70wG5+I>rezPky8eCas_F3cI;U;hy3amqIcCDhX~8e@gD
z)|%CtxHQ}@_6V0`&MRDUlL0OX(E?xqs#LjTHKWSZ)-uqIW&=>1NyYSPrHOmYxhg}j
zoa{TZSr`vgF=5&;CCo^~oQ%rj9o%3qk(Mr9Le>TOa#90&mD)<7942^WxP#i1zkQSn
zrATMjZ?x_Mz29fF^fa$kr<{1PhqA~d+rSQBx0H(QV=@Hns@_8NxkOb
zX^X#OYlLs4-LCtfFvIH&A8%AU2Wu9ie`p?nZ2fBAy}de}%|KmcfDfrEDXGesDoaOI
zXepvcgC~3a=_FtBOi+
zRZ>M%O5$Fv6q)ZF;$e8%U|`UC==)=U?M;KAYuTnlYyX`vT-Xe(*Cz%3`sS~Cwy~U`eD%C
zQ7)%bY@*J7WWsGEGZM#qUP)*9Sb+9V>ABXlAD6iqI|sh@vWQ@NkA~bABEoUW1y>jR
z{i_7IzqPCW@bl}3_+{Nk7X|PcUCV0=!_aljbFTiS<=NFseCQQZPtsq=9}=Vt&-EL_
z@ny#&N2E9s(L74NRVud!|K=@Ub{{rC4JRVT}qTjvKIC0a}km1f4<)ApADP?|Iw-~J(-%dJV>%AcJ&@7^2axXe%O
z-R)?rQpcw&6@RtutI-elye2KaOIi=U=ZCIAMFK$I&rVNRvx? |