mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
docs(i18n): new Crowdin updates (#3008)
This commit is contained in:
+158
-158
@@ -1018,7 +1018,7 @@ format = "via [e $version](bold red) "
|
||||
|
||||
## 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.
|
||||
El módulo `gcloud` muestra la configuración actual para el CLI de [`gcloud`](https://cloud.google.com/sdk/gcloud). Esto se basa en el archivo `~/.config/gcloud/active_config`, el archivo `~/.config/gcloud/configurations/config_{CONFIG NAME}` y la variable de entorno `CLOUDSDK_CONFIG`.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1079,7 +1079,7 @@ asia-northeast1 = "an1"
|
||||
|
||||
## Git Branch
|
||||
|
||||
The `git_branch` module shows the active branch of the repo in your current directory.
|
||||
El módulo `git_branch` muestra la rama activa del repositorio en tu directorio actual.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1119,7 +1119,7 @@ truncation_symbol = ""
|
||||
|
||||
## Git commit
|
||||
|
||||
The `git_commit` module shows the current commit hash and also the tag (if any) of the repo in your current directory.
|
||||
El módulo `git_commit` muestra el hash de la confirmación actual y también la etiqueta (si existe) del repositorio en su directorio actual.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1154,7 +1154,7 @@ tag_symbol = "🔖 "
|
||||
|
||||
## Git State
|
||||
|
||||
The `git_state` module will show in directories which are part of a git repository, and where there is an operation in progress, such as: _REBASING_, _BISECTING_, etc. If there is progress information (e.g., REBASING 3/10), that information will be shown too.
|
||||
El módulo `git_state` se mostrará en directorios que son parte de un repositorio git, y donde hay una operación en curso, tales como: _REBASING_, _BISECTING_, etc. Si hay información de progreso (por ejemplo, REBASING 3/10), esa información será mostrada también.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1198,7 +1198,7 @@ The `git_metrics` module will show the number of added and deleted lines in the
|
||||
|
||||
::: consejo
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` a `false` en tu archivo de configuración.
|
||||
|
||||
:::
|
||||
|
||||
@@ -1234,7 +1234,7 @@ format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
|
||||
|
||||
## Git status
|
||||
|
||||
The `git_status` module shows symbols representing the state of the repo in your current directory.
|
||||
El módulo `git_status` muestra símbolos que representan el estado del repositorio en su directorio actual.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1246,18 +1246,18 @@ The `git_status` module shows symbols representing the state of the repo in your
|
||||
| `behind` | `"⇣"` | El formato de `behind` |
|
||||
| `diverged` | `"⇕"` | El formato de `diverged` |
|
||||
| `up_to_date` | `""` | The format of `up_to_date` |
|
||||
| `untracked` | `"?"` | The format of `untracked` |
|
||||
| `stashed` | `"$"` | The format of `stashed` |
|
||||
| `modified` | `"!"` | The format of `modified` |
|
||||
| `staged` | `"+"` | The format of `staged` |
|
||||
| `renamed` | `"»"` | The format of `renamed` |
|
||||
| `deleted` | `"✘"` | The format of `deleted` |
|
||||
| `untracked` | `"?"` | El formato de `untracked` |
|
||||
| `stashed` | `"$"` | El formato de `stashed` |
|
||||
| `modified` | `"!"` | El formato de `modified` |
|
||||
| `staged` | `"+"` | El formato de `staged` |
|
||||
| `renamed` | `"»"` | El formato de `renamed` |
|
||||
| `deleted` | `"✘"` | El formato de `deleted` |
|
||||
| `style` | `"bold red"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `git_status` module. |
|
||||
| `disabled` | `false` | Desactiva el módulo `git_status`. |
|
||||
|
||||
### Variables
|
||||
|
||||
The following variables can be used in `format`:
|
||||
Las siguientes variables se pueden utilizar en `format`:
|
||||
|
||||
| Variable | Descripción |
|
||||
| -------------- | ------------------------------------------------------------------------------------------------------------- |
|
||||
@@ -1274,14 +1274,14 @@ The following variables can be used in `format`:
|
||||
|
||||
\*: Esta variable sólo puede ser usada como parte de una cadena de estilo
|
||||
|
||||
The following variables can be used in `diverged`:
|
||||
Las siguientes variables pueden ser usadas en `diverged`:
|
||||
|
||||
| Variable | Descripción |
|
||||
| -------------- | ------------------------------------------------------- |
|
||||
| `ahead_count` | Número de commits por delante de la rama de seguimiento |
|
||||
| `behind_count` | Número de commits detrás de la rama de seguimiento |
|
||||
|
||||
The following variables can be used in `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`:
|
||||
Las siguientes variales pueden ser usadas en `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` y `deleted`:
|
||||
|
||||
| Variable | Descripción |
|
||||
| -------- | ----------------------------- |
|
||||
@@ -1306,7 +1306,7 @@ renamed = "👅"
|
||||
deleted = "🗑"
|
||||
```
|
||||
|
||||
Show ahead/behind count of the branch being tracked
|
||||
Mostrar el recuento delante/detrás de la rama que está siendo rastreada
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
@@ -1403,7 +1403,7 @@ format = "via [⎈ $version](bold white) "
|
||||
|
||||
## Hostname
|
||||
|
||||
The `hostname` module shows the system hostname.
|
||||
El módulo `hostname` muestra el nombre de host del sistema.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1477,7 +1477,7 @@ symbol = "🌟 "
|
||||
|
||||
## Jobs
|
||||
|
||||
The `jobs` module shows the current number of jobs running. The module will be shown only if there are background jobs running. The module will show the number of jobs running if there are at least 2 jobs, or more than the `number_threshold` config value, if it exists. The module will show a symbol if there is at least 1 job, or more than the `symbol_threshold` config value, if it exists. You can set both values to 0 in order to *always* show the symbol and number of jobs, even if there are 0 jobs running.
|
||||
El módulo `jobs` muestra el número actual de tareas en ejecución. El módulo se mostrará sólo si hay tareas en segundo plano ejecutándose. The module will show the number of jobs running if there are at least 2 jobs, or more than the `number_threshold` config value, if it exists. The module will show a symbol if there is at least 1 job, or more than the `symbol_threshold` config value, if it exists. You can set both values to 0 in order to *always* show the symbol and number of jobs, even if there are 0 jobs running.
|
||||
|
||||
The default functionality is:
|
||||
|
||||
@@ -1507,7 +1507,7 @@ The `threshold` option is deprecated, but if you want to use it, the module will
|
||||
| `format` | `"[$symbol$number]($style) "` | El formato del módulo. |
|
||||
| `symbol` | `"✦"` | The string used to represent the `symbol` variable. |
|
||||
| `style` | `"bold blue"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `jobs` module. |
|
||||
| `disabled` | `false` | Desactiva el módulo `jobs`. |
|
||||
\*: This option is deprecated, please use the
|
||||
|
||||
`number_threshold` and `symbol_threshold` options instead.
|
||||
@@ -1537,9 +1537,9 @@ symbol_threshold = 0
|
||||
|
||||
The `julia` module shows the currently installed version of [Julia](https://julialang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `Project.toml` file
|
||||
- The current directory contains a `Manifest.toml` file
|
||||
- The current directory contains a file with the `.jl` extension
|
||||
- El directorio actual contiene un archivo `Project.toml`
|
||||
- El directorio actual contiene un archivo `Manifest.toml`
|
||||
- El directorio actual contiene un archivo con la extensión `.jl`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1577,7 +1577,7 @@ symbol = "∴ "
|
||||
|
||||
The `kotlin` module shows the currently installed version of [Kotlin](https://kotlinlang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `.kt` or a `.kts` file
|
||||
- El directorio actual contiene un archivo `.kt` o `.kts`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1622,11 +1622,11 @@ kotlin_binary = "kotlinc"
|
||||
|
||||
## Kubernetes
|
||||
|
||||
Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. The namespace needs to be set in the kubeconfig file, this can be done via `kubectl config set-context starship-cluster --namespace astronaut`. If the `$KUBECONFIG` env var is set the module will use that if not it will use the `~/.kube/config`.
|
||||
Displays the current [Kubernetes context](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#context) name and, if set, the namespace from the kubeconfig file. El espacio de nombres necesita establecerse en el archivo kubeconfig, esto puede hacerse mediante `kubectl config set-context starship-cluster --namespace astronaut`. Si se establece la variable de entorno `$KUBECONFIG`, el módulo usará eso si no usará el `~/.kube/config`.
|
||||
|
||||
::: consejo
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` a `false` en tu archivo de configuración.
|
||||
|
||||
:::
|
||||
|
||||
@@ -1688,7 +1688,7 @@ Long and automatically generated cluster names can be identified and shortened u
|
||||
|
||||
## Salto de línea
|
||||
|
||||
The `line_break` module separates the prompt into two lines.
|
||||
El módulo `line_break` separa el indicador en dos líneas.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1709,9 +1709,9 @@ disabled = true
|
||||
|
||||
The `lua` module shows the currently installed version of [Lua](http://www.lua.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `.lua-version` file
|
||||
- The current directory contains a `lua` directory
|
||||
- The current directory contains a file with the `.lua` extension
|
||||
- El directorio actual contiene un archivo `.lua-version`
|
||||
- El directorio actual contiene un directorio `lua`
|
||||
- El directorio actual contiene un archivo con la extensión `.lua`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1748,13 +1748,13 @@ format = "via [🌕 $version](bold blue) "
|
||||
|
||||
## Memoria utilizada
|
||||
|
||||
The `memory_usage` module shows current system memory and swap usage.
|
||||
El módulo `memory_usage` muestra la memoria del sistema actual y el uso de memoria de intercambio.
|
||||
|
||||
By default the swap usage is displayed if the total system swap is non-zero.
|
||||
Por defecto, el uso de swap se muestra si el intercambio total del sistema no es cero.
|
||||
|
||||
::: consejo
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` a `false` en tu archivo de configuración.
|
||||
|
||||
:::
|
||||
|
||||
@@ -1779,7 +1779,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
||||
| symbol | `🐏` | Refleja el valor de la opción `symbol` |
|
||||
| style\* | | Refleja el valor de la opción `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
|
||||
\*: Esta variable sólo puede utilizarse como parte de una cadena de estilo \*\*: La información del archivo SWAP sólo se muestra si se detecta en el sistema actual
|
||||
|
||||
### Ejemplo
|
||||
|
||||
@@ -1795,7 +1795,7 @@ style = "bold dimmed green"
|
||||
|
||||
## Mercurial Branch
|
||||
|
||||
The `hg_branch` module shows the active branch of the repo in your current directory.
|
||||
El módulo `hg_branch` muestra la rama activa del repositorio en su directorio actual.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1833,10 +1833,10 @@ truncation_symbol = ""
|
||||
|
||||
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `nim.cfg` file
|
||||
- The current directory contains a file with the `.nim` extension
|
||||
- The current directory contains a file with the `.nims` extension
|
||||
- The current directory contains a file with the `.nimble` extension
|
||||
- El directorio actual contiene un archivo `nim.cfg`
|
||||
- El directorio actual contiene un archivo con la extensión `.nim`
|
||||
- El directorio actual contiene un archivo con la extensión `.nims`
|
||||
- El directorio actual contiene un archivo con la extensión `.nimble`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1873,7 +1873,7 @@ symbol = "🎣 "
|
||||
|
||||
## Nix-shell
|
||||
|
||||
The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
|
||||
The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. El módulo se mostrará dentro de un entorno nix-shell.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1913,12 +1913,12 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
|
||||
|
||||
The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `package.json` file
|
||||
- The current directory contains a `.node-version` file
|
||||
- El directorio actual contiene un archivo `package.json`
|
||||
- El directorio actual contiene un archivo `.node-version`
|
||||
- The current directory contains a `.nvmrc` file
|
||||
- The current directory contains a `node_modules` directory
|
||||
- The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension
|
||||
- The current directory contains a file with the `.ts` extension
|
||||
- El directorio actual contiene un directorio `node_modules`
|
||||
- El directorio actual contiene un archivo con la extensión `.js`, `.mjs` o `.cjs`
|
||||
- El directorio actual contiene un archivo con la extensión `.ts`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -1957,12 +1957,12 @@ format = "via [🤖 $version](bold green) "
|
||||
|
||||
The `ocaml` module shows the currently installed version of [OCaml](https://ocaml.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a file with `.opam` extension or `_opam` directory
|
||||
- The current directory contains a `esy.lock` directory
|
||||
- The current directory contains a `dune` or `dune-project` file
|
||||
- The current directory contains a `jbuild` or `jbuild-ignore` file
|
||||
- The current directory contains a `.merlin` file
|
||||
- The current directory contains a file with `.ml`, `.mli`, `.re` or `.rei` extension
|
||||
- El directorio actual contiene un archivo con extensión `.opam` o directorio `_opam`
|
||||
- El directorio actual contiene un directorio `esy.lock`
|
||||
- El directorio actual contiene un archivo `dune` o `dune-project`
|
||||
- El directorio actual contiene un archivo `jbuild` o `jbuild-ignore`
|
||||
- El directorio actual contiene un archivo `.merlin`
|
||||
- El directorio actual contiene un archivo con la extensión `.ml`, `.mli`, `.re` o `.rei`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2002,7 +2002,7 @@ format = "via [🐪 $version]($style) "
|
||||
|
||||
## OpenStack
|
||||
|
||||
The `openstack` module shows the current OpenStack cloud and project. The module only active when the `OS_CLOUD` env var is set, in which case it will read `clouds.yaml` file from any of the [default locations](https://docs.openstack.org/python-openstackclient/latest/configuration/index.html#configuration-files). to fetch the current project in use.
|
||||
El módulo `openstack` muestra la nube OpenStack actual y el proyecto. El módulo solo está activo cuando la variable env `OS_CLOUD` está definida en cuyo caso leerá el archivo `nubes. aml` desde cualquiera de las [ubicaciones por defecto](https://docs.openstack.org/python-openstackclient/latest/configuration/index.html#configuration-files) para obtener el proyecto actual en uso.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2037,7 +2037,7 @@ symbol = "☁️ "
|
||||
|
||||
## Versión del paquete
|
||||
|
||||
The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
|
||||
El módulo `package` se muestra cuando el directorio actual es el repositorio de un paquete, y muestra su versión actual. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages.
|
||||
|
||||
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
|
||||
- [**cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
|
||||
@@ -2063,8 +2063,8 @@ The `package` module is shown when the current directory is the repository for a
|
||||
| `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` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
| `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
|
||||
|
||||
@@ -2089,11 +2089,11 @@ format = "via [🎁 $version](208 bold) "
|
||||
|
||||
The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `Makefile.PL` or `Build.PL` file
|
||||
- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
|
||||
- The current directory contains a `META.json` file or `META.yml` file
|
||||
- The current directory contains a `.perl-version` file
|
||||
- The current directory contains a `.pl`, `.pm` or `.pod`
|
||||
- El directorio actual contiene un archivo `Makefile.PL` o `Build.PL`
|
||||
- El directorio actual contiene un archivo `cpanfile` o `cpanfile.snapshot`
|
||||
- El directorio actual contiene un archivo `META.json` o `META.yml`
|
||||
- El directorio actual contiene un archivo `.perl-version`
|
||||
- El directorio actual contiene un `.pl`, `.pm` o `.pod`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2129,9 +2129,9 @@ format = "via [🦪 $version]($style) "
|
||||
|
||||
The `php` module shows the currently installed version of [PHP](https://www.php.net/). Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `composer.json` file
|
||||
- The current directory contains a `.php-version` file
|
||||
- The current directory contains a `.php` extension
|
||||
- El directorio actual contiene un archivo `composer.json`
|
||||
- El directorio actual contiene un archivo `.php-version`
|
||||
- El directorio actual contiene una extensión `.php`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2169,8 +2169,8 @@ format = "via [🔹 $version](147 bold) "
|
||||
|
||||
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `spago.dhall` file
|
||||
- The current directory contains a file with the `.purs` extension
|
||||
- El directorio actual contiene un archivo `spago.dhall`
|
||||
- El directorio actual contiene un archivo con la extensión `.purs`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2208,19 +2208,19 @@ format = "via [$symbol$version](bold white)"
|
||||
|
||||
The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
|
||||
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
Si `pyenv_version_name` se establece en `true`, mostrará el nombre de la versión de pyenv. De lo contrario, se mostrará el número de versión de `python --version`.
|
||||
|
||||
Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `.python-version` file
|
||||
- The current directory contains a `Pipfile` file
|
||||
- The current directory contains a `__init__.py` file
|
||||
- The current directory contains a `pyproject.toml` file
|
||||
- The current directory contains a `requirements.txt` file
|
||||
- The current directory contains a `setup.py` file
|
||||
- The current directory contains a `tox.ini` file
|
||||
- The current directory contains a file with the `.py` extension.
|
||||
- A virtual environment is currently activated
|
||||
- El directorio actual contiene un archivo `.python-version`
|
||||
- El directorio actual contiene un archivo `Pipfile`
|
||||
- El directorio actual contiene un archivo `__init__.py`
|
||||
- El directorio actual contiene un archivo `pyproject.toml`
|
||||
- El directorio actual contiene un archivo `requirements.txt`
|
||||
- El directorio actual contiene un archivo `setup.py`
|
||||
- El directorio actual contiene un archivo `tox.ini`
|
||||
- El directorio actual contiene un archivo con la extensión `.py`.
|
||||
- Un entorno virtual está activado actualmente
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2240,9 +2240,9 @@ Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes
|
||||
|
||||
::: consejo
|
||||
|
||||
The `python_binary` variable accepts either a string or a list of strings. Starship will try executing each binary until it gets a result. Note you can only change the binary that Starship executes to get the version of Python not the arguments that are used.
|
||||
La variable `python_binary` acepta una cadena o una lista de cadenas. Starship intentará ejecutar cada binario hasta que obtenga un resultado. Ten en cuenta que sólo puedes cambiar el binario que Starship ejecuta para obtener la versión de Python no los argumentos que se utilizan.
|
||||
|
||||
The default values and order for `python_binary` was chosen to first identify the Python version in a virtualenv/conda environments (which currently still add a `python`, no matter if it points to `python3` or `python2`). This has the side effect that if you still have a system Python 2 installed, it may be picked up before any Python 3 (at least on Linux Distros that always symlink `/usr/bin/python` to Python 2). If you do not work with Python 2 anymore but cannot remove the system Python 2, changing this to `"python3"` will hide any Python version 2, see example below.
|
||||
Los valores por defecto y el orden para `python_binary` fue elegido para identificar primero la versión de Python en un entorno virtualenv/conda (que actualmente añade un `python`, no importa si apunta a `pithon3` o `pithon2`). Esto tiene el efecto secundario que si todavía tienes un sistema de Python 2 instalado, puede ser recogido antes de cualquier Python 3 (al menos en las Distros de Linux que siempre enlazan `/usr/bin/python` a Python 2). Si ya no trabajas con Python 2 pero no puedes removerlo del sistema, cambiando esto a `"python3"` ocultará cualquier versión de Python 2, ver ejemplo a continuación.
|
||||
|
||||
:::
|
||||
|
||||
@@ -2270,7 +2270,7 @@ pyenv_version_name = true
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[python]
|
||||
# Only use the `python3` binary to get the version.
|
||||
# Solo usa el binario `python3` para obtener la versión.
|
||||
python_binary = "python3"
|
||||
```
|
||||
|
||||
@@ -2278,7 +2278,7 @@ python_binary = "python3"
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[python]
|
||||
# Don't trigger for files with the py extension
|
||||
# No se dispara con archivos con extensión py
|
||||
detect_extensions = []
|
||||
```
|
||||
|
||||
@@ -2337,7 +2337,7 @@ format = "with [📐 $version](blue bold) "
|
||||
|
||||
## Red
|
||||
|
||||
By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
|
||||
By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a file with `.red` or `.reds` extension
|
||||
|
||||
@@ -2375,11 +2375,11 @@ symbol = "🔴 "
|
||||
|
||||
## Ruby
|
||||
|
||||
By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
|
||||
By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a `Gemfile` file
|
||||
- The current directory contains a `.ruby-version` file
|
||||
- The current directory contains a `.rb` file
|
||||
- El directorio actual contiene un archivo `Gemfile`
|
||||
- El directorio actual contiene un archivo `.ruby-version`
|
||||
- El directorio actual contiene un archivo `.rb`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2415,10 +2415,10 @@ symbol = "🔺 "
|
||||
|
||||
## Rust
|
||||
|
||||
By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
|
||||
By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a `Cargo.toml` file
|
||||
- The current directory contains a file with the `.rs` extension
|
||||
- El directorio actual contiene un archivo `Cargo.toml`
|
||||
- El directorio actual contiene un archivo con la extensión `.rs`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2456,9 +2456,9 @@ format = "via [⚙️ $version](red bold)"
|
||||
|
||||
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:
|
||||
|
||||
- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
|
||||
- The current directory contains a file with the `.scala` or `.sbt` extension
|
||||
- The current directory contains a directory named `.metals`
|
||||
- El directorio actual contiene un archivo `build.sbt`, `.scalaenv` o `.sbtenv`
|
||||
- El directorio actual contiene un archivo con la extensión `.scala` o `.sbt`
|
||||
- El directorio actual contiene un directorio llamado `.metals`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2494,29 +2494,29 @@ symbol = "🌟 "
|
||||
|
||||
## Shell
|
||||
|
||||
The `shell` module shows an indicator for currently used shell.
|
||||
El módulo `shell` muestra un indicador para el intérprete de comandos actualmente utilizado.
|
||||
|
||||
::: consejo
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` a `false` en tu archivo de configuración.
|
||||
|
||||
:::
|
||||
|
||||
### Opciones
|
||||
|
||||
| Opción | Por defecto | 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` | Una cadena de formato usada para representar tcsh. |
|
||||
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
|
||||
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
|
||||
| `format` | `$indicator` | El formato del módulo. |
|
||||
| `disabled` | `true` | Disables the `shell` module. |
|
||||
| Opción | Por defecto | 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` | Una cadena de formato usada para representar tcsh. |
|
||||
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
|
||||
| `unknown_indicator` | | El valor por defecto que se mostrará cuando se desconoce el comando. |
|
||||
| `format` | `$indicator` | El formato del módulo. |
|
||||
| `disabled` | `true` | Deshabilita el módulo `shell`. |
|
||||
|
||||
### Variables
|
||||
|
||||
@@ -2538,7 +2538,7 @@ disabled = false
|
||||
|
||||
## SHLVL
|
||||
|
||||
The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
|
||||
El módulo `shlvl` muestra la variable de entorno actual `SHLVL` ("nivel de shell"), si está establecido en un número y alcanza o supera el umbral especificado.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2606,11 +2606,11 @@ format = '[📦 \[$env\]]($style) '
|
||||
|
||||
## Status
|
||||
|
||||
The `status` module displays the exit code of the previous command. The module will be shown only if the exit code is not `0`.
|
||||
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`.
|
||||
|
||||
::: consejo
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` a `false` en tu archivo de configuración.
|
||||
|
||||
:::
|
||||
|
||||
@@ -2623,17 +2623,17 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
||||
| `format` | `"[$symbol$status]($style) "` | El formato del módulo |
|
||||
| `symbol` | `"✖"` | El símbolo mostrado en error del programa |
|
||||
| `success_symbol` | `"✔️"` | The symbol displayed on program success |
|
||||
| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
|
||||
| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
|
||||
| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
|
||||
| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
|
||||
| `not_executable_symbol` | `"🚫"` | El símbolo mostrado cuando el archivo no es ejecutable |
|
||||
| `not_found_symbol` | `"🔍"` | El símbolo mostrado cuando no se encuentra el comando |
|
||||
| `sigint_symbol` | `"🧱"` | El símbolo mostrado en SIGINT (Ctrl + c) |
|
||||
| `signal_symbol` | `"⚡"` | El símbolo mostrado en cualquier señal |
|
||||
| `style` | `"bold red"` | El estilo del módulo. |
|
||||
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
|
||||
| `map_symbol` | `false` | Enable symbols mapping from exit code |
|
||||
| `recognize_signal_code` | `true` | Activar mapeo de señales desde el código de salida |
|
||||
| `map_symbol` | `false` | Activar mapeo de símbolos desde el código de salida |
|
||||
| `pipestatus` | `false` | Enable pipestatus reporting |
|
||||
| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
|
||||
| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
|
||||
| `disabled` | `true` | Disables the `status` module. |
|
||||
| `disabled` | `true` | Desactiva el módulo `status`. |
|
||||
|
||||
### Variables
|
||||
|
||||
@@ -2668,10 +2668,10 @@ disabled = false
|
||||
|
||||
## Swift
|
||||
|
||||
By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
|
||||
By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a `Package.swift` file
|
||||
- The current directory contains a file with the `.swift` extension
|
||||
- El directorio actual contiene un archivo `Package.swift`
|
||||
- El directorio actual contiene un archivo con la extensión `.swift`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2711,14 +2711,14 @@ The `terraform` module shows the currently selected [Terraform workspace](https:
|
||||
|
||||
::: consejo
|
||||
|
||||
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. Si aún deseas activarlo, [sigue el ejemplo que se muestra a continuación](#with-terraform-version).
|
||||
|
||||
:::
|
||||
|
||||
Por defecto, el módulo se mostrará si se cumplen cualquiera de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a `.terraform` folder
|
||||
- Current directory contains a file with the `.tf` or `.hcl` extensions
|
||||
- El directorio actual contiene una carpeta `.terraform`
|
||||
- El directorio actual contiene un archivo con las extensiones `.tf` o `.hcl`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2766,11 +2766,11 @@ format = "[🏎💨 $workspace]($style) "
|
||||
|
||||
## Hora
|
||||
|
||||
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.
|
||||
El módulo `time` muestra la hora **local** actual. El valor de configuración de `format` es usado por la caja 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.
|
||||
|
||||
::: consejo
|
||||
|
||||
This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
|
||||
Este módulo está deshabilitado por defecto. Para activarlo, establece `disabled` a `false` en tu archivo de configuración.
|
||||
|
||||
:::
|
||||
|
||||
@@ -2786,7 +2786,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
|
||||
| `disabled` | `true` | Desactiva 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 |
|
||||
|
||||
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.
|
||||
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`.
|
||||
|
||||
### Variables
|
||||
|
||||
@@ -2812,16 +2812,16 @@ time_range = "10:00:00-14:00:00"
|
||||
|
||||
## Nombre de usuario
|
||||
|
||||
The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
|
||||
El módulo `username` muestra el nombre de usuario activo. El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current user is root
|
||||
- The current user isn't the same as the one that is logged in
|
||||
- The user is currently connected as an SSH session
|
||||
- The variable `show_always` is set to true
|
||||
- El usuario actual es root
|
||||
- El usuario actual no es el mismo que el que está conectado
|
||||
- El usuario está actualmente conectado como una sesión SSH
|
||||
- La variable `show_always` se establece en true
|
||||
|
||||
::: consejo
|
||||
|
||||
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.
|
||||
La conexión SSH se detecta comprobando las variables de entorno `SSH_CONNECTION`, `SSH_CLIENT`, y `SSH_TTY`. Si su host SSH no configura estas variables, una solución es establecer una de ellas con un valor tonto.
|
||||
|
||||
:::
|
||||
|
||||
@@ -2859,7 +2859,7 @@ show_always = true
|
||||
|
||||
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:
|
||||
|
||||
- The current directory contains a `Vagrantfile` file
|
||||
- El directorio actual contiene un archivo `Vagrantfile`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2930,7 +2930,7 @@ format = "via [V $version](blue bold) "
|
||||
|
||||
## VCSH
|
||||
|
||||
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.
|
||||
The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/vcsh) repository. El módulo sólo se mostrará si un repositorio está actualmente en uso.
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -2962,9 +2962,9 @@ format = "[🆅 $repo](bold blue) "
|
||||
|
||||
## Zig
|
||||
|
||||
By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
|
||||
By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a `.zig` file
|
||||
- El directorio actual contiene un archivo `.zig`
|
||||
|
||||
### Opciones
|
||||
|
||||
@@ -3000,31 +3000,31 @@ symbol = "⚡️ "
|
||||
|
||||
## Comandos personalizados
|
||||
|
||||
The `custom` modules show the output of some arbitrary commands.
|
||||
Los módulos `personalizados` muestran la salida de algunos comandos arbitrarios.
|
||||
|
||||
These modules will be shown if any of the following conditions are met:
|
||||
Estos módulos se mostrarán si se cumplen alguna de las siguientes condiciones:
|
||||
|
||||
- The current directory contains a file whose name is in `files`
|
||||
- The current directory contains a directory whose name is in `directories`
|
||||
- The current directory contains a file whose extension is in `extensions`
|
||||
- The `when` command returns 0
|
||||
- The current Operating System (std::env::consts::OS) matchs with `os` field if defined.
|
||||
- El directorio actual contiene un archivo cuyo nombre está en `files`
|
||||
- El directorio actual contiene un directorio cuyo nombre está en `directories`
|
||||
- El directorio actual contiene un archivo cuya extensión está en `extensions`
|
||||
- El comando `when` devuelve 0
|
||||
- El sistema operativo actual (std::env::consts::OS) coincide con el campo `os` si está definido.
|
||||
|
||||
::: consejo
|
||||
|
||||
Multiple custom modules can be defined by using a `.`.
|
||||
Múltiples módulos personalizados pueden definirse usando una `.`.
|
||||
|
||||
:::
|
||||
|
||||
::: consejo
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
:::
|
||||
|
||||
::: consejo
|
||||
|
||||
[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!
|
||||
[El issue #1252](https://github.com/starship/starship/discussions/1252) contiene ejemplos de módulos personalizados. Si tiene un ejemplo interesante no cubierto allí, no dude en compartirlo allí!
|
||||
|
||||
:::
|
||||
|
||||
@@ -3055,32 +3055,32 @@ The order in which custom modules are shown can be individually set by including
|
||||
|
||||
\*: Esta variable sólo puede ser usada como parte de una cadena de estilo
|
||||
|
||||
#### Custom command shell
|
||||
#### Comando personalizado del intérprete de comandos
|
||||
|
||||
`shell` accepts a non-empty list of strings, where:
|
||||
`shell` acepta una lista no vacía de cadenas, donde:
|
||||
|
||||
- The first string is the path to the shell to use to execute the command.
|
||||
- Other following arguments are passed to the shell.
|
||||
- La primera cadena es la ruta al intérprete de comandos a usar para ejecutar el comando.
|
||||
- Otros argumentos siguientes son pasados al shell.
|
||||
|
||||
If unset, it will fallback to STARSHIP_SHELL and then to "sh" on Linux, and "cmd /C" on Windows.
|
||||
Si no está activado, se retornará a STARSHIP_SHELL y luego a "sh" en Linux, y "cmd /C" en Windows.
|
||||
|
||||
The `command` will be passed in on stdin.
|
||||
El `comando` será pasado en stdin.
|
||||
|
||||
If `shell` is not given or only contains one element and Starship detects PowerShell will be used, the following arguments will automatically be added: `-NoProfile -Command -`. This behavior can be avoided by explicitly passing arguments to the shell, e.g.
|
||||
Si no se da el `shell` o solo contiene un elemento y Starship detecta PowerShell los siguientes argumentos se añadirán automáticamente: `-NoProfile -Command -`. Este comportamiento puede evitarse pasando explícitamente argumentos al intérprete, p.ej.
|
||||
|
||||
```toml
|
||||
shell = ["pwsh", "-Command", "-"]
|
||||
```
|
||||
|
||||
::: warning Make sure your custom shell configuration exits gracefully
|
||||
::: advertencia Asegúrate de que tu configuración personalizada de shell salga con éxito
|
||||
|
||||
If you set a custom command, make sure that the default Shell used by starship will properly execute the command with a graceful exit (via the `shell` option).
|
||||
Si establece un comando personalizado, asegúrese de que el Shell por defecto usado por starship ejecutará correctamente el comando con una salida elgante (a través de la opción `shell`).
|
||||
|
||||
For example, PowerShell requires the `-Command` parameter to execute a one liner. Omitting this parameter might throw starship into a recursive loop where the shell might try to load a full profile environment with starship itself again and hence re-execute the custom command, getting into a never ending loop.
|
||||
Por ejemplo, PowerShell requiere el parámetro `-Command` para ejecutar una sola línea. Omitir este parámetro puede arrojar a starchip a un bucle recursivo donde el shell podría intentar cargar un entorno de perfil completo con starship en sí misma y volver a ejecutar el comando personalizado, entrando en un bucle infinito.
|
||||
|
||||
Parameters similar to `-NoProfile` in PowerShell are recommended for other shells as well to avoid extra loading time of a custom profile on every starship invocation.
|
||||
Se recomiendan parámetros similares a `-NoProfile` en PowerShell para otros shells para evitar tiempo extra de carga de un perfil personalizado en cada invocación de starship.
|
||||
|
||||
Automatic detection of shells and proper parameters addition are currently implemented, but it's possible that not all shells are covered. [Please open an issue](https://github.com/starship/starship/issues/new/choose) with shell details and starship configuration if you hit such scenario.
|
||||
La detección automática de shells y la adición adecuada de parámetros están actualmente implementados, pero es posible que no todos los shells estén cubiertos. Por favor, [abre un issue](https://github.com/starship/starship/issues/new/choose) con los detalles del intérprete de comandos y la configuración de Starship si te encuentras en tal escenario.
|
||||
|
||||
:::
|
||||
|
||||
@@ -3090,8 +3090,8 @@ Automatic detection of shells and proper parameters addition are currently imple
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[custom.foo]
|
||||
command = "echo foo" # shows output of command
|
||||
files = ["foo"] # can specify filters
|
||||
command = "echo foo" # muestra la salida del comando
|
||||
files = ["foo"] # se pueden especificar filtros
|
||||
when = """ test "$HOME" == "$PWD" """
|
||||
format = " transcending [$output]($style)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user