mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
docs(i18n): new Crowdin translations (#1238)
This commit is contained in:
@@ -32,7 +32,12 @@ Puedes modificar la ubicación por defecto del fichero `starship.toml` con la va
|
||||
export STARSHIP_CONFIG=~/.starship
|
||||
```
|
||||
|
||||
### Terminology
|
||||
Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
|
||||
```ps1
|
||||
$ENV:STARSHIP_CONFIG = "$HOME\.starship"
|
||||
```
|
||||
|
||||
### Terminología
|
||||
|
||||
**Módulo**: un componente en el símbolo de sistema que provee de información basada en información contextual de tu sistema operativo. Por ejemplo, el módulo "nodejs" muestra la versión de NodeJS que tienes actualmente instalada en tu ordenador, si el directorio actual es un proyecto NodeJS.
|
||||
|
||||
@@ -109,11 +114,14 @@ prompt_order = [
|
||||
"java",
|
||||
"julia",
|
||||
"nodejs",
|
||||
"ocaml",
|
||||
"php",
|
||||
"purescript",
|
||||
"python",
|
||||
"ruby",
|
||||
"rust",
|
||||
"terraform",
|
||||
"zig",
|
||||
"nix_shell",
|
||||
"conda",
|
||||
"memory_usage",
|
||||
@@ -199,7 +207,7 @@ discharging_symbol = "💀"
|
||||
|
||||
### Indicador de batería
|
||||
|
||||
La configuración de la opción `display` es usada para definir cuándo se debe mostrar el indicador de batería y cómo debe mostrarse. Si no se provee ningún valor para `display` el valor por defecto es el siguiente:
|
||||
La configuración de la opción `display` es usada para definir cuándo se debe mostrar el indicador de batería y cómo debe mostrarse. Si no se provee ningún valor para `display` El valor por defecto es el siguiente:
|
||||
|
||||
```toml
|
||||
[[battery.display]]
|
||||
@@ -416,12 +424,12 @@ Internally, this module uses its own mechanism for version detection. Typically
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ----------- | ------------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. |
|
||||
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
|
||||
| `style` | `"bold blue"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `dotnet` module. |
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ----------- | ------------- | ----------------------------------------------------- |
|
||||
| `symbol` | `"•NET "` | Símbolo usado antes de mostrar la versión de .NET |
|
||||
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
|
||||
| `style` | `"bold blue"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Deshabilita el módulo `dotnet`. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
@@ -1028,6 +1036,34 @@ The `package` module is shown when the current directory is the repository for a
|
||||
symbol = "🎁 "
|
||||
```
|
||||
|
||||
## OCaml
|
||||
|
||||
The `ocaml` module shows the currently installed version of OCaml. El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- 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
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | --------------- | ------------------------------------------------------- |
|
||||
| `symbol` | `"🐫 "` | The symbol used before displaying the version of OCaml. |
|
||||
| `style` | `"bold yellow"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `ocaml` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[ocaml]
|
||||
symbol = "🐪 "
|
||||
```
|
||||
|
||||
## PHP
|
||||
|
||||
The `php` module shows the currently installed version of PHP. El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
@@ -1251,6 +1287,30 @@ The `username` module shows active user's username. El módulo se muestra si alg
|
||||
disabled = true
|
||||
```
|
||||
|
||||
|
||||
## Zig
|
||||
|
||||
The `zig` module shows the currently installed version of Zig. El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a `.zig` file
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | --------------- | ----------------------------------------------------- |
|
||||
| `symbol` | `"↯ "` | The symbol used before displaying the version of Zig. |
|
||||
| `style` | `"bold yellow"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `zig` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[zig]
|
||||
symbol = "⚡️ "
|
||||
```
|
||||
|
||||
## Comandos personalizados
|
||||
|
||||
The `custom` modules show the output of some arbitrary commands.
|
||||
@@ -1301,3 +1361,27 @@ files = ["foo"] # can specify filters
|
||||
when = """ test "$HOME" == "$PWD" """
|
||||
prefix = " transcending "
|
||||
```
|
||||
|
||||
## PureScript
|
||||
|
||||
The `purescript` module shows the currently installed version of PureScript version. El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- The current directory contains a `spago.dhall` file
|
||||
- The current directory contains a \*.purs files
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | -------------- | ------------------------------------------------------------ |
|
||||
| `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. |
|
||||
| `style` | `"bold white"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `purescript` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[purescript]
|
||||
symbol = "<=> "
|
||||
```
|
||||
|
||||
@@ -30,8 +30,8 @@ STATUS=$?
|
||||
# Calcula el número de tareas ejecutándose.
|
||||
NUM_JOBS=$(jobs -p | wc -l)
|
||||
|
||||
# Actualiza el símbolo del sistema para mostrar la salida de `starship prompt`
|
||||
PS1="$(starship prompt --status=$STATUS --jobs=NUM_JOBS)"
|
||||
# Set the prompt to the output of `starship prompt`
|
||||
PS1="$(starship prompt --status=$STATUS --jobs=$NUM_JOBS)"
|
||||
```
|
||||
|
||||
La [implementación de Bash](https://github.com/starship/starship/blob/master/src/init/starship.bash) en Starship es sensíblemente is ligeramente más compleja para permitir características avanzadas como [el módulo de duración de comando](https://starship.rs/config/#Command-Duration) y para asegurar que Starship es compatible con las configuraciones preinstaladas de Bash.
|
||||
|
||||
Reference in New Issue
Block a user