mirror of
https://github.com/starship/starship.git
synced 2024-11-22 16:23:17 +01:00
docs(i18n): new Crowdin updates (#3212)
This commit is contained in:
parent
8ae6548dc0
commit
9c68d181e4
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | الافتراضي | الوصف |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | الافتراضي | الوصف |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Optionen
|
||||
|
||||
| Option | Standardwert | Beschreibung |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Die Anzahl der übergeordneten Ordner, die angezeigt werden. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Das Format für das Modul. |
|
||||
| `style` | `"bold cyan"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Deaktiviert das `directory`-Modul. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Standardwert | Beschreibung |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Die Anzahl der übergeordneten Ordner, die angezeigt werden. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Das Format für das Modul. |
|
||||
| `style` | `"bold cyan"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Deaktiviert das `directory`-Modul. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Dieses Modul hat einige erweiterte Konfigurationsoptionen, welche die Darstellung von Verzeichnissen steuern.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Optionen
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ Por ejemplo, dado `~/Dev/Nix/nixpkgs/pkgs` donde `nixpkgs` es la raíz del repos
|
||||
|
||||
### Opciones
|
||||
|
||||
| Opción | Por defecto | Descripción |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------ |
|
||||
| `truncation_length` | `3` | El número de directorios padre a los que se debe truncar el directorio actual. |
|
||||
| `truncate_to_repo` | `true` | Trunca o no hasta la raíz del repositorio git en el que estés. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | El formato del módulo. |
|
||||
| `style` | `"bold cyan"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Deshabilita el módulo `directory`. |
|
||||
| `read_only` | `"🔒"` | El símbolo que indica el directorio actual es de sólo lectura. |
|
||||
| `read_only_style` | `"red"` | El estilo para el símbolo de sólo lectura. |
|
||||
| `truncation_symbol` | `""` | El símbolo a prefijar a las rutas truncadas. p. ej.: "…/" |
|
||||
| `home_symbol` | `"~"` | El símbolo que indica el directorio de inicio. |
|
||||
| Opción | Por defecto | Descripción |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | El número de directorios padre a los que se debe truncar el directorio actual. |
|
||||
| `truncate_to_repo` | `true` | Trunca o no hasta la raíz del repositorio git en el que estés. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | El formato del módulo. |
|
||||
| `style` | `"bold cyan"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Deshabilita el módulo `directory`. |
|
||||
| `read_only` | `"🔒"` | El símbolo que indica el directorio actual es de sólo lectura. |
|
||||
| `read_only_style` | `"red"` | El estilo para el símbolo de sólo lectura. |
|
||||
| `truncation_symbol` | `""` | El símbolo a prefijar a las rutas truncadas. p. ej.: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Este módulo tiene algunas opciones avanzadas de configuración que controlan cómo se muestra el directorio.</summary>
|
||||
@ -2513,6 +2514,9 @@ Por defecto, el módulo `ruby` muestra la versión actualmente instalada de [Rub
|
||||
- El directorio actual contiene un archivo `Gemfile`
|
||||
- El directorio actual contiene un archivo `.ruby-version`
|
||||
- El directorio actual contiene un archivo `.rb`
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Opciones
|
||||
|
||||
@ -2524,8 +2528,9 @@ Por defecto, el módulo `ruby` muestra la versión actualmente instalada de [Rub
|
||||
| `detect_extensions` | `["rb"]` | Qué extensiones deberían activar este módulo. |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | Qué nombres de archivo deberían activar este módulo. |
|
||||
| `detect_folders` | `[]` | Qué carpetas deberían activar este módulo. |
|
||||
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
|
||||
| `style` | `"bold red"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Deshabilita el módulo `ruby`. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
### Variables
|
||||
|
||||
@ -2548,7 +2553,7 @@ symbol = "🔺 "
|
||||
|
||||
## Rust
|
||||
|
||||
Por defecto, el módulo `rust` muestra la versión instalada de [Rust](https://www.rust-lang.org/). El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
|
||||
- El directorio actual contiene un archivo `Cargo.toml`
|
||||
- El directorio actual contiene un archivo con la extensión `.rs`
|
||||
@ -2587,7 +2592,7 @@ format = "via [⚙️ $version](red bold)"
|
||||
|
||||
## Scala
|
||||
|
||||
El módulo `scala` muestra la versión actualmente instalada de [Scala](https://www.scala-lang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- El directorio actual contiene un archivo `build.sbt`, `.scalaenv` o `.sbtenv`
|
||||
- El directorio actual contiene un archivo con la extensión `.scala` o `.sbt`
|
||||
@ -2627,7 +2632,7 @@ symbol = "🌟 "
|
||||
|
||||
## Shell
|
||||
|
||||
El módulo `shell` muestra un indicador para el intérprete de comandos actualmente utilizado.
|
||||
The `shell` module shows an indicator for currently used shell.
|
||||
|
||||
::: consejo
|
||||
|
||||
@ -2676,7 +2681,7 @@ disabled = false
|
||||
|
||||
## SHLVL
|
||||
|
||||
El módulo `shlvl` muestra la variable de entorno [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") actual, si está establecido en un número y reúne o supera el umbral especificado.
|
||||
The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/internalvariables.html#SHLVLREF) ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
|
||||
|
||||
### Opciones
|
||||
|
||||
@ -2712,7 +2717,7 @@ threshold = 3
|
||||
|
||||
## Singularity
|
||||
|
||||
El módulo `singularity` muestra la imagen de [singularity](https://sylabs.io/singularity/) actual, si se encuentra dentro de un contenedor y `$SINGULARITY_NAME` está establecido.
|
||||
The `singularity` module shows the current [Singularity](https://sylabs.io/singularity/) image, if inside a container and `$SINGULARITY_NAME` is set.
|
||||
|
||||
### Opciones
|
||||
|
||||
@ -2744,7 +2749,7 @@ format = '[📦 \[$env\]]($style) '
|
||||
|
||||
## Status
|
||||
|
||||
El módulo `status` muestra el código de salida del comando anterior. El módulo se mostrará sólo si el código de salida no es `0`.
|
||||
The `status` module displays the exit code of the previous command. The module will be shown only if the exit code is not `0`.
|
||||
|
||||
::: consejo
|
||||
|
||||
@ -2752,7 +2757,7 @@ Este módulo está deshabilitado por defecto. Para activarlo, establece `disable
|
||||
|
||||
:::
|
||||
|
||||
::: advertencia Este módulo no es compatible con los intérpretes de comandos Elvish y Nu. :::
|
||||
::: warning This module is not supported on elvish and nu shell. :::
|
||||
|
||||
### Opciones
|
||||
|
||||
@ -2806,7 +2811,7 @@ disabled = false
|
||||
|
||||
## Swift
|
||||
|
||||
Por defecto, el módulo `swift` muestra la versión instalada de [Swift](https://swift.org/). El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
|
||||
- El directorio actual contiene un archivo `Package.swift`
|
||||
- El directorio actual contiene un archivo con la extensión `.swift`
|
||||
@ -2845,11 +2850,11 @@ format = "via [🏎 $version](red bold)"
|
||||
|
||||
## Terraform
|
||||
|
||||
El módulo `Terraform` muestra el espacio de trabajo de [Terraform](https://www.terraform.io/docs/language/state/workspaces.html) y la versión seleccionados actualmente.
|
||||
The `terraform` module shows the currently selected [Terraform workspace](https://www.terraform.io/docs/language/state/workspaces.html) and version.
|
||||
|
||||
::: consejo
|
||||
|
||||
Por defecto no se muestra la versión de Terraform, ya que esto es lento para las versiones actuales de Terraform cuando hay muchos complementos en uso. Si aún deseas activarlo, [sigue el ejemplo que se muestra a continuación](#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. If you still want to enable it, [follow the example shown below](#with-terraform-version).
|
||||
|
||||
:::
|
||||
|
||||
@ -2904,7 +2909,7 @@ format = "[🏎💨 $workspace]($style) "
|
||||
|
||||
## Hora
|
||||
|
||||
El módulo `time` muestra la hora **local** actual. El valor de configuración de `format` es usado por el crate de [`chrono`](https://crates.io/crates/chrono) para controlar cómo se muestra la hora. Echa un vistazo a [los documentos de chrono strftime](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) para ver qué opciones están disponibles.
|
||||
The `time` module shows the current **local** time. The `format` configuration value is used by the [`chrono`](https://crates.io/crates/chrono) crate to control how the time is displayed. Take a look [at the chrono strftime docs](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) to see what options are available.
|
||||
|
||||
::: consejo
|
||||
|
||||
@ -2924,7 +2929,7 @@ Este módulo está deshabilitado por defecto. Para activarlo, establece `disable
|
||||
| `disabled` | `true` | Deshabilita el módulo `time`. |
|
||||
| `time_range` | `"-"` | Establece el intervalo de tiempo durante el cual el módulo se mostrará. La hora debe ser especificada en formato de 24 horas |
|
||||
|
||||
Si `use_12hr` es `true`, entonces `time_format` por defecto `"%r"`. De lo contrario, el valor por defecto es `"%T"`. Configurar manualmente `time_format` sobrescribirá la configuración `use_12hr`.
|
||||
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
|
||||
|
||||
@ -2950,7 +2955,7 @@ time_range = "10:00:00-14:00:00"
|
||||
|
||||
## Username
|
||||
|
||||
El módulo `username` muestra el nombre de usuario activo. El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
The `username` module shows active user's username. El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
|
||||
- El usuario actual es root
|
||||
- El usuario actual no es el mismo que el que está conectado
|
||||
@ -2959,7 +2964,7 @@ El módulo `username` muestra el nombre de usuario activo. El módulo se mostrar
|
||||
|
||||
::: consejo
|
||||
|
||||
La conexión SSH se detecta comprobando las variables de entorno `SSH_CONNECTION`, `SSH_CLIENT`, y `SSH_TTY`. Si tu host SSH no configura estas variables, una solución es establecer una de ellas con un valor tonto.
|
||||
SSH connection is detected by checking environment variables `SSH_CONNECTION`, `SSH_CLIENT`, and `SSH_TTY`. If your SSH host does not set up these variables, one workaround is to set one of them with a dummy value.
|
||||
|
||||
:::
|
||||
|
||||
@ -2995,7 +3000,7 @@ show_always = true
|
||||
|
||||
## Vagrant
|
||||
|
||||
El módulo `vagrant` muestra la versión instalada de [Vagrant](https://www.vagrantup.com/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- El directorio actual contiene un archivo `Vagrantfile`
|
||||
|
||||
@ -3033,7 +3038,7 @@ format = "via [⍱ $version](bold white) "
|
||||
|
||||
## V
|
||||
|
||||
El módulo `vlang` te muestra la versión instalada de [V](https://vlang.io/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
The `vlang` module shows you your currently installed version of [V](https://vlang.io/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
- El directorio actual contiene un archivo con la extensión `.v`
|
||||
- El directorio actual contiene un archivo `v.mod`, `vpkg.json` o `.vpkg-lock.json`
|
||||
|
||||
@ -3068,7 +3073,7 @@ format = "via [V $version](blue bold) "
|
||||
|
||||
## VCSH
|
||||
|
||||
El módulo `vcsh` muestra el repositorio activo [VCSH](https://github.com/RichiH/vcsh) actual. El módulo sólo se mostrará si un repositorio está actualmente en uso.
|
||||
The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/vcsh) repository. The module will be shown only if a repository is currently in use.
|
||||
|
||||
### Opciones
|
||||
|
||||
@ -3100,7 +3105,7 @@ format = "[🆅 $repo](bold blue) "
|
||||
|
||||
## Zig
|
||||
|
||||
Por defecto, el módulo `zig` muestra la versión instalada de [Zig](https://ziglang.org/). El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). El módulo se mostrará si se cumplen alguna de las siguientes condiciones:
|
||||
|
||||
- El directorio actual contiene un archivo `.zig`
|
||||
|
||||
@ -3138,9 +3143,9 @@ symbol = "⚡️ "
|
||||
|
||||
## Comandos personalizados
|
||||
|
||||
Los módulos `personalizados` muestran la salida de algunos comandos arbitrarios.
|
||||
The `custom` modules show the output of some arbitrary commands.
|
||||
|
||||
Estos módulos se mostrarán si se cumplen alguna de las siguientes condiciones:
|
||||
These modules will be shown if any of the following conditions are met:
|
||||
|
||||
- El directorio actual contiene un archivo cuyo nombre está en `files`
|
||||
- El directorio actual contiene un directorio cuyo nombre está en `directories`
|
||||
@ -3150,19 +3155,19 @@ Estos módulos se mostrarán si se cumplen alguna de las siguientes condiciones:
|
||||
|
||||
::: consejo
|
||||
|
||||
Múltiples módulos personalizados pueden definirse usando un `.`.
|
||||
Multiple custom modules can be defined by using a `.`.
|
||||
|
||||
:::
|
||||
|
||||
::: consejo
|
||||
|
||||
El orden en el que se muestran los módulos personalizados se puede establecer individualmente incluyendo `${custom.foo}` en el `format` de nivel superior (ya que incluye un punto, necesita usar `${...}`). Por defecto, el módulo `custom` simplemente mostrará todos los módulos personalizados en el orden en que fueron definidos.
|
||||
The order in which custom modules are shown can be individually set by including `${custom.foo}` in the top level `format` (as it includes a dot, you need to use `${...}`). By default, the `custom` module will simply show all custom modules in the order they were defined.
|
||||
|
||||
:::
|
||||
|
||||
::: consejo
|
||||
|
||||
[El issue #1252](https://github.com/starship/starship/discussions/1252) contiene ejemplos de módulos personalizados. ¡Si tienes un ejemplo interesante no cubierto allí, no dudes en compartirlo!
|
||||
[Issue #1252](https://github.com/starship/starship/discussions/1252) contains examples of custom modules. If you have an interesting example not covered there, feel free to share it there!
|
||||
|
||||
:::
|
||||
|
||||
|
@ -735,17 +735,18 @@ Par exemple, donné `~/Dev/Nix/nixpkgs/pkgs` où `nixpkgs` est la racine du repo
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Défaut | Description |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Le nombre de dossiers parents selon lesquels le répertoire courant doit être tronqué. |
|
||||
| `truncate_to_repo` | `true` | Si oui ou non tronquer à la racine du repo git dans lequel vous vous trouvez. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Format du module. |
|
||||
| `style` | `"bold cyan"` | Le style du module. |
|
||||
| `disabled` | `false` | Désactive le module `directory`. |
|
||||
| `read_only` | `"🔒"` | Le symbole indiquant que le répertoire courant est en lecture seule. |
|
||||
| `read_only_style` | `"red"` | Le style du symbole en lecture seule. |
|
||||
| `truncation_symbol` | `""` | Le symbole en préfixe aux chemins tronqués. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | Le symbole indiquant le répertoire personnel. |
|
||||
| Option | Défaut | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Le nombre de dossiers parents selon lesquels le répertoire courant doit être tronqué. |
|
||||
| `truncate_to_repo` | `true` | Si oui ou non tronquer à la racine du repo git dans lequel vous vous trouvez. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Format du module. |
|
||||
| `style` | `"bold cyan"` | Le style du module. |
|
||||
| `disabled` | `false` | Désactive le module `directory`. |
|
||||
| `read_only` | `"🔒"` | Le symbole indiquant que le répertoire courant est en lecture seule. |
|
||||
| `read_only_style` | `"red"` | Le style du symbole en lecture seule. |
|
||||
| `truncation_symbol` | `""` | Le symbole en préfixe aux chemins tronqués. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Ce module possède quelques options de configuration avancées qui contrôlent l'affichage du répertoire.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `detect_extensions` | `["rb"]` | Quelles extensions devraient activer ce module. |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | Quels fichiers devraient activer ce module. |
|
||||
| `detect_folders` | `[]` | Quels dossiers devraient activer ce module. |
|
||||
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
|
||||
| `style` | `"bold green"` | Le style du module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ Sebagai contoh, untuk `~/Dev/Nix/nixpkgs/pkgs` dimana `nixpkgs` merupakan root r
|
||||
|
||||
### Opsi
|
||||
|
||||
| Opsi | Bawaan | Deskripsi |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Jumlah dari folder induk yang harusnya disingkat oleh direktori saat ini. |
|
||||
| `truncate_to_repo` | `true` | Apakah harus menyingkat root dari git repo tempatmu berada saat ini. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Format dari modul. |
|
||||
| `style` | `"bold cyan"` | Gaya penataan untuk modul. |
|
||||
| `disabled` | `false` | Menonaktifkan modul `directory`. |
|
||||
| `read_only` | `"🔒"` | Simbol yang mengindikasikan direktori saat ini bersifat read only. |
|
||||
| `read_only_style` | `"red"` | Corak gaya untuk simbol read only. |
|
||||
| `truncation_symbol` | `""` | Simbol untuk awalan jalur yang disingkat. misalnya: ".../" |
|
||||
| `home_symbol` | `"~"` | Simbol yang mengindikasikan direktori home. |
|
||||
| Opsi | Bawaan | Deskripsi |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Jumlah dari folder induk yang harusnya disingkat oleh direktori saat ini. |
|
||||
| `truncate_to_repo` | `true` | Apakah harus menyingkat root dari git repo tempatmu berada saat ini. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Format dari modul. |
|
||||
| `style` | `"bold cyan"` | Gaya penataan untuk modul. |
|
||||
| `disabled` | `false` | Menonaktifkan modul `directory`. |
|
||||
| `read_only` | `"🔒"` | Simbol yang mengindikasikan direktori saat ini bersifat read only. |
|
||||
| `read_only_style` | `"red"` | Corak gaya untuk simbol read only. |
|
||||
| `truncation_symbol` | `""` | Simbol untuk awalan jalur yang disingkat. misalnya: ".../" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Modul ini memilki beberapa opsi konfigurasi lanjutan yang mengontrol bagaimana direktori ditampilkan.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Opsi
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `detect_extensions` | `["rb"]` | Ekstensi mana yang sebaiknya memicu modul ini. |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | filenames mana yang sebaiknya memicu modul ini. |
|
||||
| `detect_folders` | `[]` | Folder mana yang sebaiknya memicul modul ini. |
|
||||
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
|
||||
| `style` | `"bold red"` | Gaya penataan untuk modul. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Opzioni
|
||||
|
||||
| Opzione | Default | Descrizione |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | Lo stile per il modulo. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Opzione | Default | Descrizione |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | Lo stile per il modulo. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Opzioni
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `detect_extensions` | `["rb"]` | Quali estensioni dovrebbero attivare questo modulo. |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | Quali nomi di file dovrebbero attivare questo modulo. |
|
||||
| `detect_folders` | `[]` | Quali cartelle dovrebbero attivare questo modulo. |
|
||||
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
|
||||
| `style` | `"bold red"` | Lo stile per il modulo. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -736,17 +736,18 @@ fishスタイルのpwdオプションを使用すると、切り捨てられた
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------------------------ |
|
||||
| `truncation_length` | `3` | 現在のディレクトリを切り捨てる親フォルダーの数です。 |
|
||||
| `truncate_to_repo` | `true` | 現在いるgitリポジトリのルートに切り捨てるかどうかです。 |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | moduleのフォーマットです。 |
|
||||
| `style` | `"bold cyan"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `directory`モジュールを無効にします。 |
|
||||
| `read_only` | `"🔒"` | このシンボルが表示されている時、現在のディレクトリは読み取り専用です。 |
|
||||
| `read_only_style` | `"red"` | 読み取り専用シンボルのスタイルです。 |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. 例: "…/" |
|
||||
| `home_symbol` | `"~"` | ホームディレクトリを示すシンボルです。 |
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | 現在のディレクトリを切り捨てる親フォルダーの数です。 |
|
||||
| `truncate_to_repo` | `true` | 現在いるgitリポジトリのルートに切り捨てるかどうかです。 |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | moduleのフォーマットです。 |
|
||||
| `style` | `"bold cyan"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `directory`モジュールを無効にします。 |
|
||||
| `read_only` | `"🔒"` | このシンボルが表示されている時、現在のディレクトリは読み取り専用です。 |
|
||||
| `read_only_style` | `"red"` | 読み取り専用シンボルのスタイルです。 |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. 例: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>このモジュールは、どのようにディレクトリを表示するかについての高度なオプションをいくつか持っています。</summary>
|
||||
@ -2514,19 +2515,23 @@ symbol = "🔴 "
|
||||
- カレントディレクトリに`Gemfile`ファイルが含まれている
|
||||
- カレントディレクトリに `.ruby-version` ファイルが含まれている
|
||||
- カレントディレクトリに `.rb` ファイルが含まれている
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### オプション
|
||||
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------ |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
|
||||
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `"💎 "` | Rubyのシンボルを表すフォーマット文字列. |
|
||||
| `detect_extensions` | `["rb"]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | どのファイル名がこのモジュールをアクティブにするか |
|
||||
| `detect_folders` | `[]` | どのフォルダーがこのモジュールをアクティブにするか |
|
||||
| `style` | `"bold red"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `ruby`モジュールを無効にします。 |
|
||||
| オプション | デフォルト | 説明 |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------- |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | moduleのフォーマットです。 |
|
||||
| `version_format` | `"v${raw}"` | バージョンのフォーマット。 使用可能な変数は`raw`、`major`、`minor`と`patch`です。 |
|
||||
| `symbol` | `"💎 "` | Rubyのシンボルを表すフォーマット文字列. |
|
||||
| `detect_extensions` | `["rb"]` | どの拡張子がこのモジュールをアクティブにするか |
|
||||
| `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` | Disables the `ruby` module. |
|
||||
|
||||
### 変数
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ Por exemplo, dado `~/Dev/Nix/nixpkgs/pkgs` onde `nixpkgs` é o repositório raiz
|
||||
|
||||
### Opções
|
||||
|
||||
| Opções | Padrão | Descrição |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------ |
|
||||
| `truncation_length` | `3` | O número de pastas pais do diretório atual que serão truncadas. |
|
||||
| `truncate_to_repo` | `true` | Seu diretório será truncado ou não para a raiz do repositório git atual. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | O formato do módulo. |
|
||||
| `style` | `"bold cyan"` | O estilo do módulo. |
|
||||
| `disabled` | `false` | Desabilita o módulo `directory`. |
|
||||
| `read_only` | `"🔒"` | O simbolo que indica que o diretório atual é somente leitura. |
|
||||
| `read_only_style` | `"red"` | O estilo para o simbolo de somente leitura. |
|
||||
| `truncation_symbol` | `""` | O simbolo para prefixo de caminhos truncados. ex: "…/" |
|
||||
| `home_symbol` | `"~"` | O simbolo para indicar o diretório home. |
|
||||
| Opções | Padrão | Descrição |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | O número de pastas pais do diretório atual que serão truncadas. |
|
||||
| `truncate_to_repo` | `true` | Seu diretório será truncado ou não para a raiz do repositório git atual. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | O formato do módulo. |
|
||||
| `style` | `"bold cyan"` | O estilo do módulo. |
|
||||
| `disabled` | `false` | Desabilita o módulo `directory`. |
|
||||
| `read_only` | `"🔒"` | O simbolo que indica que o diretório atual é somente leitura. |
|
||||
| `read_only_style` | `"red"` | O estilo para o simbolo de somente leitura. |
|
||||
| `truncation_symbol` | `""` | O simbolo para prefixo de caminhos truncados. ex: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Este módulo tem algumas configurações avançadas que controlam como o diretório é exibido.</summary>
|
||||
@ -2511,6 +2512,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Opções
|
||||
|
||||
@ -2522,6 +2526,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `detect_extensions` | `["rb"]` | Quais extensões devem ativar este módulo. |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | Quais nomes de arquivos devem ativar este módulo. |
|
||||
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
|
||||
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
|
||||
| `style` | `"bold red"` | O estilo do módulo. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ format = "via [🦕 $version](green bold) "
|
||||
|
||||
### Опции
|
||||
|
||||
| Параметр | По умолчанию | Описание |
|
||||
| ------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Количество родительских папок, к которым должен быть усечен текущий каталог. |
|
||||
| `truncate_to_repo` | `true` | Следует или нет обрезать до корня репозитория git, в котором вы находитесь. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Формат модуля. |
|
||||
| `style` | `"bold cyan"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `directory`. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Параметр | По умолчанию | Описание |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Количество родительских папок, к которым должен быть усечен текущий каталог. |
|
||||
| `truncate_to_repo` | `true` | Следует или нет обрезать до корня репозитория git, в котором вы находитесь. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Формат модуля. |
|
||||
| `style` | `"bold cyan"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `directory`. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Этот модуль имеет несколько расширенных опций конфигурации, которые контролируют отображение каталога.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Опции
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
|
||||
| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `directory` module. |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>This module has a few advanced configuration options that control how the directory is displayed.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Options
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ Cho ví dụ, `~/Dev/Nix/nixpkgs/pkgs` nơi `nixpkgs` là gốc của repo, và
|
||||
|
||||
### Các tuỳ chọn
|
||||
|
||||
| Tuỳ chọn | Mặc định | Mô tả |
|
||||
| ------------------- | -------------------------------------------------- | ------------------------------------------------------------------ |
|
||||
| `truncation_length` | `3` | Số lượng thư mục cha của thư mục hiện tại nên được rút gọn. |
|
||||
| `truncate_to_repo` | `true` | Có hoặc không rút gọn đường dẫn gốc của git repo hiện tại của bạn. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Định dạng cho module. |
|
||||
| `style` | `"bold cyan"` | Kiểu cho module. |
|
||||
| `disabled` | `false` | Vô hiệu mô đun `directory`. |
|
||||
| `read_only` | `"🔒"` | Biểu tượng để nhận biết thư mục hiện tại là chỉ đọc. |
|
||||
| `read_only_style` | `"red"` | Style cho biểu tượng chỉ đọc. |
|
||||
| `truncation_symbol` | `""` | Biểu tượng tiền tố cho các đường dẫn rút gọn. ví dụ: "…/" |
|
||||
| `home_symbol` | `"~"` | Biểu tượng nhận biết thư mục home. |
|
||||
| Tuỳ chọn | Mặc định | Mô tả |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | Số lượng thư mục cha của thư mục hiện tại nên được rút gọn. |
|
||||
| `truncate_to_repo` | `true` | Có hoặc không rút gọn đường dẫn gốc của git repo hiện tại của bạn. |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | Định dạng cho module. |
|
||||
| `style` | `"bold cyan"` | Kiểu cho module. |
|
||||
| `disabled` | `false` | Vô hiệu mô đun `directory`. |
|
||||
| `read_only` | `"🔒"` | Biểu tượng để nhận biết thư mục hiện tại là chỉ đọc. |
|
||||
| `read_only_style` | `"red"` | Style cho biểu tượng chỉ đọc. |
|
||||
| `truncation_symbol` | `""` | Biểu tượng tiền tố cho các đường dẫn rút gọn. ví dụ: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>Mô đun này có một vài tùy chọn nâng cao để điều khiển cách thư mục được hiển thị.</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### Các tuỳ chọn
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `detect_extensions` | `["rb"]` | Những tiện ích mở rộng nào sẽ kích hoạt mô-đun này. |
|
||||
| `detect_files` | `["Gemfile", ".ruby-version"]` | 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. |
|
||||
| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
|
||||
| `style` | `"bold red"` | Kiểu cho module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ format = "via [🦕 $version](green bold) "
|
||||
|
||||
### 配置项
|
||||
|
||||
| Option | 默认值 | 描述 |
|
||||
| ------------------- | -------------------------------------------------- | ----------------------------------------------------- |
|
||||
| `truncation_length` | `3` | 当前目录路径被截断后最多保留的父目录数量。 |
|
||||
| `truncate_to_repo` | `true` | 是否只截断到您当前处于的 git 仓库根目录下。 |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | 组件格式化模板。 |
|
||||
| `style` | `"bold cyan"` | 此组件的样式。 |
|
||||
| `disabled` | `false` | 禁用 `directory` 组件。 |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | 默认值 | 描述 |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | 当前目录路径被截断后最多保留的父目录数量。 |
|
||||
| `truncate_to_repo` | `true` | 是否只截断到您当前处于的 git 仓库根目录下。 |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | 组件格式化模板。 |
|
||||
| `style` | `"bold cyan"` | 此组件的样式。 |
|
||||
| `disabled` | `false` | 禁用 `directory` 组件。 |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>此组件有几个高级配置选项来控制当前目录路径的显示方式。</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### 配置项
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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` | Disables the `ruby` module. |
|
||||
|
||||
|
@ -735,17 +735,18 @@ format = "via [🦕 $version](green bold) "
|
||||
|
||||
### 選項
|
||||
|
||||
| Option | 預設 | 說明 |
|
||||
| ------------------- | -------------------------------------------------- | ----------------------------------------------------- |
|
||||
| `truncation_length` | `3` | 到達現在資料夾的路徑中,要被裁減掉的資料夾數目。 |
|
||||
| `truncate_to_repo` | `true` | 是否要裁減到你現在所在的 git 儲存庫的根目錄。 |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `directory` 模組。 |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
| Option | 預設 | 說明 |
|
||||
| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `3` | 到達現在資料夾的路徑中,要被裁減掉的資料夾數目。 |
|
||||
| `truncate_to_repo` | `true` | 是否要裁減到你現在所在的 git 儲存庫的根目錄。 |
|
||||
| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
|
||||
| `style` | `"bold cyan"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `directory` 模組。 |
|
||||
| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
|
||||
| `read_only_style` | `"red"` | The style for the read only symbol. |
|
||||
| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
|
||||
| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
|
||||
| `home_symbol` | `"~"` | The symbol indicating home directory. |
|
||||
|
||||
<details>
|
||||
<summary>這個模組有些進階設定選項可以控制顯示資料夾。</summary>
|
||||
@ -2513,6 +2514,9 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
|
||||
|
||||
Starship gets the current Ruby version by running `ruby -v`.
|
||||
|
||||
### 選項
|
||||
|
||||
@ -2524,6 +2528,7 @@ By default the `ruby` module shows the currently installed version of [Ruby](htt
|
||||
| `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` | Disables the `ruby` module. |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user