From 15c04e7d18f13dfc302e3a7e92e51cce03714700 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Wed, 30 Sep 2020 21:23:36 -0400 Subject: [PATCH] docs(i18n): new Crowdin updates (#1705) --- docs/de-DE/config/README.md | 424 +++++----- docs/de-DE/migrating-to-0.45.0/README.md | 10 +- docs/es-ES/config/README.md | 268 +++---- docs/es-ES/migrating-to-0.45.0/README.md | 10 +- docs/fr-FR/config/README.md | 296 +++---- docs/fr-FR/migrating-to-0.45.0/README.md | 4 +- docs/ja-JP/config/README.md | 744 +++++++++--------- docs/ja-JP/migrating-to-0.45.0/README.md | 6 +- docs/pt-BR/config/README.md | 68 +- docs/pt-BR/migrating-to-0.45.0/README.md | 6 +- docs/pt-PT/config/README.md | 22 +- docs/pt-PT/migrating-to-0.45.0/README.md | 2 +- docs/ru-RU/config/README.md | 524 ++++++------ docs/ru-RU/migrating-to-0.45.0/README.md | 14 +- docs/zh-CN/config/README.md | 962 +++++++++++------------ docs/zh-CN/migrating-to-0.45.0/README.md | 2 +- docs/zh-TW/config/README.md | 400 +++++----- docs/zh-TW/migrating-to-0.45.0/README.md | 10 +- 18 files changed, 1887 insertions(+), 1885 deletions(-) diff --git a/docs/de-DE/config/README.md b/docs/de-DE/config/README.md index fe803aa9..50194eb4 100644 --- a/docs/de-DE/config/README.md +++ b/docs/de-DE/config/README.md @@ -1,12 +1,12 @@ # Konfiguration -To get started configuring starship, create the following file: `~/.config/starship.toml`. +Um mit der Konfiguration von Starship zu beginnen, musst du die folgende Datei erstellen: `~/.config/starship.toml`. ```sh mkdir -p ~/.config && touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +Die gesamte Konfiguration von Starship wird über diese [TOML](https://github.com/toml-lang/toml)-Datei durchgeführt: ```toml # Don't print a new line at the start of the prompt @@ -21,7 +21,7 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being disabled = true ``` -You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable: +Sie können den Pfad zur `starship.toml` mit der `STARSHIP_CONFIG` Umgebungsvariable ändern: ```sh export STARSHIP_CONFIG=~/.starship @@ -47,9 +47,9 @@ Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### Terminologie -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**Module**: Eine Komponente in der Konsole, die auf kontextualisierte Informationen des OS basiert. Zum Beispiel zeigt das Modul "nodejs" die Version von NodeJS, die derzeit auf Ihrem Computer installiert ist, wenn Ihr aktuelles Verzeichnis ein NodeJS-Projekt ist. **Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. @@ -85,7 +85,7 @@ For example: #### Style-Strings -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +Die meisten Module in Starship lassen dich den Darstellungsstil verändern. Dies passiert meistens an einem bestimmten Eintrag (gewöhnlich `style` genannt), der einen String mit den Einstellungen darstellt. Es folgen ein paar Beispiele für solche Strings zusammen mit Beschreibungen was sie bewirken. Details zur vollen Syntax findest du im [Erweiterten Konfigurationshandbuch](/advanced-config/). - `"fg:green bg:blue"` setzt grünen Text auf blauen Hintergrund - `"bg:blue fg:bright-green"` setzt hell-grünen Text auf blauen Hintergrund @@ -94,7 +94,7 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` setzt dicke lila Kursivschrift - `""` deaktiviert explizit jeden Stil -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +Wie genau sich diese Konfiguration auswirkt liegt an deinem Terminal-Emulator. Einige Emulatoren zum Beispiel werden die Farben erhellen statt Text dick zu machen, und ein paar Farbthemen benutzen dieselben Werte für normale und helle Farben. Für kursiven Text muss dein Terminal Kursivschrift unterstützen. #### Conditional Format Strings @@ -138,15 +138,15 @@ format = ''' ## Prompt -This is the list of prompt-wide configuration options. +Dies ist eine Liste mit Prompt-weiten Konfigurationsoptionen. ### Optionen -| Option | Standardwert | Beschreibung | -| -------------- | ------------------------------ | ----------------------------------------------------- | -| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | -| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | -| `add_newline` | `true` | Add a new line before the start of the prompt. | +| Option | Standardwert | Beschreibung | +| -------------- | ------------------------------ | ------------------------------------------------------- | +| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | +| `scan_timeout` | `30` | Timeout für das Scannen von Dateien (in Millisekunden). | +| `add_newline` | `true` | Neuer Zeilenumbruch bei Start des Prompts. | ### Beispiel @@ -168,7 +168,7 @@ add_newline = false ### Default Prompt Format -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +The default `format` is used to define the format of the prompt, if empty or no `format` is provided. Die Standardwerte sind folgende: ```toml format = "$all" @@ -228,7 +228,7 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +Das `aws`-Modul zeigt das aktuelle AWS-Profil an. Dies basiert auf den Umgebungsvariablen: `AWS_REGION`, `AWS_DEFAULT_REGION`, `AWS_PROFILE` und der `~/.aws/config` Datei. When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. @@ -296,7 +296,7 @@ symbol = "🅰 " ## Akkustand -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +Das `battery` Modul zeigt, wie hoch der Akku des Geräts geladen ist und den aktuellen Ladestatus. Das Modul ist nur sichtbar, wenn der Akku des Geräts unter 10% geladen ist. ### Optionen @@ -310,7 +310,7 @@ The `battery` module shows how charged the device's battery is and its current c | `disabled` | `false` | Wenn der Wert auf `true` steht, wird das Akkustand-Modul deaktiviert. |
-There are also options for some uncommon battery states. +Das Batterie-Modul unterstützt auch einige untypische Zustände. | Variable | Beschreibung | | ---------------- | --------------------------------------------------- | @@ -332,9 +332,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Anzeige des Akkustandes -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +Die `display` Konfiguration "threshold" stellt ein ab wann die Akkuanzeige eingeblendet wird. Mit "style" wird das Erscheinungsbild festgelegt. Wenn `display` nicht angegeben ist. Die Standardwerte sind folgende: ```toml [[battery.display]] @@ -344,7 +344,7 @@ style = "bold red" #### Optionen -The `display` option is an array of the following table. +Die `display`-Option beinhaltet ein Array mit den folgenden Werten. | Variable | Beschreibung | | ----------- | ------------------------------------------------------- | @@ -354,23 +354,23 @@ The `display` option is an array of the following table. #### Beispiel ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # "bold red" bei Akkustand zwischen 0–10% threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # "bold yellow" bei Akkustand zwischen 10–30% threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# Bei Akkustand über 30% wird der Akkustand nicht angezeigt ``` ## Zeichen -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +Das `character` Modul zeigt ein Zeichen ( meistens einen Pfeil "❯") vor der Texteingabe an. -The character will tell you whether the last command was successful or not. It can do this in two ways: +Das Zeichen zeigt an ob der letzte Befehl erfolgreich war, oder einen Fehler erzeugt hat. It can do this in two ways: - changing color (`red`/`green`) - changing shape (`❯`/`✖`) @@ -451,15 +451,15 @@ The `cmake` module shows the currently installed version of CMake if: ## Befehlsdauer -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +Das `cmd_duration` Modul zeigt an wie lange der letzte Befehl ausgeführt wurde. Das Modul wird nur angezeigt wenn der letzte Befehl länger als zwei Sekunden ausgeführt wurde. Mit der `min_time` Option kann die Zeit eingestellt werden ab der `cmd_duration` angezeigt wird. -::: warning Do not hook the DEBUG trap in Bash +::: warning Nicht die DEBUG-trap in der Bash hooken -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +Ist `bash` die Konsole der Wahl, dann nicht die `DEBUG`-trap nach der Ausführung von `eval $(starship init $0)` hooken, andernfalls **wird** dieses Modul unweigerlich untergehen. ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +Bash Nutzer, die eine "preexec" ähnliche Funktion benötigen, können [rcaloras bash_preexec Framework](https://github.com/rcaloras/bash-preexec) verwenden. Definieren Sie einfach die Arrays `preexec_functions` und `precmd_functions` bevor sie `eval $(starship init $0)` ausführen, und fahren Sie dann wie gewohnt fort. ### Optionen @@ -492,11 +492,11 @@ format = "underwent [$duration](bold yellow)" ## Conda -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +Das `conda`-Modul zeigt dessen aktuelle Umgebung an, sofern `$CONDA_DEFAULT_ENV` gesetzt ist. -::: tip +::: Tipp -This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. +Hinweis: Dies unterdrückt nicht conda's eigenen Prompt-Modifikator, sie können jedoch conda mit `conda config --set changeps1 False` konfigurieren, um die Ausgabe von conda selbst auszuschalten. ::: @@ -509,7 +509,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | `style` | `"bold green"` | Stil für dieses Modul. | | `format` | `"[$symbol$environment]($style) "` | The format for the module. | | `ignore_base` | `true` | Ignores `base` environment when activated. | -| `disabled` | `false` | Disables the `conda` module. | +| `disabled` | `false` | Deaktiviert das `conda`-Modul. | ### Variables @@ -601,9 +601,9 @@ The `dart` module shows the currently installed version of Dart. Das Modul wird format = "via [🔰 $version](bold red) " ``` -## Directory +## Verzeichnis -The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. +Das `directory` -Modul zeigt den Pfad zu Ihrem aktuellen Verzeichnis an, abgeschnitten auf drei übergeordnete Ordner. Your directory will also be truncated to the root of the git repo that you're currently in. When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. @@ -611,18 +611,18 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an ### Optionen -| Variable | Standardwert | Beschreibung | -| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- | -| `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)[$lock_symbol]($lock_style) "` | The format for the module. | -| `style` | `"bold cyan"` | Stil für dieses Modul. | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| Variable | 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) "` | The format for the module. | +| `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. |
-This module has a few advanced configuration options that control how the directory is displayed. +Dieses Modul hat einige erweiterte Konfigurationsoptionen, welche die Darstellung von Verzeichnissen steuern. | Advanced Option | Standardwert | Beschreibung | | --------------------------- | ------------ | ---------------------------------------------------------------------------------------- | @@ -717,13 +717,13 @@ The module will also show the Target Framework Moniker ("` | The description of the module that is shown when running `starship explain`. | -| `files` | `[]` | The files that will be searched in the working directory for a match. | -| `directories` | `[]` | The directories that will be searched in the working directory for a match. | -| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | -| `symbol` | `""` | The symbol used before displaying the command output. | -| `style` | `"bold green"` | Stil für dieses Modul. | -| `format` | `"[$symbol$output]($style) "` | The format for the module. | -| `disabled` | `false` | Disables this `custom` module. | +| Option | Standardwert | Beschreibung | +| -------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | +| `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | +| `shell` | | [See below](#custom-command-shell) | +| `beschreibung` | `""` | The description of the module that is shown when running `starship explain`. | +| `files` | `[]` | The files that will be searched in the working directory for a match. | +| `directories` | `[]` | The directories that will be searched in the working directory for a match. | +| `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | +| `symbol` | `""` | The symbol used before displaying the command output. | +| `style` | `"bold green"` | Stil für dieses Modul. | +| `format` | `"[$symbol$output]($style) "` | The format for the module. | +| `disabled` | `false` | Disables this `custom` module. | ### Variables @@ -2331,7 +2331,7 @@ shell = ["pwsh.exe", "-NoProfile", "-Command", "-"] The `purescript` module shows the currently installed version of PureScript version. Das Modul wird gezeigt, wenn mindestens einer der folgenden Punkte erfüllt ist: -- The current directory contains a `spago.dhall` file +- Das aktuelle Verzeichnis enthält eine `spago.dhall`-Datei - The current directory contains a \*.purs files ### Optionen diff --git a/docs/de-DE/migrating-to-0.45.0/README.md b/docs/de-DE/migrating-to-0.45.0/README.md index 8257d47d..21c0e10a 100644 --- a/docs/de-DE/migrating-to-0.45.0/README.md +++ b/docs/de-DE/migrating-to-0.45.0/README.md @@ -123,7 +123,7 @@ error_symbol = "[✖](bold red) " ++ format = "took [$duration]($style)" ``` -#### Directory +#### Verzeichnis | Removed Property | Replacement | | ---------------- | ----------- | @@ -134,10 +134,10 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` -#### Environment Variable +#### Umgebungsvariablen | Removed Property | Replacement | | ---------------- | ----------- | @@ -169,7 +169,7 @@ error_symbol = "[✖](bold red) " ++ format = "[\\($hash\\)]($style) " ``` -#### Git Status +#### Git-Status | Removed Property | Replacement | | ----------------- | ----------- | @@ -233,7 +233,7 @@ behind = "⇣${count}" ++ format = "[$symbol\\[$env\\]]($style) " ``` -#### Time +#### Zeit | Removed Property | Replacement | | ---------------- | ------------- | diff --git a/docs/es-ES/config/README.md b/docs/es-ES/config/README.md index 0a54a6e8..c598c5e6 100644 --- a/docs/es-ES/config/README.md +++ b/docs/es-ES/config/README.md @@ -48,23 +48,23 @@ El equivalente en PowerShell (Windows) es añadir esta línea a tu `$PROFILE`: $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### Terminología -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**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. -**Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. +**Variable**: subcomponentes más pequeños que contienen información proporcionada por el módulo. Por ejemplo, la variable "version" en el módulo "nodejs" contiene la versión actual de NodeJS. -By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix. +Por convención, la mayoría de los módulos tienen un prefijo del color predeterminado de la terminal (por ejemplo, `vía` en "nodejs") y un espacio vacío como sufijo. -### Format Strings +### Formato de cadenas de texto -Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string. +Es el formato con el que un módulo imprime todas sus variables. La mayoría de los módulos tienen una entrada llamada `format` que configura el formato de visualización del módulo. Se puede utilizar textos, variables y grupos de texto. #### Variable -A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`. +Una variable contiene un símbolo `$` seguido por el nombre de la variable. El nombre de una variable solo contiene letras, números y `_`. -For example: +Por ejemplo: - `$version` es un formato de cadena de texto con una variable llamada `version`. - `$git_branch$git_commit` es un formato de cadena de texto con dos variables nombradas `git_branch` y `git_commit`. @@ -72,13 +72,13 @@ For example: #### Grupo de texto -A text group is made up of two different parts. +Un grupo de texto se compone de dos partes diferentes. -The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it. +La primera parte, que está encerrada en un `[]`, es un [formato de cadena de texto](#format-strings). Se puede agregar textos, variables, o incluso grupos de texto anidados. -In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part. +En la segunda parte, que está encerrada en un `()`, es un [formato de cadena de texto](#style-strings). Se puede utilizar el estilo de la primera parte. -For example: +Por ejemplo: - `[on](bold red)` imprimirá una cadena `en` con texto en negrita color rojo. - `[⬢ $version](bold green)` imprimirá un símbolo `⬢` seguido por el contenido de la variable `version`, con texto en negrita color verde. @@ -86,7 +86,7 @@ For example: #### Cadenas de estilo -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +La mayoría de los módulos de starship permiten configurar los estilos de su cadenas texto. Esto se consigue con una entrada (normalmente llamada `style` - estilo) que no es más que un texto donde se especifica la configuración. A continuación mostramos algunos ejemplos de textos estilados junto con su funcionalidad. Para más detalles sobre la sintaxis completa, consulta [la guía de configuración avanzada](/advanced-config/). - `"fg:green bg:blue"` pone texto verde sobre un fondo azul - `"bg:blue fg:bright-green"` pone texto verde claro sobre un fondo azul @@ -95,13 +95,13 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` pone texto color morado, en negrita y cursiva - `""` desactiva explícitamente cualquier estilo -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +Nótese que el estilo es similar a como se controlaría por el emulador de su terminal. Por ejemplo, algunos emuladores de terminal harán los colores más brillantes en lugar de más gruesos, y algunos temas usan los mismos valores para texto normal y colores brillantes. Además, para mostrar textos en cursiva tu terminal debe tener soporte para hacerlo. #### Cadenas de formato condicionales -A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty. +Una cadena de formato condicional envuelto en `(` y `)` no se renderizará si todas las variables dentro están vacías. -For example: +Por ejemplo: - `(@$region)` no mostrará nada si la variable `region` es `None`, de lo contrario `@` seguido por el valor de la región. - `(algún texto)` siempre mostrará nada ya que no hay variables envueltas entre llaves. @@ -109,7 +109,7 @@ For example: #### Carácteres de escape -The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`). +Los siguientes símbolos tienen un uso especial en una cadena de formato. Si se quiere imprimir los siguientes símbolos, se tienen que escapar con una barra invertida (`\`). - \$ - \\ @@ -118,20 +118,20 @@ The following symbols have special usage in a format string. If you want to prin - ( - ) -Note that `toml` has [its own escape syntax](https://github.com/toml-lang/toml#user-content-string). It is recommended to use a literal string (`''`) in your config. If you want to use a basic string (`""`), pay attention to escape the backslash `\`. +Se debe tener en cuenta que `toml` tiene [su propia sintaxis de escape](https://github.com/toml-lang/toml#user-content-string). Se recomienda usar una cadena literal (`''`) en la configuración. Si se desea utilizar una cadena básica (`""`), prestar atención para escapar la barra inversa `\`. -For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent: +Por ejemplo, cuando se desea imprimir un símbolo `$` en una nueva línea, las siguientes configuraciones para el `format` son equivalentes: ```toml -# with basic string +# con cadena básica format = "\n\\$" -# with multiline basic string +# con cadena básica multilínea format = """ \\$""" -# with literal string +# con cadena literal format = ''' \$''' @@ -139,7 +139,7 @@ format = ''' ## Prompt -This is the list of prompt-wide configuration options. +Esta es la lista de opciones de configuración. ### Opciones @@ -154,22 +154,22 @@ This is the list of prompt-wide configuration options. ```toml # ~/.config/starship.toml -# Use custom format +# Usar formato personalizado format = """ [┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green) """ -# Wait 10 milliseconds for starship to check files under the current directory. +# Espera 10 milisegundos para que starship revise los archivos del directorio actual. scan_timeout = 10 -# Disable the newline at the start of the prompt +# Desactiva la nueva línea al inicio del prompt add_newline = false ``` -### Default Prompt Format +### Formato predeterminado del Prompt -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +El `format` predeterminado se utiliza para definir el formato del prompt, si está vacío o no `format` se proporciona. El valor por defecto es el siguiente: ```toml format = "$all" @@ -229,9 +229,9 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +El módulo `aws` muestra la región actual de AWS y el perfil. Éste se basa en las variables de entorno `AWS_REGION`, `AWS_DEFAULT_REGION`, y `AWS_PROFILE` del fichero `~/.aws/config`. -When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. +Cuando uses [aws-vault](https://github.com/99designs/aws-vault) el perfil se obtiene de la variable de entorno `AWS_VAULT`. ### Opciones @@ -254,7 +254,7 @@ When using [aws-vault](https://github.com/99designs/aws-vault) the profile is re \*: Esta variable sólo puede ser usada como parte de una cadena de estilo -### Examples +### Ejemplos #### Mostrar todo @@ -297,7 +297,7 @@ symbol = "🅰 " ## Battery -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +El módulo `battery` muestra la cantidad de batería y si está cargando o no. El módulo es solo visible cuando la batería está por debajo del 10%. ### Opciones @@ -311,7 +311,7 @@ The `battery` module shows how charged the device's battery is and its current c | `disabled` | `false` | Desactiva el módulo `battery`. |
-There are also options for some uncommon battery states. +Hay otras opciones para algunos estados de la batería menos comunes. | Variable | Descripción | | ---------------- | --------------------------------------------------- | @@ -333,9 +333,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Indicador de batería -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +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]] @@ -345,7 +345,7 @@ style = "bold red" #### Opciones -The `display` option is an array of the following table. +La opción `display` es un array de la siguiente tabla. | Variable | Descripción | | ----------- | --------------------------------------------------------------- | @@ -355,28 +355,28 @@ The `display` option is an array of the following table. #### Ejemplo ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # "bold red" cuando la carga está entre 0% y 10% threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # "bold yellow" cuando la carga está entre 10% y 30% threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# cuando la carga está por encima del 30% el indicador no se mostrará ``` ## Character -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +El módulo `character` muestra un carater (normalmente una flecha) tras el texto que introduces en el terminal. -The character will tell you whether the last command was successful or not. It can do this in two ways: +El carácter te dirá si el último comando funcionó o no. Se puede hacer de dos maneras: - cambiando el color (`red`/`green`) - cambiando la forma (`.`/`✖`) -By default it only changes color. If you also want to change it's shape take a look at [this example](#with-custom-error-shape). +Por defecto sólo cambia el color. Si también se quiere cambiar su forma, ver [este ejemplo](#with-custom-error-shape). ### Opciones @@ -394,7 +394,7 @@ By default it only changes color. If you also want to change it's shape take a l | -------- | ------- | -------------------------------------------------------------- | | symbol | | Un espejo de `success_symbol`, `error_symbol` o `vicmd_symbol` | -### Examples +### Ejemplos #### Con forma de error personalizada @@ -427,7 +427,7 @@ vicmd_symbol = "[V](bold green) " ## CMake -The `cmake` module shows the currently installed version of CMake if: +El módulo `cmake` muestra la versión actualmente instalada de CMake si: - El directorio actual contiene un archivo `CMakeLists.txt` @@ -452,15 +452,15 @@ The `cmake` module shows the currently installed version of CMake if: ## Tiempo de ejecución -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +El módulo `cmd_duration` muestra cuánto tiempo tardó el último comando en ejecutarse. El módulo se mostrará solo si el comando llevó dos segundos o más, o el valor de `min_time`, si existe. -::: warning Do not hook the DEBUG trap in Bash +::: warning No utilizar DEBUG en Bash -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +Si estás usando Starship con `bash`, no uses `DEBUG` después de ejecutar `eval $(starship init $0)`, o el módulo **se romperá**. ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +Los usuarios de bash que necesiten la funcionalidad preexec-like pueden usar el framework rcaloras's bash_preexec. Simplemente define los arrays preexec_functions y precmd_functions antes de ejecutar eval $(starship init $0), y continúa con normalidad. Basta con definir los arrays `preexec_functions` y `precmd_functions` antes de ejecutar `eval $(starship init $0)`, y luego proceder como siempre. ### Opciones @@ -493,11 +493,11 @@ format = "underwent [$duration](bold yellow)" ## Conda -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +El módulo `conda` muestra el actual entorno conda, si la variable `$CONDA_DEFAULT_ENV` existe. ::: tip -This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. +Esto no modifica el propio símbolo de sistema de conda. En caso de querer suprimirlo, ejecuta `conda config --set changeps1 False`. ::: @@ -533,7 +533,7 @@ format = "[$symbol$environment](dimmed green) " ## Crystal -The `crystal` module shows the currently installed version of Crystal. El módulo se muestra si algunas de las siguientes condiciones se cumplen: +El módulo `crystal` muestra la versión actual de Crystal. El módulo se muestra si algunas de las siguientes condiciones se cumplen: - El directorio actual contiene un fichero `shard.yml` - El directorio actual contiene un fichero `.cr` @@ -568,7 +568,7 @@ format = "via [✨ $version](bold blue) " ## Dart -The `dart` module shows the currently installed version of Dart. El módulo se muestra si algunas de las siguientes condiciones se cumplen: +El módulo `dart` muestra la versión actualmente instalada de Dart. El módulo se muestra si algunas de las siguientes condiciones se cumplen: - El directorio actual contiene un archivo con la extensión `.dart` - El directorio actual contiene un directorio `.dart_tool` @@ -604,26 +604,26 @@ format = "via [🔰 $version](bold red) " ## Directory -The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. +El módulo `directory` muestra la ruta hasta el directorio actual, mostrando tres directorios padre como máximo. Tu directorio se truncará a la raíz del repositorio git en el que estés. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +Cuando usas el estilo fish de la opción pwd, en lugar de ocultar la ruta truncada, verás una versión acortada del nombre de cada directorio basada en el número que activa la opción. -For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. +Por ejemplo, dado `~/Dev/Nix/nixpkgs/pkgs` donde `nixpkgs` es la raíz del repositorio y el valor de la opción es `1`. En ese caso, verás `~/D/N/nixpkgs/pkgs`, cuando antes hubiera sido `nixpkgs/pkgs`. ### Opciones -| Variable | Por defecto | Descripción | -| ------------------------ | ----------------------------------------------- | --------------------------------------------------------------------- | -| `truncation_length` | `3` | El número de carpetas a las que se debe truncar el directorio actual. | -| `truncate_to_repo` | `true` | Truncar o no hasta la raíz del repositorio git en el que se esté. | -| `format` | `"[$path]($style)[$lock_symbol]($lock_style) "` | El formato del módulo. | -| `style` | `"bold cyan"` | El estilo del módulo. | -| `disabled` | `false` | Deshabilita el módulo `directory`. | -| `read_only_symbol` | `"🔒"` | El símbolo que indica si el directorio actual es de sólo lectura. | -| `read_only_symbol_style` | `"red"` | El estilo para el símbolo de sólo lectura. | +| Variable | Por defecto | Descripción | +| ------------------- | -------------------------------------------------- | --------------------------------------------------------------------- | +| `truncation_length` | `3` | El número de carpetas a las que se debe truncar el directorio actual. | +| `truncate_to_repo` | `true` | Truncar o no hasta la raíz del repositorio git en el que se esté. | +| `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 si el directorio actual es de sólo lectura. | +| `read_only_style` | `"red"` | El estilo para el símbolo de sólo lectura. |
-This module has a few advanced configuration options that control how the directory is displayed. +Este módulo tiene algunas opciones avanzadas de configuración que controlan cómo se muestra el directorio. | Advanced Option | Por defecto | Descripción | | --------------------------- | ----------- | ---------------------------------------------------------------------------------------- | @@ -663,7 +663,7 @@ truncation_length = 8 ## Docker Context -The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default`. +El módulo `docker_context` muestra el [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) activo si no está a `default`. ### Opciones @@ -696,9 +696,9 @@ format = "via [🐋 $context](blue bold)" ## Dotnet -The `dotnet` module shows the relevant version of the .NET Core SDK for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK. +El módulo `dotnet` muestra la versión usada de .NET Core SDK para el directorio actual. Si el SDK ha sido anclado en el directorio actual, se mostrará la versión fijada. De lo contrario, el módulo muestra la última versión instalada del SDK. -This module will only be shown in your prompt when one or more of the following files are present in the current directory: +Este módulo solo se mostrará en tu mensaje cuando uno o más de los siguientes archivos estén presentes en el directorio actual: - `global.json` - `project.json` @@ -710,11 +710,11 @@ This module will only be shown in your prompt when one or more of the following - `*.fsproj` - `*.xproj` -You'll also need the .NET Core SDK installed in order to use it correctly. +También necesitará tener instalado .NET Core SDK para poder usarlo correctamente. -Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options. +Internamente, este módulo utiliza su propio mecanismo para la detección de versiones. Normalmente es el doble de rápido que ejecutar `dotnet --version`, pero puede mostrar una versión incorrecta si tu proyecto .NET tiene un diseño de directorio inusual. Si la precisión es más importante que la velocidad, puede desactivar el mecanismo estableciendo `heuristic = false` en las opciones del módulo. -The module will also show the Target Framework Moniker () when there is a csproj file in the current directory. +El módulo también mostrará el Target Framework Moniker ([https://docs.microsoft. om/es/dotnet/standard/frameworks#supported-target-framework-versions](https://docs.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-framework-versions)) cuando exista un archivo csproj en el directorio actual. ### Opciones @@ -750,7 +750,7 @@ heuristic = false ## Elixir -The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. El módulo se muestra si algunas de las siguientes condiciones se cumplen: +El módulo `elixir` muestra la version instalada actualmente de Elixir y Erlang/OTP. El módulo se muestra si algunas de las siguientes condiciones se cumplen: - El directorio actual contiene un archivo `mix.exs`. @@ -787,8 +787,8 @@ symbol = "🔮 " The `elm` module shows the currently installed version of Elm. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `elm.json` file -- The current directory contains a `elm-package.json` file +- El directorio actual contiene un fichero `elm.json` +- El directorio actual contiene un fichero `elm-package.json` - The current directory contains a `.elm-version` file - The current directory contains a `elm-stuff` folder - The current directory contains a `*.elm` files @@ -821,7 +821,7 @@ The `elm` module shows the currently installed version of Elm. El módulo se mue format = "via [ $version](cyan bold) " ``` -## Environment Variable +## Variable de entorno The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met: @@ -830,13 +830,13 @@ The `env_var` module displays the current value of a selected environment variab ### Opciones -| Opción | Por defecto | Descripción | -| ---------- | ------------------------------ | ---------------------------------------------------------------------------- | -| `symbol` | | The symbol used before displaying the variable value. | -| `variable` | | The environment variable to be displayed. | -| `default` | | The default value to be displayed when the selected variable is not defined. | -| `format` | `"with [$env_value]($style) "` | El formato del módulo. | -| `disabled` | `false` | Disables the `env_var` module. | +| Opción | Por defecto | Descripción | +| ------------- | ------------------------------ | ---------------------------------------------------------------------------- | +| `symbol` | | The symbol used before displaying the variable value. | +| `variable` | | The environment variable to be displayed. | +| `por defecto` | | The default value to be displayed when the selected variable is not defined. | +| `format` | `"with [$env_value]($style) "` | El formato del módulo. | +| `disabled` | `false` | Disables the `env_var` module. | ### Variables @@ -862,8 +862,8 @@ default = "unknown shell" The `erlang` module shows the currently installed version of Erlang/OTP. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `rebar.config` file. -- The current directory contains a `erlang.mk` file. +- El directorio actual contiene un fichero `rebar.config`. +- El directorio actual contiene un fichero `erlang.mk`. ### Opciones @@ -914,13 +914,13 @@ The `gcloud` module shows the current configuration for [`gcloud`](https://cloud | region | `us-central1` | The current GCP region | | account | `foo@example.com` | The current GCP profile | | project | | The current GCP project | -| active | `default` | The active config name written in `~/.config/gcloud/active_config` | +| active | `por defecto` | The active config name written in `~/.config/gcloud/active_config` | | symbol | | Refleja el valor de la opción `symbol` | | style\* | | Refleja el valor de la opción `style` | \*: Esta variable sólo puede ser usada como parte de una cadena de estilo -### Examples +### Ejemplos #### Display account and project @@ -989,7 +989,7 @@ truncation_length = 4 truncation_symbol = "" ``` -## Git Commit +## Git commit The `git_commit` module shows the current commit hash of the repo in your current directory. @@ -1021,7 +1021,7 @@ The `git_commit` module shows the current commit hash of the repo in your curren commit_hash_length = 4 ``` -## Git State +## 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. @@ -1061,7 +1061,7 @@ format = "[\\($state( $progress_current of $progress_total)\\)]($style) " cherry_pick = "[🍒 PICKING](bold red)" ``` -## Git Status +## Git status The `git_status` module shows symbols representing the state of the repo in your current directory. @@ -1134,6 +1134,7 @@ deleted = "🗑" ``` Show ahead/behind count of the branch being tracked + ```toml # ~/.config/starship.toml @@ -1147,9 +1148,9 @@ behind = "⇣${count}" The `golang` module shows the currently installed version of Golang. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `go.mod` file -- The current directory contains a `go.sum` file -- The current directory contains a `glide.yaml` file +- El directorio actual contiene un fichero `go.mod` +- El directorio actual contiene un fichero `go.sum` +- El directorio actual contiene un fichero `glide.yaml` - The current directory contains a `Gopkg.yml` file - The current directory contains a `Gopkg.lock` file - The current directory contains a `.go-version` file @@ -1188,7 +1189,7 @@ format = "via [🏎💨 $version](bold cyan) " The `helm` module shows the currently installed version of Helm. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `helmfile.yaml` file +- El directorio actual contiene un fichero `helmfile.yaml` - The current directory contains a `Chart.yaml` file ### Opciones @@ -1403,7 +1404,7 @@ disabled = false "dev.local.cluster.k8s" = "dev" ``` -## Line Break +## Salto de línea The `line_break` module separates the prompt into two lines. @@ -1422,7 +1423,7 @@ The `line_break` module separates the prompt into two lines. disabled = true ``` -## Memory Usage +## Memoria utilizada The `memory_usage` module shows current system memory and swap usage. @@ -1512,7 +1513,7 @@ truncation_symbol = "" The `nim` module shows the currently installed version of Nim. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `nim.cfg` file +- El directorio actual contiene un fichero `nim.cfg` - 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 @@ -1521,7 +1522,7 @@ The `nim` module shows the currently installed version of Nim. El módulo se mue | Opción | Por defecto | Descripción | | ---------- | ---------------------------------- | ----------------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module | +| `format` | `"via [$symbol$version]($style) "` | El formato del módulo | | `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. | | `style` | `"bold yellow"` | El estilo del módulo. | | `disabled` | `false` | Disables the `nim` module. | @@ -1588,7 +1589,7 @@ format = "via [☃️ $state( \\($name\\))](bold blue) " The `nodejs` module shows the currently installed version of NodeJS. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `package.json` file +- El directorio actual contiene un fichero `package.json` - The current directory contains a `.node-version` file - The current directory contains a `node_modules` directory - The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension @@ -1622,7 +1623,7 @@ The `nodejs` module shows the currently installed version of NodeJS. El módulo format = "via [🤖 $version](bold green) " ``` -## Package Version +## 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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. @@ -1746,7 +1747,7 @@ format = "via [🦪 $version]($style) " The `php` module shows the currently installed version of PHP. El módulo se muestra si algunas de las siguientes condiciones se cumplen: -- The current directory contains a `composer.json` file +- El directorio actual contiene un fichero `composer.json` - The current directory contains a `.php-version` file - The current directory contains a `.php` file @@ -1787,12 +1788,12 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name El módulo se muestra si algunas de las siguientes condiciones se cumplen: - The current directory contains a `.python-version` file -- The current directory contains a `requirements.txt` file -- The current directory contains a `pyproject.toml` file +- El directorio actual contiene un fichero `requirements.txt` +- El directorio actual contiene un fichero `pyproject.toml` - The current directory contains a file with the `.py` extension (and `scan_for_pyfiles` is true) - The current directory contains a `Pipfile` file -- The current directory contains a `tox.ini` file -- The current directory contains a `setup.py` file +- El directorio actual contiene un fichero `tox.ini` +- El directorio actual contiene un fichero `setup.py` - The current directory contains a `__init__.py` file - A virtual environment is currently activated @@ -2036,7 +2037,6 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | El estilo del módulo. | | `disabled` | `true` | Disables the `status` module. | - ### Variables | Variable | Ejemplo | Descripción | @@ -2047,8 +2047,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y \*: Esta variable sólo puede ser usada como parte de una cadena de estilo - ### Ejemplo + ```toml # ~/.config/starship.toml @@ -2079,12 +2079,12 @@ The `terraform` module shows the currently selected terraform workspace and vers ### Variables -| Variable | Ejemplo | Descripción | -| --------- | ---------- | -------------------------------------- | -| version | `v0.12.24` | The version of `terraform` | -| workspace | `default` | The current terraform workspace | -| symbol | | Refleja el valor de la opción `symbol` | -| style\* | | Refleja el valor de la opción `style` | +| Variable | Ejemplo | Descripción | +| --------- | ------------- | -------------------------------------- | +| version | `v0.12.24` | The version of `terraform` | +| workspace | `por defecto` | The current terraform workspace | +| symbol | | Refleja el valor de la opción `symbol` | +| style\* | | Refleja el valor de la opción `style` | \*: Esta variable sólo puede ser usada como parte de una cadena de estilo @@ -2108,7 +2108,7 @@ format = "[🏎💨 $version$workspace]($style) " format = "[🏎💨 $workspace]($style) " ``` -## Time +## 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. @@ -2123,12 +2123,12 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | Opción | Por defecto | Descripción | | ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | `format` | `"at [$time]($style) "` | The format string for the module. | -| `use_12hr` | `false` | Enables 12 hour formatting | +| `use_12hr` | `false` | Activa el formato de 12 horas | | `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. | -| `style` | `"bold yellow"` | The style for the module time | +| `style` | `"bold yellow"` | El estilo del módulo de la hora | | `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | | `disabled` | `true` | Disables the `time` module. | -| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | +| `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. @@ -2136,7 +2136,7 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de | Variable | Ejemplo | Descripción | | --------- | ---------- | ------------------------------------- | -| time | `13:08:10` | The current time. | +| hora | `13:08:10` | The current time. | | style\* | | Refleja el valor de la opción `style` | \*: Esta variable sólo puede ser usada como parte de una cadena de estilo @@ -2154,7 +2154,7 @@ utc_time_offset = "-5" time_range = "10:00:00-14:00:00" ``` -## Username +## Nombre de usuario The `username` module shows active user's username. El módulo se muestra si algunas de las siguientes condiciones se cumplen: @@ -2227,7 +2227,7 @@ The `zig` module shows the currently installed version of Zig. El módulo se mue symbol = "⚡️ " ``` -## Custom commands +## Comandos personalizados The `custom` modules show the output of some arbitrary commands. @@ -2263,7 +2263,7 @@ The order in which custom modules are shown can be individually set by including | `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | | `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | | `shell` | | [See below](#custom-command-shell) | -| `description` | `""` | The description of the module that is shown when running `starship explain`. | +| `descripción` | `""` | The description of the module that is shown when running `starship explain`. | | `files` | `[]` | The files that will be searched in the working directory for a match. | | `directories` | `[]` | The directories that will be searched in the working directory for a match. | | `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | @@ -2274,17 +2274,17 @@ The order in which custom modules are shown can be individually set by including ### Variables -| Variable | Descripción | -| --------- | -------------------------------------- | -| output | The output of shell command in `shell` | -| symbol | Refleja el valor de la opción `symbol` | -| style\* | Refleja el valor de la opción `style` | +| Variable | Descripción | +| --------- | ----------------------------------------- | +| output | La salida del comando de shell en `shell` | +| symbol | Refleja el valor de la opción `symbol` | +| style\* | Refleja el valor de la opción `style` | \*: Esta variable sólo puede ser usada como parte de una cadena de estilo #### Comando personalizado de shell -`shell` accepts a non-empty list of strings, where: +`shell` acepta una lista no vacía de cadenas, donde: - La primera cadena es la ruta al intérprete de comandos a usar para ejecutar el comando. - Otros argumentos siguientes son pasados al shell. @@ -2330,25 +2330,25 @@ shell = ["pwsh.exe", "-NoProfile", "-Command", "-"] ## 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: +El módulo `purescript` muestra la versión actualmente instalada de PureScript. El módulo se muestra si algunas de las siguientes condiciones se cumplen: - El directorio actual contiene un archivo `spago.dhall` - El directorio actual contiene un archivo \*.purs ### Opciones -| Opción | Por defecto | Descripción | -| ---------- | ---------------------------------- | ------------------------------------------------------------ | -| `format` | `"via [$symbol$version]($style) "` | El formato del módulo. | -| `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. | -| `style` | `"bold white"` | El estilo del módulo. | -| `disabled` | `false` | Disables the `purescript` module. | +| Opción | Por defecto | Descripción | +| ---------- | ---------------------------------- | ----------------------------------------------------------- | +| `format` | `"via [$symbol$version]($style) "` | El formato del módulo. | +| `symbol` | `"<=> "` | El símbolo usado antes de mostrar la versión de PureScript. | +| `style` | `"bold white"` | El estilo del módulo. | +| `disabled` | `false` | Deshabilita el módulo `purescript`. | ### Variables | Variable | Ejemplo | Descripción | | --------- | -------- | -------------------------------------- | -| version | `0.13.5` | The version of `purescript` | +| version | `0.13.5` | La versión de `purescript` | | symbol | | Refleja el valor de la opción `symbol` | | style\* | | Refleja el valor de la opción `style` | diff --git a/docs/es-ES/migrating-to-0.45.0/README.md b/docs/es-ES/migrating-to-0.45.0/README.md index 70827fcd..195f6f37 100644 --- a/docs/es-ES/migrating-to-0.45.0/README.md +++ b/docs/es-ES/migrating-to-0.45.0/README.md @@ -134,10 +134,10 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` -#### Environment Variable +#### Variable de entorno | Removed Property | Replacement | | ---------------- | ----------- | @@ -153,7 +153,7 @@ error_symbol = "[✖](bold red) " ++ format = "with [$env_value]($style) " ``` -#### Git Commit +#### Git commit | Removed Property | Replacement | | ---------------- | ----------- | @@ -169,7 +169,7 @@ error_symbol = "[✖](bold red) " ++ format = "[\\($hash\\)]($style) " ``` -#### Git Status +#### Git status | Removed Property | Replacement | | ----------------- | ----------- | @@ -233,7 +233,7 @@ behind = "⇣${count}" ++ format = "[$symbol\\[$env\\]]($style) " ``` -#### Time +#### Hora | Removed Property | Replacement | | ---------------- | ------------- | diff --git a/docs/fr-FR/config/README.md b/docs/fr-FR/config/README.md index 1b82e7c1..7d392950 100644 --- a/docs/fr-FR/config/README.md +++ b/docs/fr-FR/config/README.md @@ -47,23 +47,23 @@ De manière équivalente, pour Powershell (Windows), ajoutez la ligne suivante $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### Terminologie -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**Module**: Un composant dans l'invite donnant des informations basées sur des informations contextuelles à propos de votre Système d'Exploitation. Par exemple, le module "nodejs" montre la version de NodeJS qui est actuellement installée sur votre ordinateur, si votre répertoire actuel est un projet NodeJS. -**Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. +**Variable**: Petits sous-composants qui contiennent des informations fournies par le module. Par exemple, la variable "version" dans le module "nodejs" contient la version actuelle de NodeJS. -By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix. +Par convention, la plupart des modules ont un préfixe de la couleur par défaut du terminal (par exemple `via` dans "nodejs") et un espace vide comme suffixe. -### Format Strings +### Chaîne de formatage -Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string. +Les chaînes de formatage sont le format avec lequel un module affiche toutes ses variables. La plupart des modules ont une entrée appelée `format` qui configure le format d'affichage du module. Vous pouvez utiliser des textes, des variables et des groupes de texte dans une chaîne de format. #### Variable -A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`. +Une variable contient un symbole `$` suivi du nom de la variable. Le nom d'une variable ne contient que des lettres, des chiffres et `_`. -For example: +Par exemple : - `$version` est une chaîne de formatage avec une variable nommée `version`. - `$git_branch$git_commit` est une chaîne de formatage avec deux variables appelées `git_branch` et `git_commit`. @@ -71,13 +71,13 @@ For example: #### Groupe de texte -A text group is made up of two different parts. +Un groupe de texte se compose de deux parties différentes. -The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it. +La première partie, qui est entourée dans un `[]`, est une [chaîne de formatage](#format-strings). Vous pouvez y ajouter des textes, des variables, ou même des groupes de texte imbriqués. -In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part. +La deuxième partie, qui est entourée par `()`, est une [chaîne de style](#style-strings). Ceci peut être utilisé pour styliser la première partie. -For example: +Par exemple : - `[on](red bold)` affichera une chaîne de caractères `on` avec un texte gras de couleur rouge. - `[⬢ $version](bold green)` affichera un symbole `⬢` suivi du contenu de la variable `version`, avec un texte en gras de couleur verte. @@ -85,7 +85,7 @@ For example: #### Chaînes de style -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +La plupart des modules de Starship vous permettent de configurer leurs styles d'affichage. Cela se fait avec une entrée (généralement appelée `style`) qui est une chaîne de caractères spécifiant la configuration. Voici quelques exemples de chaînes de style avec ce qu'elles font. Pour plus de détails sur la syntaxe complète, consultez le [guide de configuration avancé](/advanced-config/). - `"fg:green bg:blue"` définit un texte vert sur un fond bleu - `"bg:blue fg:bright-green"` définit un texte vert clair sur un fond bleu @@ -94,13 +94,13 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` définit le texte en italique et gras sur un fond violet - `""` désactive explicitement tous les styles -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +Notez que ce style sera contrôlé par votre émulateur de terminal. Par exemple, certains émulateurs de terminal éclairciront les couleurs au lieu de mettre le texte en gras, et certains thèmes de couleurs utilisent les mêmes valeurs pour les couleurs normales et claires. De plus, pour obtenir du texte italique, votre terminal doit prendre en charge l'italique. #### Chaînes de formatage conditionnel -A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty. +Une chaîne de formatage conditionnel enveloppée dans `(` et `)` ne sera pas rendue si toutes les variables à l'intérieur sont vides. -For example: +Par exemple : - `(@$region)` ne montrera rien si la variable `région` est `None`, sinon `@` suivi de la valeur de la région. - `(some text)` ne montrera toujours rien puisqu'il n'y a pas de variables enveloppées dans les accolades. @@ -108,7 +108,7 @@ For example: #### Caractère d’échappement -The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`). +Les symboles suivants ont une utilisation spéciale dans une chaîne de formatage. Si vous voulez afficher les symboles suivants, vous devez les échapper avec un antislash (`\`). - \$ - \\ @@ -117,20 +117,20 @@ The following symbols have special usage in a format string. If you want to prin - ( - ) -Note that `toml` has [its own escape syntax](https://github.com/toml-lang/toml#user-content-string). It is recommended to use a literal string (`''`) in your config. If you want to use a basic string (`""`), pay attention to escape the backslash `\`. +Notez que `toml` a [sa propre syntaxe d'échappement](https://github.com/toml-lang/toml#user-content-string). Il est recommandé d'utiliser une chaîne littérale (`''`) dans votre configuration. Si vous voulez utiliser une chaîne de base (`""`), faites attention à l'échappement de l'antislash `\`. -For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent: +Par exemple, lorsque vous voulez imprimer un symbole `$` sur une nouvelle ligne, les configurations suivantes pour le `formatage` sont équivalentes : ```toml -# with basic string +# avec la chaîne de base format = "\n\\$" -# with multiline basic string +# avec la chaîne de caractères de base multiligne format = """ \\$""" -# with literal string +# avec la chaîne littérale format = ''' \$''' @@ -138,7 +138,7 @@ format = ''' ## Invite -This is the list of prompt-wide configuration options. +Voici la liste des options de configuration de l'invite en lui-même. ### Options @@ -151,24 +151,24 @@ This is the list of prompt-wide configuration options. ### Exemple ```toml -# ~/.config/starship.toml +# ~/.config/starship. oml -# Use custom format +# Utilisez un format personnalisé format = """ [┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green) """ -# Wait 10 milliseconds for starship to check files under the current directory. +# Attendez 10 millisecondes pour que starship vérifie les fichiers dans le répertoire de travail. scan_timeout = 10 -# Disable the newline at the start of the prompt +# Désactive la nouvelle ligne au démarrage de l'invite add_newline = false ``` -### Default Prompt Format +### Format par Défaut -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +Le `format` par défaut est utilisé pour définir le format de l'invite, si il est vide ou mal `formaté`. La valeur par défaut est la suivante : ```toml format = "$all" @@ -228,9 +228,9 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +Le module `aws` affiche la région et le profil AWS courant. Ces informations sont basées sur les variables d'environnement `AWS_REGION`, `AWS_DEFAULT_REGION`, et `AWS_PROFILE` ainsi que le fichier `~/.aws/config`. -When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. +Quand [aws-vault](https://github.com/99designs/aws-vault) est utilisé, la valeur du profil est lu dans la variable d'environnement: `AWS_VAULT`. ### Options @@ -251,9 +251,9 @@ When using [aws-vault](https://github.com/99designs/aws-vault) the profile is re | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style -### Examples +### Exemples #### Tout afficher @@ -296,7 +296,7 @@ symbol = "🅰 " ## Battery -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +Le module `battery` montre à quel point la batterie de l'appareil est chargée et son état de charge actuel. Ce module n'est visible que lorsque la batterie de l'appareil est inférieure à 10%. ### Options @@ -310,14 +310,14 @@ The `battery` module shows how charged the device's battery is and its current c | `disabled` | `false` | Désactive le module `battery`. |
-There are also options for some uncommon battery states. +Il existe aussi des options pour des états de batterie peu communs. | Variable | Description | | ---------------- | ------------------------------------------------------------- | | `unknown_symbol` | Le symbole affiché lorsque l'état de la batterie est inconnu. | | `empty_symbol` | Le symbole affiché lorsque la batterie est vide. | -Note: Battery indicator will be hidden if the status is `unknown` or `empty` unless you specify the option in the config. +Remarque : L'indicateur de batterie sera masqué si le statut est `unknown` ou `empty` sauf si vous spécifiez l'option dans la configuration.
@@ -332,9 +332,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Indicateur de batterie -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +L'option de configuration `display` est utilisée pour définir quand l'indicateur de batterie doit être affiché (seuil) et à quoi il ressemble (style). Si aucun `display` n'est fourni. La valeur par défaut est la suivante : ```toml [[battery.display]] @@ -344,7 +344,7 @@ style = "bold red" #### Options -The `display` option is an array of the following table. +L'option `display` est une array de la table suivante. | Variable | Description | | ----------- | -------------------------------------------------- | @@ -354,28 +354,28 @@ The `display` option is an array of the following table. #### Exemple ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # le style "bold red" lorsque la capacité est comprise entre 0% et 10% threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # le style "bold yellow" quand la capacité est comprise entre 10% et 30% threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# lorsque la capacité est supérieure à 30%, l'indicateur de batterie ne sera pas affiché ``` ## Caractères -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +Le module `character` affiche un caractère (habituellement une flèche) à côté de l'endroit où le texte est entré dans votre terminal. -The character will tell you whether the last command was successful or not. It can do this in two ways: +Le caractère vous dira si la dernière commande a été réussie ou pas. Cela peut être fait de deux manières: - changement de couleur (`red`/`green`) - changement de forme (`❯`/`✖`) -By default it only changes color. If you also want to change it's shape take a look at [this example](#with-custom-error-shape). +Par défaut, il ne change que la couleur. Si vous voulez également changer sa forme, jetez un œil à [cet exemple](#with-custom-error-shape). ### Options @@ -393,7 +393,7 @@ By default it only changes color. If you also want to change it's shape take a l | -------- | ------- | --------------------------------------------------------------- | | symbol | | Reflète sois `success_symbol`, `error_symbol` ou `vicmd_symbol` | -### Examples +### Exemples #### Avec une forme d'erreur personnalisée @@ -426,7 +426,7 @@ vicmd_symbol = "[V](bold green) " ## CMake -The `cmake` module shows the currently installed version of CMake if: +Le module `cmake` affiche la version actuellement installée de CMake si : - Le répertoire actuel contient un fichier `CMakeLists.txt` @@ -447,19 +447,19 @@ The `cmake` module shows the currently installed version of CMake if: | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ## Temps d'exécution -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +Le module `cmd_duration` montre le temps qu'a pris la dernière commande a pris pour s'exécuter. Le module ne sera affiché que si la commande a pris plus de deux secondes, ou si la valeur de configuration `min_time` existe. -::: warning Do not hook the DEBUG trap in Bash +::: attention, n'accrochez pas la trappe DEBUG en Bash -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +Si vous utilisez starship en `bash`, n'accrochez pas `DEBUG` après avoir exécuté `eval $(starship init $0)`, ou ce module **cassera**. ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +Les utilisateurs de Bash qui ont besoin de fonctionnalité pré-exec peuvent utiliser [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Définissez simplement les array `preexec_functions` et `precmd_functions` avant d'éxécuter `eval $(starship init $0)`, puis procédez comme d'habitude. ### Options @@ -478,7 +478,7 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec | duration | `16m40s` | Le temps nécessaire pour exécuter la commande | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple @@ -492,11 +492,11 @@ format = "underwent [$duration](bold yellow)" ## Conda -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +Le module `conda` affiche l'environnement conda actuel, si `$CONDA_DEFAULT_ENV` est défini. ::: tip -This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. +Cela ne supprime pas le modificateur d'invite de conda, vous pouvez exécuter `conda config --set changeps1 False`. ::: @@ -519,7 +519,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple @@ -554,7 +554,7 @@ The `crystal` module shows the currently installed version of Crystal. Le module | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple @@ -590,7 +590,7 @@ The `dart` module shows the currently installed version of Dart. Le module est a | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple @@ -611,15 +611,15 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an ### Options -| Variable | Défaut | 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)[$lock_symbol]($lock_style) "` | Format du module. | -| `style` | `"bold cyan"` | Le style du module. | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| Variable | Défaut | 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) "` | Format du module. | +| `style` | `"bold cyan"` | Le style du 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. |
This module has a few advanced configuration options that control how the directory is displayed. @@ -649,7 +649,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an | path | `"D:/Projects"` | The current directory path | | style\* | `"black bold dimmed"` | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple @@ -682,7 +682,7 @@ The `docker_context` module shows the currently active [Docker context](https:// | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple @@ -734,7 +734,7 @@ The module will also show the Target Framework Moniker ( "` | The symbol used before displaying the version of PureScript. | -| `style` | `"bold white"` | Le style du module. | -| `disabled` | `false` | Disables the `purescript` module. | +| Option | Défaut | Description | +| ---------- | ---------------------------------- | ------------------------------------------------------------- | +| `format` | `"via [$symbol$version]($style) "` | Format du module. | +| `symbol` | `"<=> "` | Le symbole utilisé avant d'afficher la version de PureScript. | +| `style` | `"bold white"` | Le style du module. | +| `disabled` | `false` | Désactive le module `purescript`. | ### Variables @@ -2351,7 +2351,7 @@ The `purescript` module shows the currently installed version of PureScript vers | symbol | | Reflète la valeur de l'option `symbol` | | style\* | | Reflète la valeur de l'option `style` | -\*: This variable can only be used as a part of a style string +\* : Cette variable ne peut être utilisée que comme partie d'une chaîne de style ### Exemple diff --git a/docs/fr-FR/migrating-to-0.45.0/README.md b/docs/fr-FR/migrating-to-0.45.0/README.md index 0b865f4f..183e172e 100644 --- a/docs/fr-FR/migrating-to-0.45.0/README.md +++ b/docs/fr-FR/migrating-to-0.45.0/README.md @@ -134,7 +134,7 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` #### Environment Variable @@ -233,7 +233,7 @@ behind = "⇣${count}" ++ format = "[$symbol\\[$env\\]]($style) " ``` -#### Time +#### Temps | Removed Property | Replacement | | ---------------- | ------------- | diff --git a/docs/ja-JP/config/README.md b/docs/ja-JP/config/README.md index c6bd74e5..fc877841 100644 --- a/docs/ja-JP/config/README.md +++ b/docs/ja-JP/config/README.md @@ -47,23 +47,23 @@ PowerShell (Windows) で同様に `$PROFILE`にこの行を追加します。 $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### 用語 -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**モジュール**: OSのコンテキスト情報に基づいて情報を提供するプロンプト内のコンポーネントです。 たとえば、現在のディレクトリがNodeJSプロジェクトである場合、「nodejs」モジュールは、現在コンピューターにインストールされているNodeJSのバージョンを表示します。 -**Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. +**変数**: モジュールが提供する情報を含むサブコンポーネントを小さくする。 例えば、"nodejs" モジュール内の "version" 変数には、NodeJS の現在のバージョンが含まれています。 -By convention, most modules have a prefix of default terminal color (e.g. `via` in "nodejs") and an empty space as a suffix. +慣例により、ほとんどのモジュールにはデフォルトの端末色の接頭辞(「nodejs」の`via` など)と接尾辞として空のスペースがあります。 -### Format Strings +### 文字列のフォーマット -Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string. +文字列の書式は、モジュールがすべての変数を出力する書式です。 ほとんどのモジュールには、モジュールの表示形式を設定する `format` というエントリがあります。 テキスト、変数、およびテキストグループをフォーマット文字列で使用できます。 #### 変数 -A variable contains a `$` symbol followed by the name of the variable. The name of a variable only contains letters, numbers and `_`. +変数には、 `$` 記号と、その変数の名前が続きます。 変数の名前は、文字、数字、 `_` のみを含みます。 -For example: +例: - `$version` は、`version` という名前の変数を持つフォーマット文字列です。 - `$git_branch$git_commit` は `git_branch` と `git_commit` という2つの変数を持つフォーマット文字列です。 @@ -71,13 +71,13 @@ For example: #### テキストグループ -A text group is made up of two different parts. +テキストグループは二つの異なる部分で構成されています。 -The first part, which is enclosed in a `[]`, is a [format string](#format-strings). You can add texts, variables, or even nested text groups in it. +`[]`で囲まれている最初の部分は、 [フォーマット文字列](#format-strings) です。 テキスト、変数、または入れ子になったテキストグループを追加できます。 -In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used style the first part. +2 番目の部分では、 `()`で囲まれている [スタイル文字列](#style-strings) です。 これは最初のパートのスタイルを使用することができます。 -For example: +例: - `[on](red bold)` は文字列 `on` に太字のテキストを赤色で表示します。 - `[⬢ $version](bold green)` はシンボル `⬢` の後に変数 `バージョン`の内容を表示します 緑色の太字を付けています @@ -85,7 +85,7 @@ For example: #### スタイルの設定 -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +Starshipのほとんどのモジュールでは、表示スタイルを設定できます。 これは、設定を指定する文字列であるエントリ(`style`)で行われます。 スタイル文字列の例とその機能を次に示します。 完全な構文の詳細については、詳細は [高度な設定](/advanced-config/)を参照してください 。 - `"fg:green bg:blue"` は、青色の背景に緑色のテキストを設定します - `"bg:blue fg:bright-green"` は、青色の背景に明るい緑色のテキストを設定します @@ -94,13 +94,13 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"`は、紫色の太字斜体のテキストを設定します - `""` はすべてのスタイルを明示的に無効にします -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +スタイリングがどのように見えるかは、端末エミュレータによって制御されることに注意してください。 たとえば、一部の端末エミュレータはテキストを太字にする代わりに色を明るくします。また、一部のカラーテーマは通常の色と明るい色と同じ値を使用します。 また、斜体のテキストを取得するには、端末で斜体をサポートする必要があります。 #### 条件付きフォーマット設定 -A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty. +`(` と `)` 内のすべての変数が空の場合、条件付き書式文字列はレンダリングされません。 -For example: +例: - `(@$region)` will show nothing if the variable `region` is `None`, otherwise `@` followed by the value of region. - `(some text)` will always show nothing since there are no variables wrapped in the braces. @@ -108,7 +108,7 @@ For example: #### エスケープ可能な文字 -The following symbols have special usage in a format string. If you want to print the following symbols, you have to escape them with a backslash (`\`). +以下の記号は、フォーマット文字列に特別な使用法があります。 次の記号を印刷したい場合は、バックスラッシュ(`\`)でエスケープする必要があります。 - \$ - \\ @@ -122,15 +122,15 @@ Note that `toml` has [its own escape syntax](https://github.com/toml-lang/toml#u For example, when you want to print a `$` symbol on a new line, the following configs for `format` are equivalent: ```toml -# with basic string +# 基本文字列と format = "\n\\$" -# with multiline basic string +# 複数行の基本文字列と format = """ \\$""" -# with literal string +# リテラル文字列と format = ''' \$''' @@ -138,7 +138,7 @@ format = ''' ## プロンプト -This is the list of prompt-wide configuration options. +これは、プロンプト全体のオプションのリストです。 ### オプション @@ -153,22 +153,23 @@ This is the list of prompt-wide configuration options. ```toml # ~/.config/starship.toml -# Use custom format +# カスタムフォーマットを利用します format = """ [┌───────────────────>](bold green) [│](bold green)$directory$rust$package [└─>](bold green) """ -# Wait 10 milliseconds for starship to check files under the current directory. +# starshipが現在のディレクトリ下のファイルをチェックするまで10ミリ秒待ちます + scan_timeout = 10 -# Disable the newline at the start of the prompt +# プロンプトの 先頭での改行を無効にする add_newline = false ``` -### Default Prompt Format +### デフォルトのプロンプトフォーマット -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +デフォルトの `format` は、空または `format` が指定されていない場合、プロンプトのフォーマットを定義するために使用されます。 デフォルトは次のとおりです。 ```toml format = "$all" @@ -228,9 +229,9 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +`aws` モジュールは現在のAWSプロファイルが表示されます。 これは `~/.aws/config` に記述されている `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` 環境変数に基づいています。 -When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. +[aws-vault](https://github.com/99designs/aws-vault)を使用する場合、プロファイル は`AWS_VAULT`env varから読み取られます。 ### オプション @@ -242,7 +243,7 @@ When using [aws-vault](https://github.com/99designs/aws-vault) the profile is re | `style` | `"bold yellow"` | モジュールのスタイルです。 | | `disabled` | `false` | `aws`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ---------------- | ---------------------- | @@ -251,9 +252,9 @@ When using [aws-vault](https://github.com/99designs/aws-vault) the profile is re | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます -### Examples +### 設定例 #### すべてを表示 @@ -296,7 +297,7 @@ symbol = "🅰 " ## バッテリー -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +`battery`モジュールは、デバイスのバッテリー残量と現在の充電状態を示します。 モジュールは、デバイスのバッテリー残量が10%未満の場合にのみ表示されます。 ### オプション @@ -310,14 +311,14 @@ The `battery` module shows how charged the device's battery is and its current c | `disabled` | `false` | `battery`モジュールを無効にします。 |
-There are also options for some uncommon battery states. +いくつかのまれなバッテリー状態のオプションもあります。 | 変数 | 説明 | | ---------------- | ------------------------ | | `unknown_symbol` | バッテリー状態が不明なときに表示される記号です。 | | `empty_symbol` | バッテリーが空のときに表示される記号です。 | -Note: Battery indicator will be hidden if the status is `unknown` or `empty` unless you specify the option in the config. +オプションを指定しない限り、バッテリーの状態が`unknown`もしくは`empty`になった場合にインジケーターは非表示になります。
@@ -332,9 +333,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### バッテリーの表示 -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +`display` オプションを使用して、バッテリーインジケーターを表示するタイミング(閾値)と外観(スタイル)を定義します。 `display` が提供されない場合、 デフォルトは次のとおりです。 ```toml [[battery.display]] @@ -344,7 +345,7 @@ style = "bold red" #### オプション -The `display` option is an array of the following table. +`display`オプションは、次の表の通りです。 | 変数 | 説明 | | ----------- | ------------------------------ | @@ -354,28 +355,28 @@ The `display` option is an array of the following table. #### 設定例 ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # バッテリー残量が0%〜10%の間は「太字の赤色」スタイルを利用する threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # バッテリー残量が10%〜30%の間は「太字の黄色」スタイルを利用する threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# 容量が30%を超えると、バッテリーインジケーターは表示されません ``` ## 文字 -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +`character`モジュールは、端末でテキストが入力される場所の横に文字(通常は矢印)を表示します。 -The character will tell you whether the last command was successful or not. It can do this in two ways: +文字は、最後のコマンドが成功したかどうかを示します。 表し方は下記の2つです。 - 色の変更 (`赤`/`緑`) - プロンプトの表示の変更 (`❯`/`✖`) -By default it only changes color. If you also want to change it's shape take a look at [this example](#with-custom-error-shape). +デフォルトでは、色だけが変更されます。 If you also want to change it's shape take a look at [this example](#with-custom-error-shape). ### オプション @@ -387,13 +388,13 @@ By default it only changes color. If you also want to change it's shape take a l | `vicmd_symbol` | `"[❮](bold green)"` | The format string used before the text input if the shell is in vim normal mode. | | `disabled` | `false` | `character`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | ------ | --- | --------------------------------------------------------------------- | | symbol | | A mirror of either `success_symbol`, `error_symbol` or `vicmd_symbol` | -### Examples +### 設定例 #### With custom error shape @@ -439,7 +440,7 @@ The `cmake` module shows the currently installed version of CMake if: | `style` | `"bold blue"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `cmake` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | --------- | ---------------------- | @@ -447,19 +448,19 @@ The `cmake` module shows the currently installed version of CMake if: | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ## コマンド実行時間 -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +`cmd_duration`モジュールは、最後のコマンドの実行にかかった時間を示します。 モジュールが表示されるのは、コマンドが2秒以上かかった場合、または`min_time`値が存在する場合のみです。 -::: warning Do not hook the DEBUG trap in Bash +::: warning BashでDEBUGトラップをhookしない -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +`bash`でStarshipを実行している場合、 `eval $(starship init $0)`実行した後に`DEBUG`トラップをフックしないでください。そうしないと、このモジュールが**おそらくですが**壊れます。 ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +preexecのような機能を必要とするBashユーザーは、 [rcalorasのbash_preexecフレームワーク](https://github.com/rcaloras/bash-preexec)を使用できます。 `eval $(starship init $0)` を実行する前に、`preexec_functions`、および`precmd_functions`定義するだけで、通常どおり続行します。 ### オプション @@ -471,14 +472,14 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec | `style` | `"bold yellow"` | モジュールのスタイルです。 | | `disabled` | `false` | `cmd_duration`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | | duration | `16m40s` | コマンドの実行時間 | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -492,11 +493,11 @@ format = "underwent [$duration](bold yellow)" ## Conda -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +`$CONDA_DEFAULT_ENV`が設定されている場合、`conda`モジュールは現在のcondaの環境を表示します。 ::: tip -This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. +Note: これはconda自身の プロンプト修飾子 を抑制しません。`conda config --set changeps1 False` で実行することができます。 ::: @@ -509,9 +510,9 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | `style` | `"bold green"` | モジュールのスタイルです。 | | `format` | `"[$symbol$environment]($style) "` | moduleのフォーマットです。 | | `ignore_base` | `true` | Ignores `base` environment when activated. | -| `disabled` | `false` | Disables the `conda` module. | +| `disabled` | `false` | `conda`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | ----------- | ------------ | ----------------------------- | @@ -519,7 +520,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -532,7 +533,7 @@ format = "[$symbol$environment](dimmed green) " ## Crystal -The `crystal` module shows the currently installed version of Crystal. 次の条件のいずれかが満たされると、モジュールが表示されます。 +`crystal`モジュールには、現在インストールされているCrystalのバージョンが表示されます。 次の条件のいずれかが満たされると、モジュールが表示されます。 - カレントディレクトリに`shard.yml`ファイルが含まれている - カレントディレクトリに`.cr`の拡張子のファイルが含まれている @@ -546,7 +547,7 @@ The `crystal` module shows the currently installed version of Crystal. 次の条 | `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | | `disabled` | `false` | `crystal`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | --------- | ------------------------ | @@ -554,7 +555,7 @@ The `crystal` module shows the currently installed version of Crystal. 次の条 | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -571,7 +572,7 @@ The `dart` module shows the currently installed version of Dart. 次の条件の - The current directory contains a file with `.dart` extension - The current directory contains a `.dart_tool` directory -- The current directory contains a `pubspec.yaml` or `pubspec.lock` file +- カレントディレクトリに`pubspec.yaml`, もしくは`pubspec.lock`ファイルが含まれている ### オプション @@ -582,7 +583,7 @@ The `dart` module shows the currently installed version of Dart. 次の条件の | `style` | `"bold blue"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `dart` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | @@ -590,7 +591,7 @@ The `dart` module shows the currently installed version of Dart. 次の条件の | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -601,34 +602,34 @@ The `dart` module shows the currently installed version of Dart. 次の条件の format = "via [🔰 $version](bold red) " ``` -## Directory +## ディレクトリ -The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. +`directory`モジュールには、現在のディレクトリへのパスが表示され、3つの親フォルダは切り捨てられます。 ディレクトリは、現在のgitリポジトリであるとルートとなります。 -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +fishスタイルのpwdオプションを使用すると、切り捨てられたパスを非表示にする代わりに、オプションで有効にした番号に基づいて各ディレクトリの短縮名が表示されます。 -For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. +例として、`~/Dev/Nix/nixpkgs/pkgs`で、`nixpkgs`がリポジトリルートであり、オプションが`1`に設定されている場合を挙げます。 以前は`nixpkgs/pkgs`でしたが、`~/D/N/nixpkgs/pkgs`が表示されます。 ### オプション -| 変数 | デフォルト | 説明 | -| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- | -| `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)[$lock_symbol]($lock_style) "` | moduleのフォーマットです。 | -| `style` | `"bold cyan"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only 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` | `"🔒"` | The symbol indicating current directory is read only. | +| `read_only_style` | `"red"` | The style for the read only symbol. |
-This module has a few advanced configuration options that control how the directory is displayed. +このモジュールは、どのようにディレクトリを表示するかについての高度なオプションをいくつか持っています。 -| Advanced Option | デフォルト | 説明 | -| --------------------------- | ------ | ---------------------------------------------------------------------------------------- | -| `substitutions` | | A table of substitutions to be made to the path. | -| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. | -| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. | +| Advanced Option | デフォルト | 説明 | +| --------------------------- | ------ | ------------------------------------------------ | +| `substitutions` | | A table of substitutions to be made to the path. | +| `fish_style_pwd_dir_length` | `0` | fish shellのpwdパスロジックを適用するときに使用する文字数です。 | +| `use_logical_path` | `true` | OSからのパスの代わりに、シェル(`PWD`) によって提供される論理パスを表示します。 | `substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD. @@ -642,14 +643,14 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
-### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | --------------------- | -------------------------- | | path | `"D:/Projects"` | The current directory path | | style\* | `"black bold dimmed"` | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -662,7 +663,7 @@ truncation_length = 8 ## Docker Context -The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default`. +`docker_context`モジュールは、 [Dockerコンテキスト](https://docs.docker.com/engine/context/working-with-contexts/)が`デフォルト`に設定されていない場合、現在アクティブな <1>Dockerコンテキストを表示します。 ### オプション @@ -672,9 +673,9 @@ The `docker_context` module shows the currently active [Docker context](https:// | `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. | | `style` | `"blue bold"` | モジュールのスタイルです。 | | `only_with_files` | `false` | Only show when there's a `docker-compose.yml` or `Dockerfile` in the current directory. | -| `disabled` | `true` | Disables the `docker_context` module. | +| `disabled` | `true` | `docker_context`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------------- | -------------------------- | @@ -682,7 +683,7 @@ The `docker_context` module shows the currently active [Docker context](https:// | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -695,7 +696,7 @@ format = "via [🐋 $context](blue bold)" ## Dotnet -The `dotnet` module shows the relevant version of the .NET Core SDK for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK. +`dotnet` モジュールはカレントディレクトリに関係する.NET Core SDKのバージョンを表示します。 もし SDKは現在のディレクトリに固定されているのであれば、その固定されたバージョンが表示されます。 それ以外の場合、モジュール SDKの最新のインストールバージョンを示します。 This module will only be shown in your prompt when one or more of the following files are present in the current directory: @@ -711,21 +712,21 @@ This module will only be shown in your prompt when one or more of the following You'll also need the .NET Core SDK installed in order to use it correctly. -Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options. +内部的に、このモジュールは自身のバージョン検知のメカニズムを利用します。 `dotnet --version` を実行するより2倍速く実行できますが、.NET project一般的でないディレクトリlayoutの場合は間違ったバージョンが示されてしまうことがあります。 速度よりも精度が重要な場合は、次の方法でメカニズムを無効にできます。 モジュールオプションで`heuristic = false `を設定します。 The module will also show the Target Framework Moniker () when there is a csproj file in the current directory. ### オプション -| オプション | デフォルト | 説明 | -| ----------- | ---------------------------------------- | -------------------------------------------------------- | -| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | moduleのフォーマットです。 | -| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. | -| `heuristic` | `true` | Use faster version detection to keep starship snappy. | -| `style` | `"bold blue"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `dotnet` module. | +| オプション | デフォルト | 説明 | +| ----------- | ---------------------------------------- | ------------------------------------ | +| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | moduleのフォーマットです。 | +| `symbol` | `•NET "` | dotnetのバージョンを表示する前に使用される記号です。 | +| `heuristic` | `true` | より高速なバージョン検出を使用して、starshipの動作を維持します。 | +| `style` | `"bold blue"` | モジュールのスタイルです。 | +| `disabled` | `false` | `dotnet`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ---------------- | ------------------------------------------------------------------ | @@ -734,7 +735,7 @@ The module will also show the Target Framework Moniker (モジュールは、現在のシステムメモリとスワップ使用量を示します。

-By default the swap usage is displayed if the total system swap is non-zero. +

デフォルトでは、システムスワップの合計がゼロ以外の場合、スワップ使用量が表示されます。

-::: tip +

::: tip

-This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +

このモジュールはデフォルトで無効になっています。 +有効にするには、設定ファイルでdisabled`を`false`に設定します。 ::: ### オプション -| オプション | デフォルト | 説明 | -| ----------- | --------------------------------------------- | -------------------------------------------------------- | -| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. | -| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | moduleのフォーマットです。 | -| `symbol` | `"🐏"` | The symbol used before displaying the memory usage. | -| `style` | `"bold dimmed white"` | モジュールのスタイルです。 | -| `disabled` | `true` | Disables the `memory_usage` module. | +| オプション | デフォルト | 説明 | +| ----------- | --------------------------------------------- | --------------------------- | +| `threshold` | `75` | この閾値を超えない限り、メモリ使用率は表示されません。 | +| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | moduleのフォーマットです。 | +| `symbol` | `"🐏"` | メモリ使用率を表示する前に使用される記号です。 | +| `style` | `"bold dimmed white"` | モジュールのスタイルです。 | +| `disabled` | `true` | `memory_usage`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | ---------------- | ------------- | ------------------------------------------------------------------ | @@ -1471,9 +1474,9 @@ separator = "/" style = "bold dimmed green" ``` -## Mercurial Branch +## Mercurial ブランチ -The `hg_branch` module shows the active branch of the repo in your current directory. +` hg_branch `モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを示します。 ### オプション @@ -1483,10 +1486,10 @@ The `hg_branch` module shows the active branch of the repo in your current direc | `style` | `"bold purple"` | モジュールのスタイルです。 | | `format` | `"on [$symbol$branch]($style) "` | moduleのフォーマットです。 | | `truncation_length` | `2^63 - 1` | Truncates the hg branch name to X graphemes | -| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. | +| `truncation_symbol` | `"…"` | ブランチ名切り捨てられていることを示すための記号です。 | | `disabled` | `true` | Disables the `hg_branch` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | --------------------------- | @@ -1494,7 +1497,7 @@ The `hg_branch` module shows the active branch of the repo in your current direc | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1511,7 +1514,7 @@ truncation_symbol = "" The `nim` module shows the currently installed version of Nim. 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `nim.cfg` file +- カレントディレクトリに`nim.cfg`ファイルが含まれている - 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 @@ -1525,7 +1528,7 @@ The `nim` module shows the currently installed version of Nim. 次の条件の | `style` | `"bold yellow"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `nim` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | @@ -1533,7 +1536,7 @@ The `nim` module shows the currently installed version of Nim. 次の条件の | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1547,7 +1550,7 @@ symbol = "🎣 " ## Nix-shell -The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment. +`nix_shell`モジュールは、nix-shell環境を示しています。 このモジュールは、nixシェル環境内にあるときに表示されます。 ### オプション @@ -1558,9 +1561,9 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown | `style` | `"bold blue"` | モジュールのスタイルです。 | | `impure_msg` | `"impure"` | A format string shown when the shell is impure. | | `pure_msg` | `"pure"` | A format string shown when the shell is pure. | -| `disabled` | `false` | Disables the `nix_shell` module. | +| `disabled` | `false` | `nix_shell`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ------- | -------------------------- | @@ -1569,7 +1572,7 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1585,11 +1588,11 @@ format = "via [☃️ $state( \\($name\\))](bold blue) " ## NodeJS -The `nodejs` module shows the currently installed version of NodeJS. 次の条件のいずれかが満たされると、モジュールが表示されます。 +`nodejs`モジュールは、現在インストールされているNodeJSのバージョンを示します。 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `package.json` file +- カレントディレクトリに`package.json`ファイルが含まれている - The current directory contains a `.node-version` file -- The current directory contains a `node_modules` directory +- カレントディレクトリに`node_modules`ディレクトリが含まれている - The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension - The current directory contains a file with the `.ts` extension @@ -1600,7 +1603,7 @@ The `nodejs` module shows the currently installed version of NodeJS. 次の条 | `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | | `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. | | `style` | `"bold green"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `nodejs` module. | +| `disabled` | `false` | `nodejs`モジュールを無効にします。 | ###  Variables @@ -1610,7 +1613,7 @@ The `nodejs` module shows the currently installed version of NodeJS. 次の条 | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1621,14 +1624,14 @@ The `nodejs` module shows the currently installed version of NodeJS. 次の条 format = "via [🤖 $version](bold green) " ``` -## Package Version +## パッケージのバージョン -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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. +`package`モジュールは、現在のディレクトリがパッケージのリポジトリである場合に表示され、現在のバージョンが表示されます。 The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. -- **npm** – The `npm` package version is extracted from the `package.json` present in the current directory -- **cargo** – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory -- **poetry** – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory -- **composer** – The `composer` package version is extracted from the `composer.json` present in the current directory +- **npm** – `npm`パッケージバージョンは、現在のディレクトリにある`package.json`から抽出されます +- **cargo** – `cargo`パッケージバージョンは、現在のディレクトリにある`Cargo.toml`から抽出されます。 +- **poetry** – `poetry`パッケージバージョンは、現在のディレクトリにある`pyproject.toml`から抽出されます +- **composer** – `composer`パッケージバージョンは、現在のディレクトリにある`composer.json`から抽出されます - **gradle** – The `gradle` package version is extracted from the `build.gradle` present - **julia** - The package version is extracted from the `Project.toml` present - **mix** - The `mix` package version is extracted from the `mix.exs` present @@ -1639,15 +1642,15 @@ The `package` module is shown when the current directory is the repository for a ### オプション -| オプション | デフォルト | 説明 | -| ----------------- | ---------------------------------- | ---------------------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | -| `symbol` | `"📦 "` | The symbol used before displaying the version the package. | -| `style` | `"bold 208"` | モジュールのスタイルです。 | -| `display_private` | `false` | Enable displaying version for packages marked as private. | -| `disabled` | `false` | Disables the `package` module. | +| オプション | デフォルト | 説明 | +| ----------------- | ---------------------------------- | --------------------------------------------------------- | +| `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | +| `symbol` | `"📦 "` | パッケージのバージョンを表示する前に使用される記号です。 | +| `style` | `"bold 208"` | モジュールのスタイルです。 | +| `display_private` | `false` | Enable displaying version for packages marked as private. | +| `disabled` | `false` | `package` モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | --------------------------- | @@ -1655,7 +1658,7 @@ The `package` module is shown when the current directory is the repository for a | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1686,7 +1689,7 @@ The `ocaml` module shows the currently installed version of OCaml. 次の条件 | `style` | `"bold yellow"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `ocaml` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | --------- | ---------------------- | @@ -1694,7 +1697,7 @@ The `ocaml` module shows the currently installed version of OCaml. 次の条件 | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1724,7 +1727,7 @@ The `perl` module shows the currently installed version of Perl. 次の条件の | `style` | `"bold 149"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `perl` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | --------- | ---------------------- | @@ -1743,22 +1746,22 @@ format = "via [🦪 $version]($style) " ## PHP -The `php` module shows the currently installed version of PHP. 次の条件のいずれかが満たされると、モジュールが表示されます。 +`php`モジュールは、現在インストールされているPHPのバージョンを示します。 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `composer.json` file +- カレントディレクトリに`composer.json`ファイルが含まれている - The current directory contains a `.php-version` file -- The current directory contains a `.php` file +- カレントディレクトリに`.php`の拡張子のファイルが含まれている ### オプション -| オプション | デフォルト | 説明 | -| ---------- | ---------------------------------- | ----------------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | -| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. | -| `style` | `"147 bold"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `php` module. | +| オプション | デフォルト | 説明 | +| ---------- | ---------------------------------- | -------------------------- | +| `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | +| `symbol` | `"🐘 "` | PHPのバージョンを表示する前に使用される記号です。 | +| `style` | `"147 bold"` | モジュールのスタイルです。 | +| `disabled` | `false` | `php`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | @@ -1766,7 +1769,7 @@ The `php` module shows the currently installed version of PHP. 次の条件の | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1785,15 +1788,15 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `.python-version` file -- The current directory contains a `requirements.txt` file -- The current directory contains a `pyproject.toml` file +- カレントディレクトリに`.python-version`ファイルが含まれている +- カレントディレクトリに`requirements.txt`ファイルが含まれている +- カレントディレクトリに`pyproject.toml`ファイルが含まれている - The current directory contains a file with the `.py` extension (and `scan_for_pyfiles` is true) -- The current directory contains a `Pipfile` file -- The current directory contains a `tox.ini` file -- The current directory contains a `setup.py` file +- カレントディレクトリに`Pipfile`ファイルが含まれている +- カレントディレクトリに`tox.ini`ファイルが含まれている +- カレントディレクトリに`setup.py`ファイルが含まれている - The current directory contains a `__init__.py` file -- A virtual environment is currently activated +- 仮想環境がアクティブである ### オプション @@ -1802,12 +1805,12 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name | `format` | `"via [${symbol}${pyenv_prefix}${version}( \\($virtualenv\\))]($style) "` | moduleのフォーマットです。 | | `symbol` | `"🐍 "` | A format string representing the symbol of Python | | `style` | `"yellow bold"` | モジュールのスタイルです。 | -| `pyenv_version_name` | `false` | Use pyenv to get Python version | +| `pyenv_version_name` | `false` | pyenvを使用してPythonバージョンを取得します | | `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used | | `scan_for_pyfiles` | `true` | If false, Python files in the current directory will not show this module. | -| `disabled` | `false` | Disables the `python` module. | +| `disabled` | `false` | `python`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | ------------ | --------------- | ------------------------------------------ | @@ -1847,11 +1850,11 @@ pyenv_version_name = true ## Ruby -The `ruby` module shows the currently installed version of Ruby. 次の条件のいずれかが満たされると、モジュールが表示されます。 +`ruby`モジュールは、現在インストールされているRubyのバージョンを示します。 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `Gemfile` file +- カレントディレクトリに`Gemfile`ファイルが含まれている - The current directory contains a `.ruby-version` file -- The current directory contains a `.rb` file +- カレントディレクトリに`.rb`の拡張子のファイルが含まれている ### オプション @@ -1860,9 +1863,9 @@ The `ruby` module shows the currently installed version of Ruby. 次の条件の | `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | | `symbol` | `"💎 "` | A format string representing the symbol of Ruby. | | `style` | `"bold red"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `ruby` module. | +| `disabled` | `false` | `ruby`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | @@ -1870,7 +1873,7 @@ The `ruby` module shows the currently installed version of Ruby. 次の条件の | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1883,10 +1886,10 @@ symbol = "🔺 " ## Rust -The `rust` module shows the currently installed version of Rust. 次の条件のいずれかが満たされると、モジュールが表示されます。 +`rust`モジュールには、現在インストールされているRustのバージョンが表示されます。 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `Cargo.toml` file -- The current directory contains a file with the `.rs` extension +- カレントディレクトリに`Cargo.toml`ファイルが含まれている +- カレントディレクトリに`.rs`の拡張子のファイルが含まれている ### オプション @@ -1895,9 +1898,9 @@ The `rust` module shows the currently installed version of Rust. 次の条件の | `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | | `symbol` | `"🦀 "` | A format string representing the symbol of Rust | | `style` | `"bold red"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `rust` module. | +| `disabled` | `false` | `rust`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ----------------- | ---------------------- | @@ -1905,7 +1908,7 @@ The `rust` module shows the currently installed version of Rust. 次の条件の | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1930,7 +1933,7 @@ The `shlvl` module shows the current SHLVL ("shell level") environment variable, | `style` | `"bold yellow"` | モジュールのスタイルです。 | | `disabled` | `true` | Disables the `shlvl` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | --- | -------------------------- | @@ -1938,7 +1941,7 @@ The `shlvl` module shows the current SHLVL ("shell level") environment variable, | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1964,7 +1967,7 @@ The `singularity` module shows the current singularity image, if inside a contai | `style` | `"bold dimmed blue"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `singularity` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ------------ | ----------------------------- | @@ -1972,7 +1975,7 @@ The `singularity` module shows the current singularity image, if inside a contai | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -1999,7 +2002,7 @@ The `swift` module shows the currently installed version of Swift. 次の条件 | `style` | `"bold 202"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `swift` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | @@ -2007,7 +2010,7 @@ The `swift` module shows the currently installed version of Swift. 次の条件 | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -2024,7 +2027,7 @@ The `status` module displays the exit code of the previous command. The module w ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. ::: +このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。 ::: ### オプション @@ -2035,8 +2038,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | モジュールのスタイルです。 | | `disabled` | `true` | Disables the `status` module. | - -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ----- | --------------------------------- | @@ -2044,10 +2046,10 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string - +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 + ```toml # ~/.config/starship.toml @@ -2062,10 +2064,10 @@ disabled = false ## Terraform -The `terraform` module shows the currently selected terraform workspace and version. By default the terraform version is not shown, since this is slow on 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-version). 次の条件のいずれかが満たされると、モジュールが表示されます。 +`terraform`モジュールには、現在選択されているterraformワークスペースとバージョンが表示されます。 デフォルトでは、Terraformのバージョンは表示されません。これは、多くのプラグインが使用されている場合、Terraformの現在のバージョンでは遅いためです。 If you still want to enable it, [follow the example shown below](#with-version). 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `.terraform` folder -- Current directory contains a file with the `.tf` extension +- カレントディレクトリに`.terraform`フォルダが含まれている +- カレントディレクトリに`.tf`の拡張子のファイルが含まれている ### オプション @@ -2074,9 +2076,9 @@ The `terraform` module shows the currently selected terraform workspace and vers | `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. | | `symbol` | `"💠 "` | A format string shown before the terraform workspace. | | `style` | `"bold 105"` | モジュールのスタイルです。 | -| `disabled` | `false` | Disables the `terraform` module. | +| `disabled` | `false` | `terraform`モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ---------- | ------------------------------- | @@ -2085,7 +2087,7 @@ The `terraform` module shows the currently selected terraform workspace and vers | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -2109,36 +2111,36 @@ format = "[🏎💨 $workspace]($style) " ## Time -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. +`time`モジュールは、現在の**現地**時間を示します。 `format`設定は、時間の表示方法を制御するために[`chrono`](https://crates.io/crates/chrono)クレートによって使用されます。 使用可能なオプションを確認するには、[chrono strftimeのドキュメント](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)をご覧ください。 ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。 ::: ### オプション -| オプション | デフォルト | 説明 | -| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `format` | `"at [$time]($style) "` | The format string for the module. | -| `use_12hr` | `false` | Enables 12 hour formatting | -| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. | -| `style` | `"bold yellow"` | The style for the module time | -| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | -| `disabled` | `true` | Disables the `time` module. | -| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | +| オプション | デフォルト | 説明 | +| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- | +| `format` | `"at [$time]($style) "` | The format string for the module. | +| `use_12hr` | `false` | 12時間のフォーマットを有効にします。 | +| `time_format` | この表の下を参照してください | 時刻のフォーマットに使用される[クロノフォーマット文字列](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) です。 | +| `style` | `"bold yellow"` | モジュールのスタイルです。 | +| `utc_time_offset` | `"local"` | 使用するUTCオフセットを設定します。 Range from -24 < x < 24. フロートが30/45分のタイムゾーンオフセットに対応できるようにします。 | +| `disabled` | `true` | `time`モジュールを無効にします。 | +| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | -If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting. +If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. それ以外の場合、デフォルトは`"%T"`です。 Manually setting `time_format` will override the `use_12hr` setting. -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | ---------- | ---------------------- | -| time | `13:08:10` | The current time. | +| 時刻 | `13:08:10` | The current time. | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -2153,26 +2155,26 @@ utc_time_offset = "-5" time_range = "10:00:00-14:00:00" ``` -## Username +## ユーザー名 -The `username` module shows active user's username. 次の条件のいずれかが満たされると、モジュールが表示されます。 +`username`モジュールには、アクティブなユーザーのユーザー名が表示されます。 次の条件のいずれかが満たされると、モジュールが表示されます。 -- 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 +- カレントユーザーがroot +- カレントユーザーが、ログインしているユーザーとは異なる +- ユーザーがSSHセッションとして接続されている +- `show_always`変数がtrueに設定されている ### オプション -| オプション | デフォルト | 説明 | -| ------------- | ----------------------- | ------------------------------------- | -| `style_root` | `"bold red"` | The style used when the user is root. | -| `style_user` | `"bold yellow"` | The style used for non-root users. | -| `format` | `"[$user]($style) in "` | moduleのフォーマットです。 | -| `show_always` | `false` | Always shows the `username` module. | -| `disabled` | `false` | Disables the `username` module. | +| オプション | デフォルト | 説明 | +| ------------- | ----------------------- | ------------------------- | +| `style_root` | `"bold red"` | ユーザーがrootのときに使用されるスタイルです。 | +| `style_user` | `"bold yellow"` | 非rootユーザーに使用されるスタイルです。 | +| `format` | `"[$user]($style) in "` | moduleのフォーマットです。 | +| `show_always` | `false` | `username` モジュールを常に表示します。 | +| `disabled` | `false` | `username` モジュールを無効にします。 | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | ------- | ------------ | ------------------------------------------------------------------------------------------- | @@ -2207,7 +2209,7 @@ The `zig` module shows the currently installed version of Zig. 次の条件の | `format` | `"via [$symbol$version]($style) "` | moduleのフォーマットです。 | | `disabled` | `false` | Disables the `zig` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | ---------------------- | @@ -2215,7 +2217,7 @@ The `zig` module shows the currently installed version of Zig. 次の条件の | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 @@ -2261,8 +2263,8 @@ The order in which custom modules are shown can be individually set by including | ------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------- | | `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | | `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | -| `shell` | | [See below](#custom-command-shell) | -| `description` | `""` | The description of the module that is shown when running `starship explain`. | +| `shell` | | [この表の下を参照してください](#custom-command-shell) | +| `説明` | `""` | The description of the module that is shown when running `starship explain`. | | `files` | `[]` | The files that will be searched in the working directory for a match. | | `directories` | `[]` | The directories that will be searched in the working directory for a match. | | `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | @@ -2271,7 +2273,7 @@ The order in which custom modules are shown can be individually set by including | `format` | `"[$symbol$output]($style) "` | moduleのフォーマットです。 | | `disabled` | `false` | Disables this `custom` module. | -### Variables +### 変数 | 変数 | 説明 | | --------- | -------------------------------------- | @@ -2279,7 +2281,7 @@ The order in which custom modules are shown can be individually set by including | symbol | オプション `記号` の値をミラーする | | style\* | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます #### Custom command shell @@ -2331,7 +2333,7 @@ shell = ["pwsh.exe", "-NoProfile", "-Command", "-"] The `purescript` module shows the currently installed version of PureScript version. 次の条件のいずれかが満たされると、モジュールが表示されます。 -- The current directory contains a `spago.dhall` file +- カレントディレクトリに`spago.dhall`ファイルが含まれている - The current directory contains a \*.purs files ### オプション @@ -2343,7 +2345,7 @@ The `purescript` module shows the currently installed version of PureScript vers | `style` | `"bold white"` | モジュールのスタイルです。 | | `disabled` | `false` | Disables the `purescript` module. | -### Variables +### 変数 | 変数 | 設定例 | 説明 | | --------- | -------- | --------------------------- | @@ -2351,7 +2353,7 @@ The `purescript` module shows the currently installed version of PureScript vers | symbol | | オプション `記号` の値をミラーする | | style\* | | オプション `style` の値をミラーする | -\*: This variable can only be used as a part of a style string +\*: この変数はスタイル文字列の一部としてのみ使用できます ### 設定例 diff --git a/docs/ja-JP/migrating-to-0.45.0/README.md b/docs/ja-JP/migrating-to-0.45.0/README.md index 23d5fcc8..b829caea 100644 --- a/docs/ja-JP/migrating-to-0.45.0/README.md +++ b/docs/ja-JP/migrating-to-0.45.0/README.md @@ -1,4 +1,4 @@ -# 0.45への移行 +# v0.45への移行 Starship v0.45.0は、v1.0.0の準備として互換性の無い変更を含むリリースになります。 私たちはより多くのカスタマイズを可能にするために、プロンプトでの設定方法にいくつかの大きな変更を加えました。 @@ -52,7 +52,7 @@ format = """\ """ ``` -## `prefix`と `suffix` モジュールが`format`を置換 +## `prefix`と `suffix` モジュールを`format`に置換 v0.45.0以前では、モジュールのレンダリング方法をスタイリングするために、 `prefix` や`suffix`の指定可能なモジュールがありました。 @@ -134,7 +134,7 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` #### Environment Variable diff --git a/docs/pt-BR/config/README.md b/docs/pt-BR/config/README.md index 40117527..eb25528d 100644 --- a/docs/pt-BR/config/README.md +++ b/docs/pt-BR/config/README.md @@ -1,12 +1,12 @@ # Configuração -To get started configuring starship, create the following file: `~/.config/starship.toml`. +Para começar a configurar a starship, crie o seguinte arquivo: `~/.config/starship.toml`. ```sh mkdir -p ~/.config && touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +Todas as configurações do starship são feitas neste arquivo [TOML](https://github.com/toml-lang/toml): ```toml # Don't print a new line at the start of the prompt @@ -21,13 +21,13 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being disabled = true ``` -You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable: +Você pode alterar o caminho padrão do arquivo `starship.toml` com a variável de ambiente `STARSHIP_CONFIG`: ```sh export STARSHIP_CONFIG=~/.starship ``` -Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`: +No PowerShell (Windows) você pode adicionar a seguinte linha no seu `$PROFILE`: ```ps1 $ENV:STARSHIP_CONFIG = "$HOME\.starship" @@ -41,15 +41,15 @@ By default starship logs warnings and errors into a file named `~/.cache/starshi export STARSHIP_CACHE=~/.starship/cache ``` -Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`: +No PowerShell (Windows) você pode adicionar a seguinte linha no seu `$PROFILE`: ```ps1 $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### Terminologia -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**Módulo**: Um componente no prompt que fornece informações baseado no contexto do seu SO. Por exemplo, o módulo "nodejs" mostra a versão do NodeJS instalado no seu computador, se o diretório atual for um projeto NodeJS. **Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. @@ -85,7 +85,7 @@ For example: #### Estilo dos textos -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +A maioria dos módulos do starship permite que você configure o estilo de exibição dos textos. Isso é feito através de um parâmetro (geralmente chamado `style`) que é uma string especificando a configuração. Aqui estão alguns exemplos de strings de estilo e o que elas fazem. Para detalhes sobre a sintaxe completa, consulte o [guia de configurações avançadas](/advanced-config/). - `"fg:green bg:blue"` deixa o texto verde com o fundo azul - `"bg:blue fg:bright-green"` deixa o texto verde brilhante com o fundo azul @@ -94,7 +94,7 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` deixa o texto em negrito e itálico com a cor roxa - `""` desabilita explicitamente todos os estilos -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +Note que a aparência do estilo será controlado pelo seu terminal. Por exemplo, alguns terminais deixarão as cores mais brilhantes ao invés de deixar o texto em negrito, ou alguns temas podem usar as mesmas cores para cores brilhantes e normais. Além disso, para textos em itálico, o terminal precisa ter suporte. #### Conditional Format Strings @@ -142,11 +142,11 @@ This is the list of prompt-wide configuration options. ### Opções -| Option | Padrão | Descrição | -| -------------- | ------------------------------ | ----------------------------------------------------- | -| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | -| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | -| `add_newline` | `true` | Add a new line before the start of the prompt. | +| Option | Padrão | Descrição | +| -------------- | ------------------------------ | ------------------------------------------------------------- | +| `format` | [link](#default-prompt-format) | Configure the format of the prompt. | +| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | +| `add_newline` | `true` | Adiciona uma nova linha antes que o prompt de comando inicie. | ### Exemplo @@ -168,7 +168,7 @@ add_newline = false ### Default Prompt Format -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +The default `format` is used to define the format of the prompt, if empty or no `format` is provided. Os valores padrão são os seguintes: ```toml format = "$all" @@ -332,9 +332,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Indicador de bateria -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. Os valores padrão são os seguintes: ```toml [[battery.display]] @@ -453,7 +453,7 @@ The `cmake` module shows the currently installed version of CMake if: The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. -::: warning Do not hook the DEBUG trap in Bash +::: warning Não utilize o DEBUG-trap no Bash If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. @@ -601,7 +601,7 @@ The `dart` module shows the currently installed version of Dart. The module will format = "via [🔰 $version](bold red) " ``` -## Directory +## Diretório The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. @@ -611,15 +611,15 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an ### Opções -| Variável | Padrão | Descrição | -| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- | -| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. | -| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. | -| `format` | `"[$path]($style)[$lock_symbol]($lock_style) "` | The format for the module. | -| `style` | `"bold cyan"` | O estilo do módulo. | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| Variável | Padrão | Descrição | +| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------- | +| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. | +| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. | +| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. | +| `style` | `"bold cyan"` | O estilo do módulo. | +| `disabled` | `false` | Disables the `directory` module. | +| `read_only` | `"🔒"` | The symbol indicating current directory is read only. | +| `read_only_style` | `"red"` | The style for the read only symbol. |

This module has a few advanced configuration options that control how the directory is displayed. @@ -988,7 +988,7 @@ truncation_length = 4 truncation_symbol = "" ``` -## Git Commit +## Git commit The `git_commit` module shows the current commit hash of the repo in your current directory. @@ -1133,6 +1133,7 @@ deleted = "🗑" ``` Show ahead/behind count of the branch being tracked + ```toml # ~/.config/starship.toml @@ -1402,7 +1403,7 @@ disabled = false "dev.local.cluster.k8s" = "dev" ``` -## Line Break +## Quebra de linha The `line_break` module separates the prompt into two lines. @@ -1421,7 +1422,7 @@ The `line_break` module separates the prompt into two lines. disabled = true ``` -## Memory Usage +## Uso de memória The `memory_usage` module shows current system memory and swap usage. @@ -2035,7 +2036,6 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | O estilo do módulo. | | `disabled` | `true` | Disables the `status` module. | - ### Variables | Variável | Exemplo | Descrição | @@ -2046,8 +2046,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y \*: This variable can only be used as a part of a style string - ### Exemplo + ```toml # ~/.config/starship.toml @@ -2262,7 +2262,7 @@ The order in which custom modules are shown can be individually set by including | `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | | `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | | `shell` | | [See below](#custom-command-shell) | -| `description` | `""` | The description of the module that is shown when running `starship explain`. | +| `descrição` | `""` | The description of the module that is shown when running `starship explain`. | | `files` | `[]` | The files that will be searched in the working directory for a match. | | `directories` | `[]` | The directories that will be searched in the working directory for a match. | | `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | diff --git a/docs/pt-BR/migrating-to-0.45.0/README.md b/docs/pt-BR/migrating-to-0.45.0/README.md index 4acf1895..dce372bd 100644 --- a/docs/pt-BR/migrating-to-0.45.0/README.md +++ b/docs/pt-BR/migrating-to-0.45.0/README.md @@ -123,7 +123,7 @@ error_symbol = "[✖](bold red) " ++ format = "took [$duration]($style)" ``` -#### Directory +#### Diretório | Removed Property | Replacement | | ---------------- | ----------- | @@ -134,7 +134,7 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` #### Environment Variable @@ -153,7 +153,7 @@ error_symbol = "[✖](bold red) " ++ format = "with [$env_value]($style) " ``` -#### Git Commit +#### Git commit | Removed Property | Replacement | | ---------------- | ----------- | diff --git a/docs/pt-PT/config/README.md b/docs/pt-PT/config/README.md index 44f8cb4f..b96c7d36 100644 --- a/docs/pt-PT/config/README.md +++ b/docs/pt-PT/config/README.md @@ -611,15 +611,15 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an ### Options -| Variable | 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)[$lock_symbol]($lock_style) "` | The format for the module. | -| `style` | `"bold cyan"` | The style for the module. | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| Variable | 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. |
This module has a few advanced configuration options that control how the directory is displayed. @@ -1133,6 +1133,7 @@ deleted = "🗑" ``` Show ahead/behind count of the branch being tracked + ```toml # ~/.config/starship.toml @@ -2035,7 +2036,6 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | The style for the module. | | `disabled` | `true` | Disables the `status` module. | - ### Variables | Variable | Example | Description | @@ -2046,8 +2046,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y \*: This variable can only be used as a part of a style string - ### Example + ```toml # ~/.config/starship.toml diff --git a/docs/pt-PT/migrating-to-0.45.0/README.md b/docs/pt-PT/migrating-to-0.45.0/README.md index 015af64f..e1c80b48 100644 --- a/docs/pt-PT/migrating-to-0.45.0/README.md +++ b/docs/pt-PT/migrating-to-0.45.0/README.md @@ -134,7 +134,7 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` #### Environment Variable diff --git a/docs/ru-RU/config/README.md b/docs/ru-RU/config/README.md index cc671eb7..8e3f87aa 100644 --- a/docs/ru-RU/config/README.md +++ b/docs/ru-RU/config/README.md @@ -1,12 +1,12 @@ # Конфигурация -To get started configuring starship, create the following file: `~/.config/starship.toml`. +Чтобы начать конфигурацию Starship, создайте следующий файл: `~/.config/starship.toml`. ```sh mkdir -p ~/.config && touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +Вся конфигурация Starship выполняется в этом файле [TOML](https://github.com/toml-lang/toml): ```toml # Don't print a new line at the start of the prompt @@ -21,7 +21,7 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being disabled = true ``` -You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable: +Вы можете изменить расположение файла `starship.toml` переменной окружения `STARSHIP_CONFIG`: ```sh export STARSHIP_CONFIG=~/.starship @@ -47,9 +47,9 @@ Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### Терминология -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**Модуль**: Компонент строки, дающий информацию на основе контекстной информации вашей ОС. Например, модуль "nodejs" показывает установленную версию NodeJS на вашем компьютере, если вы находитесь в директории проекта NodeJS. **Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. @@ -85,7 +85,7 @@ For example: #### Строки стиля -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +В Starship, большинство модулей позволяют настроить стили отображения. Это делается записью (обычно называется `style`), которая представляет собой строку, определяющую конфигурацию. Ниже приведены несколько примеров стилей строк, а также, их действия. Подробнее о полном синтаксисе можно прочитать в [расширенном разделе конфигурации](/advanced-config/). - `"fg:green bg:blue"` устанавливает зеленый текст на синем фоне - `"bg:blue fg:bright-green"` устанавливает ярко-зеленый текст на синем фоне @@ -94,7 +94,7 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` устанавливает жирный фиолетовый текст - `""` выключает все стили -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +Обратите внимание на то, что, вид стиля зависит от вашего эмулятора терминала. Например, некоторые эмуляторы терминала будут использовать яркие цвета вместо жирного текста, и некоторые цветовые темы используют одинаковые значение для обычных и ярких цветов. Также, чтобы получить курсивный текст, ваш терминал должен поддерживать курсив. #### Conditional Format Strings @@ -138,15 +138,15 @@ format = ''' ## Командная строка -This is the list of prompt-wide configuration options. +Ниже находится список опций, применяющихся для всей командной строки. ### Опции -| Option | По умолчанию | Описание | -| -------------- | -------------------------------- | ----------------------------------------------------- | -| `format` | [ссылка](#default-prompt-format) | Configure the format of the prompt. | -| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | -| `add_newline` | `true` | Add a new line before the start of the prompt. | +| Option | По умолчанию | Описание | +| -------------- | -------------------------------- | -------------------------------------------------------- | +| `format` | [ссылка](#default-prompt-format) | Configure the format of the prompt. | +| `scan_timeout` | `30` | Тайм-аут запуска сканирования файлов (в миллисекундах). | +| `add_newline` | `true` | Добавление пустой строки перед началом командной строки. | ### Пример @@ -168,7 +168,7 @@ add_newline = false ### Default Prompt Format -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +The default `format` is used to define the format of the prompt, if empty or no `format` is provided. Значение по умолчанию: ```toml format = "$all" @@ -228,9 +228,9 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +Модуль `aws` показывает текущий регион и профиль AWS. Основано на `AWS_REGION`, `AWS_DEFAULT_REGION`, и `AWS_PROFILE` переменных окружения и файле`~/.aws/config`. -When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. +При использовании [aws-vault](https://github.com/99designs/aws-vault) профиль читается из переменной среды `AWS_VAULT`. ### Опции @@ -296,7 +296,7 @@ symbol = "🅰 " ## Батарея -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +Модуль `battery` показывает насколько заряжена батарея девайса и статус зарядки на данный момент. Модуль виден только, если заряд батареи устройства меньше 10%. ### Опции @@ -310,14 +310,14 @@ The `battery` module shows how charged the device's battery is and its current c | `disabled` | `false` | Отключает модуль `battery`. |
-There are also options for some uncommon battery states. +Также, есть опции для некоторых нетипичных состояний батареи. | Переменная | Описание | | ---------------- | ------------------------------------------------------- | | `unknown_symbol` | Символ, отображаемый при неизвестном состоянии батареи. | | `empty_symbol` | Символ, отображаемый при пустом состоянии батареи. | -Note: Battery indicator will be hidden if the status is `unknown` or `empty` unless you specify the option in the config. +Примечание: Индикатор батареи будет скрыт при состоянии `unknown` или `empty`, если вы не указали параметр в настройках.
@@ -332,9 +332,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Отображение батареи -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +Параметр `display` используется для определения того, когда индикатор батареи должен быть показан (threshhold) и как он выглядит (style). Если `display` не предоставлено. Значение по умолчанию: ```toml [[battery.display]] @@ -344,7 +344,7 @@ style = "bold red" #### Опции -The `display` option is an array of the following table. +Опция `display` представляет собой массив следующей таблицы. | Переменная | Описание | | ----------- | -------------------------------------------------------- | @@ -354,23 +354,23 @@ The `display` option is an array of the following table. #### Пример ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # стиль "bold red" (жирный красный) если заряд между 0% и 10% threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # стиль "bold yellow" (жирный желтый) если заряд между 10% и 30% threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# когда заряд батареи больше 30%, индикатор батареи скрыт ``` ## Символ -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +Модуль `character` показывает символ (обычно, стрелка) рядом с вводимым текстом в терминале. -The character will tell you whether the last command was successful or not. It can do this in two ways: +Символ показывает, была ли последняя команда успешной или нет. It can do this in two ways: - changing color (`red`/`green`) - changing shape (`❯`/`✖`) @@ -451,15 +451,15 @@ The `cmake` module shows the currently installed version of CMake if: ## Длительность команды -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +Модуль `cmd_duration` показывает время исполнения последней команды. Модуль будет показан только, если команда заняла более двух секунд, или если задан параметр `min_time`. -::: warning Do not hook the DEBUG trap in Bash +::: warning Не подключайте ловушку DEBUG к Bash -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +Если вы испоьзуете Starship в `bash`, не подключайте ловушку `DEBUG` после запуска `eval $(starship init $0)`, иначе этот модуль сломается. ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +Пользователи Bash, которым нужна функциональность, подобная preexec, могут использовать [фреймворк bash_preexec от rcaloras](https://github.com/rcaloras/bash-preexec). Просто определите массивы `preexec_functions` и `precmd_functions` перед запуском `eval $(starship init $0)`, а затем продолжайте нормально. ### Опции @@ -492,11 +492,11 @@ format = "underwent [$duration](bold yellow)" ## Конда -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +Модуль `conda` показывает текущее окружение conda, если `$CONDA_DEFAULT_ENV` присвоено значение. ::: tip -This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. +Это не подавляет модификатор командной строки самой conda. Возможно, вы захотите запустить `conda config --set changeps1 False`. ::: @@ -509,7 +509,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | `style` | `"bold green"` | Стиль модуля. | | `format` | `"[$symbol$environment]($style) "` | The format for the module. | | `ignore_base` | `true` | Ignores `base` environment when activated. | -| `disabled` | `false` | Disables the `conda` module. | +| `disabled` | `false` | Отключает модуль `conda`. | ### Variables @@ -532,7 +532,7 @@ format = "[$symbol$environment](dimmed green) " ## Crystal -The `crystal` module shows the currently installed version of Crystal. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `crystal` показывает установленную версию Crystal. Модуль будет показан, если любое из следующих условий соблюдено: - Текущий каталог содержит файл `shard.yml` - Текущий каталог содержит файл `.cr` @@ -601,34 +601,34 @@ The `dart` module shows the currently installed version of Dart. Модуль б format = "via [🔰 $version](bold red) " ``` -## Directory +## Каталог -The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. +Модуль `directory` показывает путь к вашей текущей директории, усеченной до трех родительских папок. Ваш каталог также будет отсечен до корня git репозитория, в котором вы находитесь. -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +При использовании стиля оболочки fish, вместо скрытия усеченного каталога, вы увидите укороченное имя каталога, зависимое от числа символов вы установите для этой опции. -For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. +Например, возьмем `~/Dev/Nix/nixpkgs/pkgs` где `nixpkgs` является корневым репозиторием, и в опции установлено `1`. Вы увидите `~/D/N/nixpkgs/pkgs`, а до этого было бы `nixpkgs/pkgs`. ### Опции -| Переменная | По умолчанию | Описание | -| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- | -| `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)[$lock_symbol]($lock_style) "` | The format for the module. | -| `style` | `"bold cyan"` | Стиль модуля. | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| Переменная | По умолчанию | Описание | +| ------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------- | +| `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. |
-This module has a few advanced configuration options that control how the directory is displayed. +Этот модуль имеет несколько расширенных опций конфигурации, которые контролируют отображение каталога. -| Advanced Option | По умолчанию | Описание | -| --------------------------- | ------------ | ---------------------------------------------------------------------------------------- | -| `substitutions` | | A table of substitutions to be made to the path. | -| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. | -| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. | +| Advanced Option | По умолчанию | Описание | +| --------------------------- | ------------ | --------------------------------------------------------------------------------- | +| `substitutions` | | A table of substitutions to be made to the path. | +| `fish_style_pwd_dir_length` | `0` | Количество символов, используемых при использовании логики создания пути из fish. | +| `use_logical_path` | `true` | Отображает логический путь от оболочки (`PWD`) вместо пути от ОС. | `substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD. @@ -638,7 +638,7 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an "src/com/long/java/path" = "mypath" ``` -`fish_style_pwd_dir_length` interacts with the standard truncation options in a way that can be surprising at first: if it's non-zero, the components of the path that would normally be truncated are instead displayed with that many characters. For example, the path `/built/this/city/on/rock/and/roll`, which would normally be displayed as as `rock/and/roll`, would be displayed as `/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`. +`fish_style_pwd_dir_length` взаимодействует со стандартными параметрами усечения, которые могут сначала показаться странными: если он не равен нулю, элементы пути, который обычно усекается, вместо этого отображаются с указанным количеством символов. For example, the path `/built/this/city/on/rock/and/roll`, which would normally be displayed as as `rock/and/roll`, would be displayed as `/b/t/c/o/rock/and/roll` with `fish_style_pwd_dir_length = 1`--the path components that would normally be removed are displayed with a single character. For `fish_style_pwd_dir_length = 2`, it would be `/bu/th/ci/on/rock/and/roll`.
@@ -660,9 +660,9 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an truncation_length = 8 ``` -## Docker Context +## Контекст Docker -The `docker_context` module shows the currently active [Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to `default`. +Модуль `docker_context` показывает текущий активный [контекст Docker](https://docs.docker.com/engine/context/working-with-contexts/), если он не установлен как `default`. ### Опции @@ -695,7 +695,7 @@ format = "via [🐋 $context](blue bold)" ## Dotnet -The `dotnet` module shows the relevant version of the .NET Core SDK for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK. +Модуль `dotnet` показывает соответствующую версию .NET Core SDK для текущего каталога. Если SDK был закреплен в текущей директории, будет показана закрепленная версия. В противном случае модуль отображает последнюю установленную версию SDK. This module will only be shown in your prompt when one or more of the following files are present in the current directory: @@ -711,19 +711,19 @@ This module will only be shown in your prompt when one or more of the following You'll also need the .NET Core SDK installed in order to use it correctly. -Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options. +Внутренне этот модуль использует свой собственный механизм определения версий. Обычно он в два раза быстрее, чем `dotnet --version`, но он может показывать неправильную версию, если ваш .NET проект имеет необычный формат каталога. Если точность важнее, чем скорость, вы можете отключить механизм опцией `heuristic = false` в настройках модуля. The module will also show the Target Framework Moniker () when there is a csproj file in the current directory. ### Опции -| Option | По умолчанию | Описание | -| ----------- | ---------------------------------------- | -------------------------------------------------------- | -| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | The format for the module. | -| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. | -| `heuristic` | `true` | Use faster version detection to keep starship snappy. | -| `style` | `"bold blue"` | Стиль модуля. | -| `disabled` | `false` | Disables the `dotnet` module. | +| Option | По умолчанию | Описание | +| ----------- | ---------------------------------------- | ----------------------------------------------------------------- | +| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | The format for the module. | +| `symbol` | `"•NET "` | Символ перед отображением текущей версии dotnet. | +| `heuristic` | `true` | Использовать быстрое определение версии, для сохранения скорости. | +| `style` | `"bold blue"` | Стиль модуля. | +| `disabled` | `false` | Отключает модуль `dotnet`. | ### Variables @@ -749,18 +749,18 @@ heuristic = false ## Elixir -The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `elixir` показывает установленную версию Elixir и Erlang/OTP. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `mix.exs` file. +- Текущий каталог содержит файл `mix.exs`. ### Опции -| Option | По умолчанию | Описание | -| ---------- | ------------------------------------------------------------- | --------------------------------------------------------------- | -| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. | -| `style` | `"bold purple"` | Стиль модуля. | -| `format` | `"via [$symbol$version \\(OTP $otp_version\\)]($style) "` | The format for the module elixir. | -| `disabled` | `false` | Disables the `elixir` module. | +| Option | По умолчанию | Описание | +| ---------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `symbol` | `"💧 "` | Символ, используемый перед отображением версии Elixir/Erlang. | +| `style` | `"bold purple"` | Стиль модуля. | +| `format` | `"via [$symbol$version \\(OTP $otp_version\\)]($style) "` | The format for the module elixir. | +| `disabled` | `false` | Отключает модуль `elixir`. | ### Variables @@ -784,13 +784,13 @@ symbol = "🔮 " ## Elm -The `elm` module shows the currently installed version of Elm. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `elm` показывает установленную версию Elm. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `elm.json` file -- The current directory contains a `elm-package.json` file -- The current directory contains a `.elm-version` file -- The current directory contains a `elm-stuff` folder -- The current directory contains a `*.elm` files +- Текущий каталог содержит файл `elm.json` +- Текущий каталог содержит файл `elm-package.json` +- Текущий каталог содержит файл `.elm-version` +- Текущий каталог содержит папку `elm-stuff` +- Текущий каталог содержит файлы `*.elm` ### Опции @@ -799,7 +799,7 @@ The `elm` module shows the currently installed version of Elm. Модуль бу | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"🌳 "` | A format string representing the symbol of Elm. | | `style` | `"cyan bold"` | Стиль модуля. | -| `disabled` | `false` | Disables the `elm` module. | +| `disabled` | `false` | Отключает модуль `elm`. | ### Variables @@ -820,22 +820,22 @@ The `elm` module shows the currently installed version of Elm. Модуль бу format = "via [ $version](cyan bold) " ``` -## Environment Variable +## Переменная Окружения -The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met: +Модуль `env_var` отображает текущее значение выбранной переменной окружения. Модуль будет показан только в том случае, если любое из следующих условий соблюдено: -- The `variable` configuration option matches an existing environment variable -- The `variable` configuration option is not defined, but the `default` configuration option is +- Опция `variable` соответствует существующей переменной среды +- Опция `variable` не определена, но определена опция `default` ### Опции -| Option | По умолчанию | Описание | -| ---------- | ------------------------------ | ---------------------------------------------------------------------------- | -| `symbol` | | The symbol used before displaying the variable value. | -| `variable` | | The environment variable to be displayed. | -| `default` | | The default value to be displayed when the selected variable is not defined. | -| `format` | `"with [$env_value]($style) "` | The format for the module. | -| `disabled` | `false` | Disables the `env_var` module. | +| Option | По умолчанию | Описание | +| ---------- | ------------------------------ | ---------------------------------------------------------------- | +| `symbol` | | Символ, используемый перед отображением значения переменной. | +| `variable` | | Отображаемая переменная окружения. | +| `default` | | Значение отображаемое, когда выбранная переменная не определена. | +| `format` | `"with [$env_value]($style) "` | The format for the module. | +| `disabled` | `false` | Отключает модуль `env_var`. | ### Variables @@ -861,8 +861,8 @@ default = "unknown shell" The `erlang` module shows the currently installed version of Erlang/OTP. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `rebar.config` file. -- The current directory contains a `erlang.mk` file. +- Текущий каталог содержит файл `rebar.config`. +- Текущий каталог содержит файл `erlang.mk`. ### Опции @@ -952,20 +952,20 @@ us-central1 = "uc1" asia-northeast1 = "an1" ``` -## Git Branch +## Ветвь Git -The `git_branch` module shows the active branch of the repo in your current directory. +Модуль `git_branch` показывает активную ветку репозитория в вашем текущей директории. ### Опции -| Option | По умолчанию | Описание | -| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- | -| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. | -| `symbol` | `" "` | A format string representing the symbol of git branch. | -| `style` | `"bold purple"` | Стиль модуля. | -| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. | -| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. You can use `""` for no symbol. | -| `disabled` | `false` | Disables the `git_branch` module. | +| Option | По умолчанию | Описание | +| ------------------- | -------------------------------- | --------------------------------------------------------------------------------------------- | +| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. | +| `symbol` | `" "` | A format string representing the symbol of git branch. | +| `style` | `"bold purple"` | Стиль модуля. | +| `truncation_length` | `2^63 - 1` | Отрезает ветку git до X графемов. | +| `truncation_symbol` | `"…"` | Символ, используемый для обозначения усечения названия ветки. You can use `""` for no symbol. | +| `disabled` | `false` | Отключает модуль `git_branch`. | ### Variables @@ -988,19 +988,19 @@ truncation_length = 4 truncation_symbol = "" ``` -## Git Commit +## Коммит Git -The `git_commit` module shows the current commit hash of the repo in your current directory. +Модуль `git_commit` показывает хэш текущего коммита репозитория в вашем текущем каталоге. ### Опции -| Option | По умолчанию | Описание | -| -------------------- | ------------------------------ | ----------------------------------------------------- | -| `commit_hash_length` | `7` | The length of the displayed git commit hash. | -| `format` | `"[\\($hash\\)]($style) "` | The format for the module. | -| `style` | `"bold green"` | Стиль модуля. | -| `only_detached` | `true` | Only show git commit hash when in detached HEAD state | -| `disabled` | `false` | Disables the `git_commit` module. | +| Option | По умолчанию | Описание | +| -------------------- | ------------------------------ | ----------------------------------------------------------------------- | +| `commit_hash_length` | `7` | Длина отображаемого хэша коммита git. | +| `format` | `"[\\($hash\\)]($style) "` | The format for the module. | +| `style` | `"bold green"` | Стиль модуля. | +| `only_detached` | `true` | Показывать хэш коммита git, только находясь в состоянии отделённой HEAD | +| `disabled` | `false` | Отключает модуль `git_commit`. | ### Variables @@ -1020,9 +1020,9 @@ The `git_commit` module shows the current commit hash of the repo in your curren commit_hash_length = 4 ``` -## Git State +## Состояние Git -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. +Модуль `git_state` будет отображаться в директориях, являющимися частью репозитория git, и там, где выполняется операция, такие как: _REBASING_, _BISECTING_, и т. д. Если есть информация о прогрессе (например, REBASING 3/10), эта информация также будет показана. ### Опции @@ -1037,7 +1037,7 @@ The `git_state` module will show in directories which are part of a git reposito | `am_or_rebase` | `"AM/REBASE"` | A format string displayed when an ambiguous `apply-mailbox` or `rebase` is in progress. | | `style` | `"bold yellow"` | Стиль модуля. | | `format` | `"\\([$state( $progress_current/$progress_total)]($style)\\) "` | The format for the module. | -| `disabled` | `false` | Disables the `git_state` module. | +| `disabled` | `false` | Отключает модуль `git_state`. | ### Variables @@ -1060,16 +1060,16 @@ format = "[\\($state( $progress_current of $progress_total)\\)]($style) " cherry_pick = "[🍒 PICKING](bold red)" ``` -## Git Status +## Статус Git -The `git_status` module shows symbols representing the state of the repo in your current directory. +Модуль `git_status` отображает символы, представляющие состояние репозитория в вашей текущей директории. ### Опции | Option | По умолчанию | Описание | | ------------ | --------------------------------------------- | ----------------------------------- | | `format` | `"[\[$all_status$ahead_behind\]]($style) "` | The default format for `git_status` | -| `conflicted` | `"="` | This branch has merge conflicts. | +| `conflicted` | `"="` | Эта ветка имеет конфликты слияния. | | `ahead` | `"⇡"` | The format of `ahead` | | `behind` | `"⇣"` | The format of `behind` | | `diverged` | `"⇕"` | The format of `diverged` | @@ -1080,7 +1080,7 @@ The `git_status` module shows symbols representing the state of the repo in your | `renamed` | `"»"` | The format of `renamed` | | `deleted` | `"✘"` | The format of `deleted` | | `style` | `"bold red"` | Стиль модуля. | -| `disabled` | `false` | Disables the `git_status` module. | +| `disabled` | `false` | Отключает модуль `git_status`. | ### Variables @@ -1110,9 +1110,9 @@ The following variables can be used in `diverged`: The following variables can be used in `conflicted`, `ahead`, `behind`, `untracked`, `stashed`, `modified`, `staged`, `renamed` and `deleted`: -| Переменная | Описание | -| ---------- | ------------------------ | -| `count` | Show the number of files | +| Переменная | Описание | +| ---------- | -------------------------- | +| `count` | Показать количество файлов | ### Пример @@ -1132,7 +1132,8 @@ renamed = "👅" deleted = "🗑" ``` -Show ahead/behind count of the branch being tracked +Показывать счетчик впереди/позади для отслеживаемой ветки + ```toml # ~/.config/starship.toml @@ -1144,16 +1145,16 @@ behind = "⇣${count}" ## Golang -The `golang` module shows the currently installed version of Golang. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `golang` показывает установленную версию Golang. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `go.mod` file -- The current directory contains a `go.sum` file -- The current directory contains a `glide.yaml` file -- The current directory contains a `Gopkg.yml` file -- The current directory contains a `Gopkg.lock` file +- Текущий каталог содержит файл `go.mod` +- Текущий каталог содержит файл `go.sum` +- Текущий каталог содержит файл `glide.yaml` +- Текущий каталог содержит файл `Gopkg.yml` +- Текущий каталог содержит файл `Gopkg.lock` - The current directory contains a `.go-version` file -- The current directory contains a `Godeps` directory -- The current directory contains a file with the `.go` extension +- Текущий каталог содержит папку `Godeps` +- Текущий каталог содержит файл с расширением `.go` ### Опции @@ -1162,7 +1163,7 @@ The `golang` module shows the currently installed version of Golang. Модул | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"🐹 "` | A format string representing the symbol of Go. | | `style` | `"bold cyan"` | Стиль модуля. | -| `disabled` | `false` | Disables the `golang` module. | +| `disabled` | `false` | Отключает модуль `golang`. | ### Variables @@ -1187,7 +1188,7 @@ format = "via [🏎💨 $version](bold cyan) " The `helm` module shows the currently installed version of Helm. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `helmfile.yaml` file +- Текущий каталог содержит файл `helmfile.yaml` - The current directory contains a `Chart.yaml` file ### Опции @@ -1218,19 +1219,19 @@ The `helm` module shows the currently installed version of Helm. Модуль б format = "via [⎈ $version](bold white) " ``` -## Hostname +## Имя хоста -The `hostname` module shows the system hostname. +Модуль `hostname` отображает имя системы (хоста). ### Опции -| Option | По умолчанию | Описание | -| ---------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -| `ssh_only` | `true` | Only show hostname when connected to an SSH session. | -| `trim_at` | `"."` | String that the hostname is cut off at, after the first match. `"."` will stop after the first dot. `""` will disable any truncation | -| `format` | `"[$hostname]($style) in "` | The format for the module. | -| `style` | `"bold dimmed green"` | Стиль модуля. | -| `disabled` | `false` | Disables the `hostname` module. | +| Option | По умолчанию | Описание | +| ---------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `ssh_only` | `true` | Показывать имя хоста только при подключении к SSH-сессии. | +| `trim_at` | `"."` | Символы, по которую имя хоста будет сокращено после первого совпадения. `"."` остановится после первой точки. `""` отключит любое усечение | +| `format` | `"[$hostname]($style) in "` | The format for the module. | +| `style` | `"bold dimmed green"` | Стиль модуля. | +| `disabled` | `false` | Отключает модуль `hostname`. | ### Variables @@ -1255,7 +1256,7 @@ disabled = false ## Java -The `java` module shows the currently installed version of Java. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `java` показывает установленную версию Java. Модуль будет показан, если любое из следующих условий соблюдено: - The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt` or `.java-version` file - The current directory contains a file with the `.java`, `.class`, `.gradle` or `.jar` extension @@ -1267,7 +1268,7 @@ The `java` module shows the currently installed version of Java. Модуль б | `format` | `"via [${symbol}${version}]($style) "` | The format for the module. | | `symbol` | `"☕ "` | A format string representing the symbol of Java | | `style` | `"red dimmed"` | Стиль модуля. | -| `disabled` | `false` | Disables the `java` module. | +| `disabled` | `false` | Отключает модуль `java`. | ### Variables @@ -1288,19 +1289,19 @@ The `java` module shows the currently installed version of Java. Модуль б 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 is more than 1 job, or more than the `threshold` config value, if it exists. +Модуль `jobs` отображает текущее количество запущенных работ. Модуль будет показан только если работы выполняются в фоне. Модуль покажет количество запущенных задач при наличии более чем 1 задачи, или больше, чем значение конфигурации `threshold`, если оно существует. ### Опции | Option | По умолчанию | Описание | | ----------- | ----------------------------- | ------------------------------------------------ | -| `threshold` | `1` | Show number of jobs if exceeded. | +| `threshold` | `1` | Показывать количество задач, если превышено. | | `format` | `"[$symbol$number]($style) "` | The format for the module. | | `symbol` | `"✦"` | A format string representing the number of jobs. | | `style` | `"bold blue"` | Стиль модуля. | -| `disabled` | `false` | Disables the `jobs` module. | +| `disabled` | `false` | Отключает модуль `jobs`. | ### Variables @@ -1364,7 +1365,7 @@ Displays the current Kubernetes context name and, if set, the namespace from the ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации. ::: @@ -1377,7 +1378,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"cyan bold"` | Стиль модуля. | | `namespace_spaceholder` | `none` | The value to display if no namespace was found. | | `context_aliases` | | Table of context aliases to display. | -| `disabled` | `true` | Disables the `kubernetes` module. | +| `disabled` | `true` | Отключает модуль `kubernetes`. | ### Variables @@ -1402,15 +1403,15 @@ disabled = false "dev.local.cluster.k8s" = "dev" ``` -## Line Break +## Перевод Строки -The `line_break` module separates the prompt into two lines. +Модуль `line_break` разделяет командную строку на две строки. ### Опции -| Option | По умолчанию | Описание | -| ---------- | ------------ | ------------------------------------------------------------------ | -| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. | +| Option | По умолчанию | Описание | +| ---------- | ------------ | ------------------------------------------------------------------------ | +| `disabled` | `false` | Отключает модуль `line_break`, отображая командную строку в одну строку. | ### Пример @@ -1421,27 +1422,27 @@ The `line_break` module separates the prompt into two lines. disabled = true ``` -## Memory Usage +## Использование памяти -The `memory_usage` module shows current system memory and swap usage. +Модуль `memory_usage` отображает текущую системную память и использование подкачки. -By default the swap usage is displayed if the total system swap is non-zero. +По умолчанию использование подкачки отображается, если общая сумма подкачки системы не равна нулю. ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации. ::: ### Опции -| Option | По умолчанию | Описание | -| ----------- | --------------------------------------------- | -------------------------------------------------------- | -| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. | -| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | The format for the module. | -| `symbol` | `"🐏"` | The symbol used before displaying the memory usage. | -| `style` | `"bold dimmed white"` | Стиль модуля. | -| `disabled` | `true` | Disables the `memory_usage` module. | +| Option | По умолчанию | Описание | +| ----------- | --------------------------------------------- | ------------------------------------------------------------------ | +| `threshold` | `75` | Скрывать использование памяти, если она не превышает этот процент. | +| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | The format for the module. | +| `symbol` | `"🐏"` | Символ, используемый перед отображением использования памяти. | +| `style` | `"bold dimmed white"` | Стиль модуля. | +| `disabled` | `true` | Отключает модуль `memory_usage`. | ### Variables @@ -1471,20 +1472,20 @@ separator = "/" style = "bold dimmed green" ``` -## Mercurial Branch +## Ветка Mercurial -The `hg_branch` module shows the active branch of the repo in your current directory. +Модуль `hg_branch` показывает активную ветку репозитория в вашем текущем каталоге. ### Опции -| Option | По умолчанию | Описание | -| ------------------- | -------------------------------- | -------------------------------------------------------------------------------------------- | -| `symbol` | `" "` | The symbol used before the hg bookmark or branch name of the repo in your current directory. | -| `style` | `"bold purple"` | Стиль модуля. | -| `format` | `"on [$symbol$branch]($style) "` | The format for the module. | -| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to X graphemes | -| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. | -| `disabled` | `true` | Disables the `hg_branch` module. | +| Option | По умолчанию | Описание | +| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- | +| `symbol` | `" "` | Символ, используемый перед закладкой hg или именем ветки репозитория в текущем каталоге. | +| `style` | `"bold purple"` | Стиль модуля. | +| `format` | `"on [$symbol$branch]($style) "` | The format for the module. | +| `truncation_length` | `2^63 - 1` | Обрезает имя ветки hg до X графемов | +| `truncation_symbol` | `"…"` | Символ, используемый для обозначения усечения названия ветки. | +| `disabled` | `true` | Отключает модуль `hg_branch`. | ### Variables @@ -1511,7 +1512,7 @@ truncation_symbol = "" The `nim` module shows the currently installed version of Nim. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `nim.cfg` file +- Текущий каталог содержит файл `nim.cfg` - 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 @@ -1547,7 +1548,7 @@ symbol = "🎣 " ## Nix-shell -The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment. +Модуль `nix_shell` показывает окружение nix-shell. Модуль будет показываться внутри среды nix-shell. ### Опции @@ -1558,7 +1559,7 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown | `style` | `"bold blue"` | Стиль модуля. | | `impure_msg` | `"impure"` | A format string shown when the shell is impure. | | `pure_msg` | `"pure"` | A format string shown when the shell is pure. | -| `disabled` | `false` | Disables the `nix_shell` module. | +| `disabled` | `false` | Отключает модуль `nix_shell`. | ### Variables @@ -1585,11 +1586,11 @@ format = "via [☃️ $state( \\($name\\))](bold blue) " ## NodeJS -The `nodejs` module shows the currently installed version of NodeJS. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `nodejs` показывает установленную версию NodeJS. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `package.json` file +- Текущий каталог содержит файл `package.json` - The current directory contains a `.node-version` file -- The current directory contains a `node_modules` directory +- Текущий каталог содержит каталог `node_modules` - The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension - The current directory contains a file with the `.ts` extension @@ -1600,7 +1601,7 @@ The `nodejs` module shows the currently installed version of NodeJS. Модул | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. | | `style` | `"bold green"` | Стиль модуля. | -| `disabled` | `false` | Disables the `nodejs` module. | +| `disabled` | `false` | Отключает модуль `nodejs`. | ###  Variables @@ -1621,15 +1622,15 @@ The `nodejs` module shows the currently installed version of NodeJS. Модул format = "via [🤖 $version](bold green) " ``` -## Package Version +## Версия пакета -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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. +Модуль `package` отображается, когда текущий каталог является репозиторием для пакета и показывает его текущую версию. The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. -- **npm** – The `npm` package version is extracted from the `package.json` present in the current directory -- **cargo** – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory -- **poetry** – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory -- **composer** – The `composer` package version is extracted from the `composer.json` present in the current directory -- **gradle** – The `gradle` package version is extracted from the `build.gradle` present +- **npm** – Версия пакета `npm` из файла `package.json` в текущем каталоге +- **cargo** – Версия пакета `cargo` из файла `Cargo.toml` в текущем каталоге +- **poetry** – Версия пакета `poetry` из файла `pyproject.toml` в текущем каталоге +- **composer** – Версия пакета `composer` из `composer.json` в текущем каталоге +- **gradle** – Версия пакета `gradle` извлечена из `build.gradle` - **julia** - The package version is extracted from the `Project.toml` present - **mix** - The `mix` package version is extracted from the `mix.exs` present - **helm** - The `helm` chart version is extracted from the `Chart.yaml` present @@ -1639,13 +1640,13 @@ The `package` module is shown when the current directory is the repository for a ### Опции -| Option | По умолчанию | Описание | -| ----------------- | ---------------------------------- | ---------------------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | -| `symbol` | `"📦 "` | The symbol used before displaying the version the package. | -| `style` | `"bold 208"` | Стиль модуля. | -| `display_private` | `false` | Enable displaying version for packages marked as private. | -| `disabled` | `false` | Disables the `package` module. | +| Option | По умолчанию | Описание | +| ----------------- | ---------------------------------- | --------------------------------------------------------- | +| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `symbol` | `"📦 "` | Символ, используемый перед отображением версии пакета. | +| `style` | `"bold 208"` | Стиль модуля. | +| `display_private` | `false` | Enable displaying version for packages marked as private. | +| `disabled` | `false` | Отключает модуль `package`. | ### Variables @@ -1743,20 +1744,20 @@ format = "via [🦪 $version]($style) " ## PHP -The `php` module shows the currently installed version of PHP. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `php` показывает установленную версию PHP. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `composer.json` file -- The current directory contains a `.php-version` file -- The current directory contains a `.php` file +- Текущий каталог содержит файл `composer.json` +- Текущий каталог содержит файл `.php-version` +- Текущий каталог содержит файл `.php` ### Опции -| Option | По умолчанию | Описание | -| ---------- | ---------------------------------- | ----------------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | -| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. | -| `style` | `"147 bold"` | Стиль модуля. | -| `disabled` | `false` | Disables the `php` module. | +| Option | По умолчанию | Описание | +| ---------- | ---------------------------------- | --------------------------------------------------- | +| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `symbol` | `"🐘 "` | Символ, используемый перед отображением версии PHP. | +| `style` | `"147 bold"` | Стиль модуля. | +| `disabled` | `false` | Отключает модуль `php`. | ### Variables @@ -1785,15 +1786,15 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `.python-version` file -- The current directory contains a `requirements.txt` file -- The current directory contains a `pyproject.toml` file +- Текущий каталог содержит файл `.python-version` +- Текущий каталог содержит файл `requirements.txt` +- Текущий каталог содержит файл `pyproject.toml` - The current directory contains a file with the `.py` extension (and `scan_for_pyfiles` is true) -- The current directory contains a `Pipfile` file -- The current directory contains a `tox.ini` file -- The current directory contains a `setup.py` file +- Текущий каталог содержит файл `Pipfile` +- Текущий каталог содержит файл `tox.ini` +- Текущий каталог содержит файл `setup.py` - The current directory contains a `__init__.py` file -- A virtual environment is currently activated +- Виртуальная среда в данный момент активирована ### Опции @@ -1802,7 +1803,7 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name | `format` | `"via [${symbol}${pyenv_prefix}${version}( \\($virtualenv\\))]($style) "` | The format for the module. | | `symbol` | `"🐍 "` | A format string representing the symbol of Python | | `style` | `"yellow bold"` | Стиль модуля. | -| `pyenv_version_name` | `false` | Use pyenv to get Python version | +| `pyenv_version_name` | `false` | Использовать pyenv для получения версии Python | | `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used | | `scan_for_pyfiles` | `true` | If false, Python files in the current directory will not show this module. | | `disabled` | `false` | Disables the `python` module. | @@ -1847,11 +1848,11 @@ pyenv_version_name = true ## Ruby -The `ruby` module shows the currently installed version of Ruby. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `ruby` показывает установленную версию Ruby. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `Gemfile` file -- The current directory contains a `.ruby-version` file -- The current directory contains a `.rb` file +- Текущий каталог содержит файл `Gemfile` +- Текущий каталог содержит файл `.ruby-version` +- Текущий каталог содержит файл `.rb` ### Опции @@ -1860,7 +1861,7 @@ The `ruby` module shows the currently installed version of Ruby. Модуль б | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"💎 "` | A format string representing the symbol of Ruby. | | `style` | `"bold red"` | Стиль модуля. | -| `disabled` | `false` | Disables the `ruby` module. | +| `disabled` | `false` | Отключает модуль `ruby`. | ### Variables @@ -1883,10 +1884,10 @@ symbol = "🔺 " ## Rust -The `rust` module shows the currently installed version of Rust. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `rust` показывает установленную версию Rust. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `Cargo.toml` file -- The current directory contains a file with the `.rs` extension +- Текущий каталог содержит файл `Cargo.toml` +- Текущий каталог содержит файл с расширением `.rs` ### Опции @@ -1895,7 +1896,7 @@ The `rust` module shows the currently installed version of Rust. Модуль б | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"🦀 "` | A format string representing the symbol of Rust | | `style` | `"bold red"` | Стиль модуля. | -| `disabled` | `false` | Disables the `rust` module. | +| `disabled` | `false` | Отключает модуль `rust`. | ### Variables @@ -1953,7 +1954,7 @@ threshold = 3 ## Singularity -The `singularity` module shows the current singularity image, if inside a container and `$SINGULARITY_NAME` is set. +Модуль `singularity` показывает текущий образ singularity, если внутри контейнера и `$SINGULARITY_NAME` установлена. ### Опции @@ -2024,7 +2025,7 @@ The `status` module displays the exit code of the previous command. The module w ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. ::: +По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации. ::: ### Опции @@ -2035,7 +2036,6 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | Стиль модуля. | | `disabled` | `true` | Disables the `status` module. | - ### Variables | Переменная | Пример | Описание | @@ -2046,8 +2046,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y \*: This variable can only be used as a part of a style string - ### Пример + ```toml # ~/.config/starship.toml @@ -2062,10 +2062,10 @@ disabled = false ## Terraform -The `terraform` module shows the currently selected terraform workspace and version. By default the terraform version is not shown, since this is slow on 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-version). Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `terraform` показывает выбранную рабочую область и версию terraform. По умолчанию, версия terraform не показана, так как это медленно на текущих версиях terraform, при использовании большого количества плагинов. If you still want to enable it, [follow the example shown below](#with-version). Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `.terraform` folder -- Current directory contains a file with the `.tf` extension +- Текущий каталог содержит папку `.terraform` +- Текущий каталог содержит файл с расширением `.tf` ### Опции @@ -2074,7 +2074,7 @@ The `terraform` module shows the currently selected terraform workspace and vers | `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. | | `symbol` | `"💠 "` | A format string shown before the terraform workspace. | | `style` | `"bold 105"` | Стиль модуля. | -| `disabled` | `false` | Disables the `terraform` module. | +| `disabled` | `false` | Отключает модуль `terraform`. | ### Variables @@ -2107,35 +2107,35 @@ format = "[🏎💨 $version$workspace]($style) " format = "[🏎💨 $workspace]($style) " ``` -## Time +## Время -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. +Модуль `time` показывает текущее **локальное** время. Значение конфигурации `format` используется пакетом [`chrono`](https://crates.io/crates/chrono) для контроля того, как отображается время. Ознакомьтесь с [документацией chrono strftime](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html), чтобы увидеть доступные параметры. ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +По умолчанию этот модуль отключен. Чтобы включить его, установите `disabled` на `false` в файле конфигурации. ::: ### Опции -| Option | По умолчанию | Описание | -| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `format` | `"at [$time]($style) "` | The format string for the module. | -| `use_12hr` | `false` | Enables 12 hour formatting | -| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. | -| `style` | `"bold yellow"` | The style for the module time | -| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | -| `disabled` | `true` | Disables the `time` module. | -| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | +| Option | По умолчанию | Описание | +| ----------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `format` | `"at [$time]($style) "` | The format string for the module. | +| `use_12hr` | `false` | Включить 12-часовое форматирование | +| `time_format` | см. ниже | [Строка формата chrono](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html), используемая для форматирования времени. | +| `style` | `"bold yellow"` | Стиль модуля времени | +| `utc_time_offset` | `"local"` | Устанавливает смещение UTC. Range from -24 < x < 24. Разрешает числам с плавающей точкой встраивать 30/45-минутное смещение временной зоны. | +| `disabled` | `true` | Отключает модуль `time`. | +| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | -If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting. +If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Иначе по умолчанию используется `"%T"`. Manually setting `time_format` will override the `use_12hr` setting. ### Variables | Переменная | Пример | Описание | | ---------- | ---------- | ----------------------------------- | -| time | `13:08:10` | The current time. | +| время | `13:08:10` | The current time. | | style\* | | Mirrors the value of option `style` | \*: This variable can only be used as a part of a style string @@ -2153,24 +2153,24 @@ utc_time_offset = "-5" time_range = "10:00:00-14:00:00" ``` -## Username +## Имя пользователя -The `username` module shows active user's username. Модуль будет показан, если любое из следующих условий соблюдено: +Модуль `username` показывает имя текущего пользователя. Модуль будет показан, если любое из следующих условий соблюдено: -- 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 +- Текущий пользователь - root +- Текущий пользователь отличается от залогиненного +- Пользователь подключен к SSH-сессии +- Переменная `show_always` равна true ### Опции -| Option | По умолчанию | Описание | -| ------------- | ----------------------- | ------------------------------------- | -| `style_root` | `"bold red"` | The style used when the user is root. | -| `style_user` | `"bold yellow"` | The style used for non-root users. | -| `format` | `"[$user]($style) in "` | The format for the module. | -| `show_always` | `false` | Always shows the `username` module. | -| `disabled` | `false` | Disables the `username` module. | +| Option | По умолчанию | Описание | +| ------------- | ----------------------- | ------------------------------------------------------- | +| `style_root` | `"bold red"` | Стиль, используемый для пользователя root. | +| `style_user` | `"bold yellow"` | Стиль, используемый для всех пользователей, кроме root. | +| `format` | `"[$user]($style) in "` | The format for the module. | +| `show_always` | `false` | Всегда показывать модуль `username`. | +| `disabled` | `false` | Отключает модуль `username`. | ### Variables @@ -2262,7 +2262,7 @@ The order in which custom modules are shown can be individually set by including | `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | | `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | | `shell` | | [See below](#custom-command-shell) | -| `description` | `""` | The description of the module that is shown when running `starship explain`. | +| `описание` | `""` | The description of the module that is shown when running `starship explain`. | | `files` | `[]` | The files that will be searched in the working directory for a match. | | `directories` | `[]` | The directories that will be searched in the working directory for a match. | | `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | @@ -2331,7 +2331,7 @@ shell = ["pwsh.exe", "-NoProfile", "-Command", "-"] The `purescript` module shows the currently installed version of PureScript version. Модуль будет показан, если любое из следующих условий соблюдено: -- The current directory contains a `spago.dhall` file +- Текущий каталог содержит файл `spago.dhall` - The current directory contains a \*.purs files ### Опции diff --git a/docs/ru-RU/migrating-to-0.45.0/README.md b/docs/ru-RU/migrating-to-0.45.0/README.md index 01e64cbc..896d666a 100644 --- a/docs/ru-RU/migrating-to-0.45.0/README.md +++ b/docs/ru-RU/migrating-to-0.45.0/README.md @@ -123,7 +123,7 @@ error_symbol = "[✖](bold red) " ++ format = "took [$duration]($style)" ``` -#### Directory +#### Каталог | Removed Property | Replacement | | ---------------- | ----------- | @@ -134,10 +134,10 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` -#### Environment Variable +#### Переменная Окружения | Removed Property | Replacement | | ---------------- | ----------- | @@ -153,7 +153,7 @@ error_symbol = "[✖](bold red) " ++ format = "with [$env_value]($style) " ``` -#### Git Commit +#### Коммит Git | Removed Property | Replacement | | ---------------- | ----------- | @@ -169,7 +169,7 @@ error_symbol = "[✖](bold red) " ++ format = "[\\($hash\\)]($style) " ``` -#### Git Status +#### Статус Git | Removed Property | Replacement | | ----------------- | ----------- | @@ -200,7 +200,7 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}" behind = "⇣${count}" ``` -#### Hostname +#### Имя хоста | Removed Property | Replacement | | ---------------- | ----------- | @@ -233,7 +233,7 @@ behind = "⇣${count}" ++ format = "[$symbol\\[$env\\]]($style) " ``` -#### Time +#### Время | Removed Property | Replacement | | ---------------- | ------------- | diff --git a/docs/zh-CN/config/README.md b/docs/zh-CN/config/README.md index c176fd9a..d8a418f7 100644 --- a/docs/zh-CN/config/README.md +++ b/docs/zh-CN/config/README.md @@ -1,12 +1,12 @@ # 配置 -To get started configuring starship, create the following file: `~/.config/starship.toml`. +您需要创建配置文件 `~/.config/starship.toml` 以供 Starship 使用。 ```sh mkdir -p ~/.config && touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +Starship 的所有配置都在此 [TOML](https://github.com/toml-lang/toml) 配置文件中完成: ```toml # Don't print a new line at the start of the prompt @@ -21,7 +21,7 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being disabled = true ``` -You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable: +你可以设置环境变量 `STARSHIP_CONFIG` 来修改 starship 查找配置文件 `starship.toml` 时查找的位置: ```sh export STARSHIP_CONFIG=~/.starship @@ -47,9 +47,9 @@ Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### 术语 -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**组件(Module)**:提示符的组成部分,通过来自系统的上下文信息向用户显示各种信息。 比如“nodejs”组件会在当前目录是一个 NodeJS 项目时显示您当前安装的 NodeJS 版本。 **Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. @@ -85,7 +85,7 @@ For example: #### 样式设定 -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +Starship 中的大多数组件允许您为其设置显示样式。 显示样式可以通过一个字符串字段(一般是 `style`)来设置。 以下的例子给出了一些样式字符串并描述了它们的效果。 样式字符串的完整语法请查阅 [高级配置指南](/advanced-config/)。 - `"fg:green bg:blue"` 在蓝色背景上显示绿色文本 - `"bg:blue fg:bright-green"` 在蓝色背景上显示亮绿色文本 @@ -94,7 +94,7 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` 设置文本为粗体、意大利体,颜色为紫色 - `""` 显式禁用所有样式 -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +请注意,最终的显示样式将由您的终端模拟器控制。 例如,有的终端模拟器对于“bold”属性的文本是加亮颜色而不是加粗文字,有的颜色主题对“普通”和“明亮”两种属性的颜色使用相同的颜色值。 此外,要获得意大利体文本(一般设计为斜体),您的终端必须支持意大利体显示。 #### Conditional Format Strings @@ -138,15 +138,15 @@ format = ''' ## 提示符 -This is the list of prompt-wide configuration options. +以下是关于提示符的配置项。 ### 配置项 -| Option | 默认值 | 描述 | -| -------------- | ----------------------------- | ----------------------------------------------------- | -| `format` | [见下文](#default-prompt-format) | Configure the format of the prompt. | -| `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | -| `add_newline` | `true` | Add a new line before the start of the prompt. | +| Option | 默认值 | 描述 | +| -------------- | ----------------------------- | ----------------------------------- | +| `format` | [见下文](#default-prompt-format) | Configure the format of the prompt. | +| `scan_timeout` | `30` | Starship 扫描文件的超时时间(单位:毫秒)。 | +| `add_newline` | `true` | 在提示符与提示信息间换行。 | ### 示例 @@ -168,7 +168,7 @@ add_newline = false ### Default Prompt Format -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +The default `format` is used to define the format of the prompt, if empty or no `format` is provided. 默认设置如下: ```toml format = "$all" @@ -228,28 +228,28 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +`aws` 组件显示当前 AWS 主机所在区域与配置信息。 各组件基于 `AWS_REGION`,`AWS_DEFAULT_REGION` 和 `AWS_PROFILE` 环境变量与 `~/.aws/config` 文件。 When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. ### 配置项 -| Option | 默认值 | 描述 | -| ---------------- | ---------------------------------------------------- | -------------------------- | -| `format` | `"on [$symbol$profile(\\($region\\))]($style) "` | The format for the module. | -| `symbol` | `"☁️ "` | 这个字段的内容会显示在当前 AWS 配置信息之前。 | -| `region_aliases` | | 地区缩写列表,用来显示在 AWS 主机名之后。 | -| `style` | `"bold yellow"` | 此组件的样式。 | -| `disabled` | `false` | 禁用 `AWS` 组件。 | +| Option | 默认值 | 描述 | +| ---------------- | ---------------------------------------------------- | ------------------------- | +| `format` | `"on [$symbol$profile(\\($region\\))]($style) "` | 组件格式化模板。 | +| `symbol` | `"☁️ "` | 这个字段的内容会显示在当前 AWS 配置信息之前。 | +| `region_aliases` | | 地区缩写列表,用来显示在 AWS 主机名之后。 | +| `style` | `"bold yellow"` | 此组件的样式。 | +| `disabled` | `false` | 禁用 `AWS` 组件。 | ### Variables -| 字段 | 示例 | 描述 | -| --------- | ---------------- | ------------------------------------ | -| region | `ap-northeast-1` | The current AWS region | -| profile | `astronauts` | The current AWS profile | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | ---------------- | ----------------------- | +| region | `ap-northeast-1` | The current AWS region | +| profile | `astronauts` | The current AWS profile | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -296,28 +296,28 @@ symbol = "🅰 " ## Battery -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +`battery` 组件显示电池充电情况和当前充电状态。 这个组件只会在当前电量低于 10% 时显示。 ### 配置项 -| Option | 默认值 | 描述 | -| -------------------- | --------------------------------- | -------------------------- | -| `full_symbol` | `"•"` | 显示于电池充满时。 | -| `charging_symbol` | `"⇡"` | 显示于正在充电时。 | -| `discharging_symbol` | `"⇣"` | 显示于电池放电时。 | -| `format` | `"[$symbol$percentage]($style) "` | The format for the module. | -| `display` | [见下文](#battery-display) | 电量显示阈值和样式。 | -| `disabled` | `false` | 禁用 `battery` 组件。 | +| Option | 默认值 | 描述 | +| -------------------- | --------------------------------- | ---------------- | +| `full_symbol` | `"•"` | 显示于电池充满时。 | +| `charging_symbol` | `"⇡"` | 显示于正在充电时。 | +| `discharging_symbol` | `"⇣"` | 显示于电池放电时。 | +| `format` | `"[$symbol$percentage]($style) "` | 组件格式化模板。 | +| `display` | [见下文](#battery-display) | 电量显示阈值和样式。 | +| `disabled` | `false` | 禁用 `battery` 组件。 |
-There are also options for some uncommon battery states. +也有一些给不常见的电源状态设立的字段。 | 字段 | 描述 | | ---------------- | ---------- | | `unknown_symbol` | 显示于电池状态未知时 | | `empty_symbol` | 显示于电池状态为空时 | -Note: Battery indicator will be hidden if the status is `unknown` or `empty` unless you specify the option in the config. +注意:如果状态为 `unknown` 或 `empty`,电池指示器将被隐藏,除非您在配置中指定相关选项。
@@ -332,9 +332,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### Battery 组件的显示 -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +`display` 选项用于定义电池指示器的显示阈值(threshold)和显示效果(style)。 如果 `display` 没有设置, 默认设置如下: ```toml [[battery.display]] @@ -344,7 +344,7 @@ style = "bold red" #### 配置项 -The `display` option is an array of the following table. +`display` 字段的子字段如下: | 字段 | 描述 | | ----------- | ---------------- | @@ -354,23 +354,23 @@ The `display` option is an array of the following table. #### 示例 ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # 当电量在 0% 到 10% 时以 "bold red" 样式显示 threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # 当电量在 10% 到 30% 时以 "bold yellow" 样式显示 threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# 当电量在 30% 时以上时,电池指示器组件将不会显示出来 ``` ## Character -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +`character` 组件用于在您输入终端的文本旁显示一个字符(通常是一个箭头)。 -The character will tell you whether the last command was successful or not. It can do this in two ways: +这个字符可以告诉您最后一个命令是否执行成功。 It can do this in two ways: - changing color (`red`/`green`) - changing shape (`❯`/`✖`) @@ -434,49 +434,49 @@ The `cmake` module shows the currently installed version of CMake if: | Option | 默认值 | 描述 | | ---------- | ---------------------------------- | -------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `symbol` | `"🛆 "` | The symbol used before the version of cmake. | | `style` | `"bold blue"` | 此组件的样式。 | | `disabled` | `false` | Disables the `cmake` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | --------- | ------------------------------------ | -| version | `v3.17.3` | The version of cmake | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | --------- | -------------------- | +| version | `v3.17.3` | The version of cmake | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string ## Command Duration -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +`cmd_duration` 组件显示上一个命令执行的时间。 此组件只在命令执行时间长于两秒时显示,或者当其 `min_time` 字段被设置时,按此值为执行时间的显示下限。 -::: warning Do not hook the DEBUG trap in Bash +::: warning 不要在 Bash 里捕获 DEBUG 信号 -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +如果您正在 `bash` 上使用 Starship,在运行 `eval $(starship)` 后,不要捕获 `DEBUG` 信号,否则此组件**将会**坏掉。 ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +需要在自动每一条命令前执行某些操作的 Bash 用户可以使用 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只需要在执行 `eval $(starship init $0)` 前简单地定义 `preexec_functions` 和 `precmd_functions` 两个列表,就可以照常运行了。 ### 配置项 -| Option | 默认值 | 描述 | -| ------------------- | ----------------------------- | -------------------------- | -| `min_time` | `2_000` | 显示此组件所需的最短执行时长(单位:毫秒)。 | -| `show_milliseconds` | `false` | 除了秒数外在执行时长中额外显示毫秒。 | -| `format` | `"took [$duration]($style) "` | The format for the module. | -| `style` | `"bold yellow"` | 此组件的样式。 | -| `disabled` | `false` | 禁用 `cmd_duration` 组件。 | +| Option | 默认值 | 描述 | +| ------------------- | ----------------------------- | ---------------------- | +| `min_time` | `2_000` | 显示此组件所需的最短执行时长(单位:毫秒)。 | +| `show_milliseconds` | `false` | 除了秒数外在执行时长中额外显示毫秒。 | +| `format` | `"took [$duration]($style) "` | 组件格式化模板。 | +| `style` | `"bold yellow"` | 此组件的样式。 | +| `disabled` | `false` | 禁用 `cmd_duration` 组件。 | ### Variables | 字段 | 示例 | 描述 | | --------- | -------- | --------------------------------------- | | duration | `16m40s` | The time it took to execute the command | -| style\* | | Mirrors the value of option `style` | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -492,11 +492,11 @@ format = "underwent [$duration](bold yellow)" ## Conda -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +`conda` 组件在 `$CONDA_DEFAULT_ENV` 被设置时显示当前 conda 环境。 ::: tip -This does not suppress conda's own prompt modifier, you may want to run `conda config --set changeps1 False`. +此组件没有禁用 conda 自带的提示符修改,您可能需要执行 `conda config --set changeps1 False`。 ::: @@ -507,17 +507,17 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | `truncation_length` | `1` | 如果这个 conda 环境是通过 `conda create -p [path]` 创建的,环境路径的目录深度应该被截断到此数量。 `0` 表示不用截断。 另请参阅 [`directory`](#directory) 组件。 | | `symbol` | `"🅒 "` | 在环境名之前显示的符号。 | | `style` | `"bold green"` | 此组件的样式。 | -| `format` | `"[$symbol$environment]($style) "` | The format for the module. | +| `format` | `"[$symbol$environment]($style) "` | 组件格式化模板。 | | `ignore_base` | `true` | Ignores `base` environment when activated. | -| `disabled` | `false` | Disables the `conda` module. | +| `disabled` | `false` | 禁用 `conda` 组件。 | ### Variables -| 字段 | 示例 | 描述 | -| ----------- | ------------ | ------------------------------------ | -| environment | `astronauts` | The current conda environment | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| ----------- | ------------ | ----------------------------- | +| environment | `astronauts` | The current conda environment | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -543,16 +543,16 @@ The `crystal` module shows the currently installed version of Crystal. 此组件 | ---------- | ---------------------------------- | --------------------------------------------------------- | | `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. | | `style` | `"bold red"` | 此组件的样式。 | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `disabled` | `false` | Disables the `crystal` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | --------- | ------------------------------------ | -| version | `v0.32.1` | The version of `crystal` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | --------- | ------------------------ | +| version | `v0.32.1` | The version of `crystal` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -577,18 +577,18 @@ The `dart` module shows the currently installed version of Dart. 此组件将在 | 字段 | 默认值 | 描述 | | ---------- | ---------------------------------- | ----------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `symbol` | `"🎯 "` | A format string representing the symbol of Dart | | `style` | `"bold blue"` | 此组件的样式。 | | `disabled` | `false` | Disables the `dart` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | -------- | ------------------------------------ | -| version | `v2.8.4` | The version of `dart` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | -------- | --------------------- | +| version | `v2.8.4` | The version of `dart` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -603,32 +603,32 @@ format = "via [🔰 $version](bold red) " ## Directory -The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. +`directory` 组件显示当前目录的路径,显示的路径会截断到三个父目录以内。 如果您处于一个 git 仓库中,显示的路径则最多会截断到该仓库的根目录。 -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +当使用 fish 风格的当前目录显示样式时,您会看到基于您的设置的每个上级目录的短名称,而不是隐藏被截断的上级目录。 -For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. +例如,对于 `~/Dev/Nix/nixpkgs/pkgs`,其中 `nixpkgs` 是 git 仓库根目录,fish 风格相关选项设置为 `1`。 您将会看到 `~/D/N/nixpkgs/pkgs`,而在设置 fish 风格之前,当前路径将显示成 `nixpkgs/pkgs`。 ### 配置项 -| 字段 | 默认值 | 描述 | -| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- | -| `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)[$lock_symbol]($lock_style) "` | The format for the module. | -| `style` | `"bold cyan"` | 此组件的样式。 | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| 字段 | 默认值 | 描述 | +| ------------------- | -------------------------------------------------- | ----------------------------------------------------- | +| `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. |
-This module has a few advanced configuration options that control how the directory is displayed. +此组件有几个高级配置选项来控制当前目录路径的显示方式。 -| Advanced Option | 默认值 | 描述 | -| --------------------------- | ------ | ---------------------------------------------------------------------------------------- | -| `substitutions` | | A table of substitutions to be made to the path. | -| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. | -| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. | +| Advanced Option | 默认值 | 描述 | +| --------------------------- | ------ | ------------------------------------------------ | +| `substitutions` | | A table of substitutions to be made to the path. | +| `fish_style_pwd_dir_length` | `0` | 使用 fish shell 当前目录路径逻辑时每个省略目录名使用的字符数。 | +| `use_logical_path` | `true` | 显示由 shell 提供的逻辑路径(`PWD`)而不是 OS 提供的路径。 | `substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD. @@ -644,10 +644,10 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an ### Variables -| 字段 | 示例 | 描述 | -| --------- | --------------------- | ----------------------------------- | -| path | `"D:/Projects"` | The current directory path | -| style\* | `"black bold dimmed"` | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | --------------------- | -------------------------- | +| path | `"D:/Projects"` | The current directory path | +| style\* | `"black bold dimmed"` | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -668,7 +668,7 @@ The `docker_context` module shows the currently active [Docker context](https:// | Option | 默认值 | 描述 | | ----------------- | ---------------------------------- | --------------------------------------------------------------------------------------- | -| `format` | `"via [$symbol$context]($style) "` | The format for the module. | +| `format` | `"via [$symbol$context]($style) "` | 组件格式化模板。 | | `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. | | `style` | `"blue bold"` | 此组件的样式。 | | `only_with_files` | `false` | Only show when there's a `docker-compose.yml` or `Dockerfile` in the current directory. | @@ -676,11 +676,11 @@ The `docker_context` module shows the currently active [Docker context](https:// ### Variables -| 字段 | 示例 | 描述 | -| --------- | -------------- | ------------------------------------ | -| context | `test_context` | The current docker context | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | -------------- | -------------------------- | +| context | `test_context` | The current docker context | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -695,7 +695,7 @@ format = "via [🐋 $context](blue bold)" ## Dotnet -The `dotnet` module shows the relevant version of the .NET Core SDK for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK. +`dotnet` 模块显示与当前目录下使用的 .NET Core SDK 相关联的版本。 如果当前目录已被绑定了一个版本的 SDK,则显示被帮定的版本。 否则此组件将显示最新安装的 SDK 版本。 This module will only be shown in your prompt when one or more of the following files are present in the current directory: @@ -711,19 +711,19 @@ This module will only be shown in your prompt when one or more of the following You'll also need the .NET Core SDK installed in order to use it correctly. -Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options. +在内部,此组件使用自己的版本检测机制。 一般来说此组件是直接执行 `dotnet --version` 的两倍快,但当你的 .NET 项目使用了不常见的目录布局时此组件可能显示一个错误的版本。 如果相比于速度您更需要正确的版本号,您可以在组件设置中设置 `heuristic = false` 来禁用该机制。 The module will also show the Target Framework Moniker () when there is a csproj file in the current directory. ### 配置项 -| Option | 默认值 | 描述 | -| ----------- | ---------------------------------------- | -------------------------------------------------------- | -| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | The format for the module. | -| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. | -| `heuristic` | `true` | Use faster version detection to keep starship snappy. | -| `style` | `"bold blue"` | 此组件的样式。 | -| `disabled` | `false` | Disables the `dotnet` module. | +| Option | 默认值 | 描述 | +| ----------- | ---------------------------------------- | ------------------------------ | +| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | 组件格式化模板。 | +| `symbol` | `"•NET "` | 这个字段的内容会显示在当前 .NET 版本之前。 | +| `heuristic` | `true` | 使用更快的版本探测机制以保证 starship 的运行速度。 | +| `style` | `"bold blue"` | 此组件的样式。 | +| `disabled` | `false` | 禁用 `dotnet` 组件。 | ### Variables @@ -731,8 +731,8 @@ The module will also show the Target Framework Moniker ( -This module has some advanced configuration options. +这个组件存在一些高级配置选项。 -| 字段 | 默认值 | 描述 | -| --------------- | -------- | ----------------------------------------------------------------------------- | -| `python_binary` | `python` | Configures the python binary that Starship executes when getting the version. | +| 字段 | 默认值 | 描述 | +| --------------- | -------- | ------------------------------ | +| `python_binary` | `python` | 配置在Starship运行时获取Python版本的二进制文件 | -The `python_binary` variable changes the binary that Starship executes to get the version of Python, it doesn't change the arguments that are used. +`python_binary`变量更改Starship执行的二进制文件以获得 Python版本,它没有改变使用的参数。 ```toml # ~/.config/starship.toml @@ -1847,28 +1848,28 @@ pyenv_version_name = true ## Ruby -The `ruby` module shows the currently installed version of Ruby. 此组件将在符合以下任意条件之一时显示: +`ruby` 组件显示当前安装的 Ruby 版本。 此组件将在符合以下任意条件之一时显示: -- The current directory contains a `Gemfile` file +- 当前目录包含 `Gemfile` 文件 - The current directory contains a `.ruby-version` file -- The current directory contains a `.rb` file +- 当前目录包含 `.rb` 文件 ### 配置项 | Option | 默认值 | 描述 | | ---------- | ---------------------------------- | ------------------------------------------------ | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `symbol` | `"💎 "` | A format string representing the symbol of Ruby. | | `style` | `"bold red"` | 此组件的样式。 | -| `disabled` | `false` | Disables the `ruby` module. | +| `disabled` | `false` | 禁用 `ruby` 组件。 | ### Variables -| 字段 | 示例 | 描述 | -| --------- | -------- | ------------------------------------ | -| version | `v2.5.1` | The version of `ruby` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | -------- | --------------------- | +| version | `v2.5.1` | The version of `ruby` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -1883,27 +1884,27 @@ symbol = "🔺 " ## Rust -The `rust` module shows the currently installed version of Rust. 此组件将在符合以下任意条件之一时显示: +`rust` 组件显示当前安装的 Rust 版本。 此组件将在符合以下任意条件之一时显示: -- The current directory contains a `Cargo.toml` file -- The current directory contains a file with the `.rs` extension +- 当前目录包含 `Cargo.toml` 文件 +- 当前目录包含一个使用 `.rs` 扩展名的文件 ### 配置项 | Option | 默认值 | 描述 | | ---------- | ---------------------------------- | ----------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `symbol` | `"🦀 "` | A format string representing the symbol of Rust | | `style` | `"bold red"` | 此组件的样式。 | -| `disabled` | `false` | Disables the `rust` module. | +| `disabled` | `false` | 禁用 `rust` 组件。 | ### Variables -| 字段 | 示例 | 描述 | -| --------- | ----------------- | ------------------------------------ | -| version | `v1.43.0-nightly` | The version of `rustc` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | ----------------- | ---------------------- | +| version | `v1.43.0-nightly` | The version of `rustc` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -1925,18 +1926,18 @@ The `shlvl` module shows the current SHLVL ("shell level") environment variable, | 字段 | 默认值 | 描述 | | ----------- | ---------------------------- | --------------------------------------- | | `threshold` | `2` | Display threshold. | -| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. | +| `format` | `"[$symbol$shlvl]($style) "` | 组件格式化模板。 | | `symbol` | `"↕️ "` | The symbol used to represent the SHLVL. | | `style` | `"bold yellow"` | 此组件的样式。 | | `disabled` | `true` | Disables the `shlvl` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | --- | ------------------------------------ | -| shlvl | `3` | The current value of SHLVL | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | --- | -------------------------- | +| shlvl | `3` | The current value of SHLVL | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -1959,18 +1960,18 @@ The `singularity` module shows the current singularity image, if inside a contai | Option | 默认值 | 描述 | | ---------- | ------------------------------------ | ------------------------------------------------ | -| `format` | `"[$symbol\\[$env\\]]($style) "` | The format for the module. | +| `format` | `"[$symbol\\[$env\\]]($style) "` | 组件格式化模板。 | | `symbol` | `""` | A format string displayed before the image name. | | `style` | `"bold dimmed blue"` | 此组件的样式。 | | `disabled` | `false` | Disables the `singularity` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | ------------ | ------------------------------------ | -| env | `centos.img` | The current singularity image | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | ------------ | ----------------------------- | +| env | `centos.img` | The current singularity image | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -1994,18 +1995,18 @@ The `swift` module shows the currently installed version of Swift. 此组件将 | Option | 默认值 | 描述 | | ---------- | ---------------------------------- | ------------------------------------------------ | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `symbol` | `"🐦 "` | A format string representing the symbol of Swift | | `style` | `"bold 202"` | 此组件的样式。 | | `disabled` | `false` | Disables the `swift` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | -------- | ------------------------------------ | -| version | `v5.2.4` | The version of `swift` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | -------- | ---------------------- | +| version | `v5.2.4` | The version of `swift` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -2024,7 +2025,7 @@ The `status` module displays the exit code of the previous command. The module w ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. ::: +此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。 ::: ### 配置项 @@ -2035,19 +2036,18 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | 此组件的样式。 | | `disabled` | `true` | Disables the `status` module. | - ### Variables -| 字段 | 示例 | 描述 | -| --------- | ----- | ------------------------------------ | -| status | `127` | The exit code of the last command | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | ----- | --------------------------------- | +| status | `127` | The exit code of the last command | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string - ### 示例 + ```toml # ~/.config/starship.toml @@ -2062,10 +2062,10 @@ disabled = false ## Terraform -The `terraform` module shows the currently selected terraform workspace and version. By default the terraform version is not shown, since this is slow on 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-version). 此组件将在符合以下任意条件之一时显示: +`terraform` 组件显示当前选定的 terraform 工作区和版本。 默认情况下不会显示 terraform 版本,因为当使用大量插件时,当前版本 terraform 查询版本号很慢。 If you still want to enable it, [follow the example shown below](#with-version). 此组件将在符合以下任意条件之一时显示: -- The current directory contains a `.terraform` folder -- Current directory contains a file with the `.tf` extension +- 当前目录包含 `.terraform` 目录 +- 当前目录包含一个使用 `.tf` 扩展名的文件 ### 配置项 @@ -2074,16 +2074,16 @@ The `terraform` module shows the currently selected terraform workspace and vers | `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. | | `symbol` | `"💠 "` | A format string shown before the terraform workspace. | | `style` | `"bold 105"` | 此组件的样式。 | -| `disabled` | `false` | Disables the `terraform` module. | +| `disabled` | `false` | 禁用 `terraform` 组件。 | ### Variables -| 字段 | 示例 | 描述 | -| --------- | ---------- | ------------------------------------ | -| version | `v0.12.24` | The version of `terraform` | -| workspace | `default` | The current terraform workspace | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | ---------- | ------------------------------- | +| version | `v0.12.24` | The version of `terraform` | +| workspace | `default` | The current terraform workspace | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -2109,34 +2109,34 @@ format = "[🏎💨 $workspace]($style) " ## Time -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. +`time` 组件显示当前的 **本地** 时间。 `format` 字段值会提供给 [`chrono`](https://crates.io/crates/chrono) crate 用来控制时间显示方式。 请参阅 [chrono strftime 文档](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) 以了解可用格式选项。 ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +此组件默认被禁用。 若要启用此组件,请在配置文件中设置 `disable` 字段为 `false`。 ::: ### 配置项 -| Option | 默认值 | 描述 | -| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `format` | `"at [$time]($style) "` | The format string for the module. | -| `use_12hr` | `false` | Enables 12 hour formatting | -| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. | -| `style` | `"bold yellow"` | The style for the module time | -| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | -| `disabled` | `true` | Disables the `time` module. | -| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | +| Option | 默认值 | 描述 | +| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- | +| `format` | `"at [$time]($style) "` | The format string for the module. | +| `use_12hr` | `false` | 启用 12 小时格式 | +| `time_format` | 见下文解释 | 用来格式化时间显示的 [chrono 格式字符串](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) | +| `style` | `"bold yellow"` | 显示时间的样式。 | +| `utc_time_offset` | `"local"` | 设置所用 UTC 偏移量。 Range from -24 < x < 24. 允许使用浮点数来得到 30/45 分钟的时区偏移。 | +| `disabled` | `true` | 禁用 `time` 组件。 | +| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | -If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting. +If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. 否则,其默认值为 `"%T"`。 Manually setting `time_format` will override the `use_12hr` setting. ### Variables -| 字段 | 示例 | 描述 | -| --------- | ---------- | ----------------------------------- | -| time | `13:08:10` | The current time. | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | ---------- | ----------------- | +| time | `13:08:10` | The current time. | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -2155,22 +2155,22 @@ time_range = "10:00:00-14:00:00" ## Username -The `username` module shows active user's username. 此组件将在符合以下任意条件之一时显示: +`username` 组件显示当前活跃的用户名。 此组件将在符合以下任意条件之一时显示: -- 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 +- 当前用户是 root +- 当前用户与登录用户不相同 +- 用户正通过 SSH 会话连接访问 +- 字段 `show_always` 被设置为 true ### 配置项 -| Option | 默认值 | 描述 | -| ------------- | ----------------------- | ------------------------------------- | -| `style_root` | `"bold red"` | The style used when the user is root. | -| `style_user` | `"bold yellow"` | The style used for non-root users. | -| `format` | `"[$user]($style) in "` | The format for the module. | -| `show_always` | `false` | Always shows the `username` module. | -| `disabled` | `false` | Disables the `username` module. | +| Option | 默认值 | 描述 | +| ------------- | ----------------------- | ------------------- | +| `style_root` | `"bold red"` | 当前用户为 root 时使用的样式。 | +| `style_user` | `"bold yellow"` | 非 root 用户使用的样式。 | +| `format` | `"[$user]($style) in "` | 组件格式化模板。 | +| `show_always` | `false` | 总是显示 `username` 组件。 | +| `disabled` | `false` | 禁用 `username` 组件。 | ### Variables @@ -2204,16 +2204,16 @@ The `zig` module shows the currently installed version of Zig. 此组件将在 | ---------- | ---------------------------------- | ----------------------------------------------------- | | `symbol` | `"↯ "` | The symbol used before displaying the version of Zig. | | `style` | `"bold yellow"` | 此组件的样式。 | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `disabled` | `false` | Disables the `zig` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | -------- | ------------------------------------ | -| version | `v0.6.0` | The version of `zig` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | -------- | -------------------- | +| version | `v0.6.0` | The version of `zig` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -2262,13 +2262,13 @@ The order in which custom modules are shown can be individually set by including | `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | | `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | | `shell` | | [See below](#custom-command-shell) | -| `description` | `""` | The description of the module that is shown when running `starship explain`. | +| `描述` | `""` | The description of the module that is shown when running `starship explain`. | | `files` | `[]` | The files that will be searched in the working directory for a match. | | `directories` | `[]` | The directories that will be searched in the working directory for a match. | | `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | | `symbol` | `""` | The symbol used before displaying the command output. | | `style` | `"bold green"` | 此组件的样式。 | -| `format` | `"[$symbol$output]($style) "` | The format for the module. | +| `format` | `"[$symbol$output]($style) "` | 组件格式化模板。 | | `disabled` | `false` | Disables this `custom` module. | ### Variables @@ -2276,8 +2276,8 @@ The order in which custom modules are shown can be individually set by including | 字段 | 描述 | | --------- | -------------------------------------- | | output | The output of shell command in `shell` | -| symbol | Mirrors the value of option `symbol` | -| style\* | Mirrors the value of option `style` | +| symbol | `symbol`对应值 | +| style\* | `style`对应值 | \*: This variable can only be used as a part of a style string @@ -2331,25 +2331,25 @@ shell = ["pwsh.exe", "-NoProfile", "-Command", "-"] The `purescript` module shows the currently installed version of PureScript version. 此组件将在符合以下任意条件之一时显示: -- The current directory contains a `spago.dhall` file +- 当前目录包含一个 `spago.dhall` 文件 - The current directory contains a \*.purs files ### 配置项 | Option | 默认值 | 描述 | | ---------- | ---------------------------------- | ------------------------------------------------------------ | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `format` | `"via [$symbol$version]($style) "` | 组件格式化模板。 | | `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. | | `style` | `"bold white"` | 此组件的样式。 | | `disabled` | `false` | Disables the `purescript` module. | ### Variables -| 字段 | 示例 | 描述 | -| --------- | -------- | ------------------------------------ | -| version | `0.13.5` | The version of `purescript` | -| symbol | | Mirrors the value of option `symbol` | -| style\* | | Mirrors the value of option `style` | +| 字段 | 示例 | 描述 | +| --------- | -------- | --------------------------- | +| version | `0.13.5` | The version of `purescript` | +| symbol | | `symbol`对应值 | +| style\* | | `style`对应值 | \*: This variable can only be used as a part of a style string diff --git a/docs/zh-CN/migrating-to-0.45.0/README.md b/docs/zh-CN/migrating-to-0.45.0/README.md index 015af64f..e1c80b48 100644 --- a/docs/zh-CN/migrating-to-0.45.0/README.md +++ b/docs/zh-CN/migrating-to-0.45.0/README.md @@ -134,7 +134,7 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` #### Environment Variable diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md index f418ddfc..5bf9eaf7 100644 --- a/docs/zh-TW/config/README.md +++ b/docs/zh-TW/config/README.md @@ -1,12 +1,12 @@ # 設定 -To get started configuring starship, create the following file: `~/.config/starship.toml`. +為了開始設定 Starship,請建立下右檔案: `~/.config/starship.toml`. ```sh mkdir -p ~/.config && touch ~/.config/starship.toml ``` -All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: +所有關於 Starship 的設定都在這個 [TOML](https://github.com/toml-lang/toml) 檔案內: ```toml # Don't print a new line at the start of the prompt @@ -21,7 +21,7 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being disabled = true ``` -You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable: +你可以藉由修改 `STARSHIP_CONFIG`環境變數而改變預設的`starship.toml` 檔案位置 ```sh export STARSHIP_CONFIG=~/.starship @@ -47,9 +47,9 @@ Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE $ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp" ``` -### Terminology +### 術語 -**Module**: A component in the prompt giving information based on contextual information from your OS. For example, the "nodejs" module shows the version of NodeJS that is currently installed on your computer, if your current directory is a NodeJS project. +**模組 (Module)**: 提示字元中的一個元件,基於你的作業系統提供的背景資訊來提供訊息。 舉例來說,如果你現在的資料夾是一個 NodeJS 專案,"nodejs" 模組會顯示出現在安裝在你的電腦上的 NodeJS 版本。 **Variable**: Smaller sub-components that contains information provided by the module. For example, the "version" variable in the "nodejs" module contains the current version of NodeJS. @@ -85,7 +85,7 @@ For example: #### 風格字串 -Most modules in starship allow you to configure their display styles. This is done with an entry (usually called `style`) which is a string specifying the configuration. Here are some examples of style strings along with what they do. For details on the full syntax, consult the [advanced config guide](/advanced-config/). +Starship 內大多數的模組允許你設定他們的顯示風格。 這要透過一個條目 (通常叫做 `style`),這個條目使用一個字串來進行設定。 這裡給幾個風格字串的例子,以及這些字串的功用。 對於完整語法的詳細說明,請參照 [進階設定指南](/advanced-config/)。 - `"fg:green bg:blue"` 在一個藍色背景上設定綠色文字 - `"bg:blue fg:bright-green"` 在一個藍色背景上設定亮綠色文字 @@ -94,7 +94,7 @@ Most modules in starship allow you to configure their display styles. This is do - `"bold italic fg:purple"` 設定粗體、斜體且紫色的文字 - `""` 明確地關閉所有風格 -Note that what styling looks like will be controlled by your terminal emulator. For example, some terminal emulators will brighten the colors instead of bolding text, and some color themes use the same values for the normal and bright colors. Also, to get italic text, your terminal must support italics. +注意風格產出的樣子取決於你的終端機模擬器。 例如,有些終端機模擬器會提升顏色的亮度而不是讓文字變粗體,而且有些色彩主題對一般與加亮顏色使用的是相同色碼。 除此之外,為了要有斜體字,你的終端機一定要支援斜體。 #### Conditional Format Strings @@ -138,7 +138,7 @@ format = ''' ## 提示字元 -This is the list of prompt-wide configuration options. +以下是針對提示字元內容的設定。 ### 選項 @@ -146,7 +146,7 @@ This is the list of prompt-wide configuration options. | -------------- | ---------------------------- | ----------------------------------------------------- | | `format` | [連結](#default-prompt-format) | Configure the format of the prompt. | | `scan_timeout` | `30` | Timeout for starship to scan files (in milliseconds). | -| `add_newline` | `true` | Add a new line before the start of the prompt. | +| `add_newline` | `true` | 在提示字元前面加上換行字元。 | ### 範例 @@ -168,7 +168,7 @@ add_newline = false ### Default Prompt Format -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. The default is as shown: +The default `format` is used to define the format of the prompt, if empty or no `format` is provided. 預設如下: ```toml format = "$all" @@ -228,9 +228,9 @@ $character""" ## AWS -The `aws` module shows the current AWS region and profile. This is based on `AWS_REGION`, `AWS_DEFAULT_REGION`, and `AWS_PROFILE` env var with `~/.aws/config` file. +`aws` 模組顯示現在 AWS 的區域與概況。 這是根據 `AWS_REGION`、`AWS_DEFAULT_REGION` 與 `AWS_PROFILE` 環境變數及 `~/.aws/config` 檔案。 -When using [aws-vault](https://github.com/99designs/aws-vault) the profile is read from the `AWS_VAULT` env var. +從 `AWS_VAULT`讀取而使用 [aws-vault](https://github.com/99designs/aws-vault) 這個設定檔 ### 選項 @@ -296,7 +296,7 @@ symbol = "🅰 " ## 電池 -The `battery` module shows how charged the device's battery is and its current charging status. The module is only visible when the device's battery is below 10%. +`battery` 模組顯示電池的電量以及現在的充電狀態。 這個模組只會在裝置的電量低於 10% 的時候看見。 ### 選項 @@ -310,14 +310,14 @@ The `battery` module shows how charged the device's battery is and its current c | `disabled` | `false` | 停用 `battery` 模組。 |
-There are also options for some uncommon battery states. +也有些針對不常見的電池狀態設定的選項。 | 變數 | 說明 | | ---------------- | -------------- | | `unknown_symbol` | 當電池狀態不明時顯示的符號。 | | `empty_symbol` | 當電池沒電時顯示的符號。 | -Note: Battery indicator will be hidden if the status is `unknown` or `empty` unless you specify the option in the config. +注意:電池指示會在電池狀態`不明`或`沒電`時隱藏起來,除非你在設定之中有特別指定選項。
@@ -332,9 +332,9 @@ charging_symbol = "⚡️" discharging_symbol = "💀" ``` -### Battery Display +### 電池顯示 -The `display` configuration option is used to define when the battery indicator should be shown (threshold) and what it looks like (style). If no `display` is provided. The default is as shown: +`display` 設定是用來定義甚麼時候電池指示會顯示出來 (threshold),以及它長甚麼樣子 (style)。 如果沒有提供 `display`。 預設如下: ```toml [[battery.display]] @@ -344,7 +344,7 @@ style = "bold red" #### 選項 -The `display` option is an array of the following table. +`display` 選項是一個下列表格的陣列。 | 變數 | 說明 | | ----------- | ----------- | @@ -354,23 +354,23 @@ The `display` option is an array of the following table. #### 範例 ```toml -[[battery.display]] # "bold red" style when capacity is between 0% and 10% +[[battery.display]] # 0% 到 10% 電量之間時,使用 "bold red" 風格 threshold = 10 style = "bold red" -[[battery.display]] # "bold yellow" style when capacity is between 10% and 30% +[[battery.display]] # 10% 到 30% 電量之間時,使用 "bold yellow" 風格 threshold = 30 style = "bold yellow" -# when capacity is over 30%, the battery indicator will not be displayed +# 當電量超過 30% 時,電量指示就不會顯示出來 ``` ## 字元 -The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. +`character` 模組在你的文字輸入處旁顯示一個字元 (通常是箭頭)。 -The character will tell you whether the last command was successful or not. It can do this in two ways: +這個字元會告訴你最後的指令是成功還是失敗。 It can do this in two ways: - changing color (`red`/`green`) - changing shape (`❯`/`✖`) @@ -451,15 +451,15 @@ The `cmake` module shows the currently installed version of CMake if: ## 指令持續時間 -The `cmd_duration` module shows how long the last command took to execute. The module will be shown only if the command took longer than two seconds, or the `min_time` config value, if it exists. +`cmd_duration` 模組顯示最後一個指令執行所花費的時間。 這個模組只會在指令花費超過兩秒或是有設定 `min_time` 時,超過設定值時出現。 -::: warning Do not hook the DEBUG trap in Bash +::: warning 不要在 Bash 中設置 DEBUG trap -If you are running Starship in `bash`, do not hook the `DEBUG` trap after running `eval $(starship init $0)`, or this module **will** break. +如果你在 `bash` 中使用 Starship,不要在執行 `eval $(starship init $0)` 之後設置 `DEBUG` trap,不然這個模組**會**壞掉。 ::: -Bash users who need preexec-like functionality can use [rcaloras's bash_preexec framework](https://github.com/rcaloras/bash-preexec). Simply define the arrays `preexec_functions` and `precmd_functions` before running `eval $(starship init $0)`, and then proceed as normal. +想使用類似 preexec 功能的 Bash 使用者可以 [rcaloras 的 bash_preexec 框架](https://github.com/rcaloras/bash-preexec)。 只要在 `eval $(starship init $0)` 之前簡單地定義 `preexec_functions` 與 `precmd_functions` 兩個陣列,然後就可以照常進行。 ### 選項 @@ -492,7 +492,7 @@ format = "underwent [$duration](bold yellow)" ## Conda -The `conda` module shows the current conda environment, if `$CONDA_DEFAULT_ENV` is set. +如果有設定 `$CONDA_DEFAULT_ENV` 時,`conda` 模組顯示現在 conda 的環境。 ::: tip @@ -509,7 +509,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | `style` | `"bold green"` | 這個模組的風格。 | | `format` | `"[$symbol$environment]($style) "` | The format for the module. | | `ignore_base` | `true` | Ignores `base` environment when activated. | -| `disabled` | `false` | Disables the `conda` module. | +| `disabled` | `false` | 停用 `conda` 模組。 | ### Variables @@ -532,7 +532,7 @@ format = "[$symbol$environment](dimmed green) " ## Crystal -The `crystal` module shows the currently installed version of Crystal. 這個模組在下列其中一個條件達成時顯示: +`crystal` 模組顯示現在所安裝的Crystal版本 這個模組在下列其中一個條件達成時顯示: - 現在資料夾中含有一個 `shard.yml` 檔案 - 現在資料夾中含有一個`.cr`檔案 @@ -601,34 +601,34 @@ The `dart` module shows the currently installed version of Dart. 這個模組在 format = "via [🔰 $version](bold red) " ``` -## Directory +## 資料夾 -The `directory` module shows the path to your current directory, truncated to three parent folders. Your directory will also be truncated to the root of the git repo that you're currently in. +`directory` 模組顯示到現在資料夾的路徑,並裁減到前三層資料夾。 你的資料夾也會被裁減到你所在的 git 儲存庫的根目錄。 -When using the fish style pwd option, instead of hiding the path that is truncated, you will see a shortened name of each directory based on the number you enable for the option. +如果正在使用 fish 風格的 pwd 選項,將不會隱藏被裁減的資料夾,而是會根據你在選項中設定的數字看到每一層資料夾的縮寫。 -For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, and the option set to `1`. You will now see `~/D/N/nixpkgs/pkgs`, whereas before it would have been `nixpkgs/pkgs`. +例如,給定一個右列的路徑 `~/Dev/Nix/nixpkgs/pkgs` 其中 `nixpkgs` 是儲存庫的根目錄,而且該選項被設定為 `1`。 你會看到 `~/D/N/nixpkgs/pkgs`,而在這個設定之前則是 `nixpkgs/pkgs`。 ### 選項 -| 變數 | 預設 | 說明 | -| ------------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------- | -| `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)[$lock_symbol]($lock_style) "` | The format for the module. | -| `style` | `"bold cyan"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `directory` module. | -| `read_only_symbol` | `"🔒"` | The symbol indicating current directory is read only. | -| `read_only_symbol_style` | `"red"` | The style for the read only symbol. | +| 變數 | 預設 | 說明 | +| ------------------- | -------------------------------------------------- | ----------------------------------------------------- | +| `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. |
-This module has a few advanced configuration options that control how the directory is displayed. +這個模組有些進階設定選項可以控制顯示資料夾。 -| Advanced Option | 預設 | 說明 | -| --------------------------- | ------ | ---------------------------------------------------------------------------------------- | -| `substitutions` | | A table of substitutions to be made to the path. | -| `fish_style_pwd_dir_length` | `0` | The number of characters to use when applying fish shell pwd path logic. | -| `use_logical_path` | `true` | Displays the logical path provided by the shell (`PWD`) instead of the path from the OS. | +| Advanced Option | 預設 | 說明 | +| --------------------------- | ------ | ------------------------------------------------ | +| `substitutions` | | A table of substitutions to be made to the path. | +| `fish_style_pwd_dir_length` | `0` | 當使用 fish shell 的 pwd 路徑邏輯時使用的字元數量。 | +| `use_logical_path` | `true` | 顯示 shell (`PWD`) 提供的邏輯路徑,而不是 OS 的路徑。 | `substitutions` allows you to define arbitrary replacements for literal strings that occur in the path, for example long network prefixes or development directories (i.e. Java). Note that this will disable the fish style PWD. @@ -695,7 +695,7 @@ format = "via [🐋 $context](blue bold)" ## Dotnet -The `dotnet` module shows the relevant version of the .NET Core SDK for the current directory. If the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module shows the latest installed version of the SDK. +`dotnet` 模組顯示現在資料夾使用的 .NET Core SDK 的版本。 如果這個資料夾已經選定一個 SDK,則顯示這個 SDK 的版本。 如果沒有的話,則顯示最新安裝的 SDK 版本。 This module will only be shown in your prompt when one or more of the following files are present in the current directory: @@ -711,19 +711,19 @@ This module will only be shown in your prompt when one or more of the following You'll also need the .NET Core SDK installed in order to use it correctly. -Internally, this module uses its own mechanism for version detection. Typically it is twice as fast as running `dotnet --version`, but it may show an incorrect version if your .NET project has an unusual directory layout. If accuracy is more important than speed, you can disable the mechanism by setting `heuristic = false` in the module options. +這個模組內部是使用它自己的機制來偵測版本。 一般來說這個模組有 `dotnet --version` 的兩倍快,但是它可能會在你的 .NET 專案有不尋常的資料夾結構時顯示不正確的版本。 如果精確度比速度更重要的話,你可以藉由設定模組中的 `heuristic = false` 選項來停用這個功能。 The module will also show the Target Framework Moniker () when there is a csproj file in the current directory. ### 選項 -| Option | 預設 | 說明 | -| ----------- | ---------------------------------------- | -------------------------------------------------------- | -| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | The format for the module. | -| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. | -| `heuristic` | `true` | Use faster version detection to keep starship snappy. | -| `style` | `"bold blue"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `dotnet` module. | +| Option | 預設 | 說明 | +| ----------- | ---------------------------------------- | ---------------------------- | +| `format` | `"v[$symbol$version( 🎯 $tfm)]($style) "` | The format for the module. | +| `symbol` | `"•NET "` | 在顯示 dotnet 版本之前用的符號。 | +| `heuristic` | `true` | 使用更快速的版本偵測法來保持 starship 的速度。 | +| `style` | `"bold blue"` | 這個模組的風格。 | +| `disabled` | `false` | 停用 `dotnet` 模組。 | ### Variables @@ -751,7 +751,7 @@ heuristic = false The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `mix.exs` file. +- 現在資料夾中包含一個 `mix.exs` 檔案. ### 選項 @@ -786,8 +786,8 @@ symbol = "🔮 " The `elm` module shows the currently installed version of Elm. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `elm.json` file -- The current directory contains a `elm-package.json` file +- 現在資料夾中包含一個 `elm.json` 檔案 +- 現在資料夾中包含一個 `elm-package.json` 檔案 - The current directory contains a `.elm-version` file - The current directory contains a `elm-stuff` folder - The current directory contains a `*.elm` files @@ -820,22 +820,22 @@ The `elm` module shows the currently installed version of Elm. 這個模組在 format = "via [ $version](cyan bold) " ``` -## Environment Variable +## 環境變數 -The `env_var` module displays the current value of a selected environment variable. The module will be shown only if any of the following conditions are met: +`env_var`模組顯示一個選擇的環境變數的現在數值。 這個模組只在下列條件其中之一達到時顯示: -- The `variable` configuration option matches an existing environment variable -- The `variable` configuration option is not defined, but the `default` configuration option is +- `variable` 設定選項符合一個存在的環境變數。 +- 沒有設定 `variable` 選項,但是有設定 `default` 選項。 ### 選項 -| Option | 預設 | 說明 | -| ---------- | ------------------------------ | ---------------------------------------------------------------------------- | -| `symbol` | | The symbol used before displaying the variable value. | -| `variable` | | The environment variable to be displayed. | -| `default` | | The default value to be displayed when the selected variable is not defined. | -| `format` | `"with [$env_value]($style) "` | The format for the module. | -| `disabled` | `false` | Disables the `env_var` module. | +| Option | 預設 | 說明 | +| ---------- | ------------------------------ | -------------------------- | +| `symbol` | | 顯示在變數數值之前的符號。 | +| `variable` | | 要顯示的環境變數。 | +| `default` | | 在選擇的變數值沒有定義時,顯示的預設值。 | +| `format` | `"with [$env_value]($style) "` | The format for the module. | +| `disabled` | `false` | 停用 `env_var` 模組。 | ### Variables @@ -861,8 +861,8 @@ default = "unknown shell" The `erlang` module shows the currently installed version of Erlang/OTP. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `rebar.config` file. -- The current directory contains a `erlang.mk` file. +- 現在資料夾中包含一個 `rebar.config` 檔案. +- 現在資料夾中包含一個 `erlang.mk` 檔案. ### 選項 @@ -952,20 +952,20 @@ us-central1 = "uc1" asia-northeast1 = "an1" ``` -## Git Branch +## Git 分支 -The `git_branch` module shows the active branch of the repo in your current directory. +`git_branch` 模組顯示現在的資料夾中使用中的儲存庫的分支。 ### 選項 -| Option | 預設 | 說明 | -| ------------------- | -------------------------------- | ---------------------------------------------------------------------------------------- | -| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. | -| `symbol` | `" "` | A format string representing the symbol of git branch. | -| `style` | `"bold purple"` | 這個模組的風格。 | -| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. | -| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. You can use `""` for no symbol. | -| `disabled` | `false` | Disables the `git_branch` module. | +| Option | 預設 | 說明 | +| ------------------- | -------------------------------- | ------------------------------------------------------------------------------- | +| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. | +| `symbol` | `" "` | A format string representing the symbol of git branch. | +| `style` | `"bold purple"` | 這個模組的風格。 | +| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. | +| `truncation_symbol` | `"…"` | 用來指示分支名稱被縮減的符號。 You can use `""` for no symbol. | +| `disabled` | `false` | 停用 `git_branch` 模組。 | ### Variables @@ -1022,7 +1022,7 @@ commit_hash_length = 4 ## 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. +`git_state` 模組會顯示在 git 儲存庫中的資料夾內,以及會在有作業正在進行時顯示,像是:_REBASING_、_BISECTING_ 等等。 如果有進展的資訊 (像是 REBASING 3/10),也會一併顯示出來。 ### 選項 @@ -1037,7 +1037,7 @@ The `git_state` module will show in directories which are part of a git reposito | `am_or_rebase` | `"AM/REBASE"` | A format string displayed when an ambiguous `apply-mailbox` or `rebase` is in progress. | | `style` | `"bold yellow"` | 這個模組的風格。 | | `format` | `"\\([$state( $progress_current/$progress_total)]($style)\\) "` | The format for the module. | -| `disabled` | `false` | Disables the `git_state` module. | +| `disabled` | `false` | 停用 `git_state` 模組。 | ### Variables @@ -1062,14 +1062,14 @@ cherry_pick = "[🍒 PICKING](bold red)" ## Git Status -The `git_status` module shows symbols representing the state of the repo in your current directory. +`git_status` 模組顯示用來表示現在資料夾之中儲存庫狀態的符號。 ### 選項 | Option | 預設 | 說明 | | ------------ | --------------------------------------------- | ----------------------------------- | | `format` | `"[\[$all_status$ahead_behind\]]($style) "` | The default format for `git_status` | -| `conflicted` | `"="` | This branch has merge conflicts. | +| `conflicted` | `"="` | 這個分支有合併衝突。 | | `ahead` | `"⇡"` | The format of `ahead` | | `behind` | `"⇣"` | The format of `behind` | | `diverged` | `"⇕"` | The format of `diverged` | @@ -1080,7 +1080,7 @@ The `git_status` module shows symbols representing the state of the repo in your | `renamed` | `"»"` | The format of `renamed` | | `deleted` | `"✘"` | The format of `deleted` | | `style` | `"bold red"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `git_status` module. | +| `disabled` | `false` | 停用 `git_status` 模組。 | ### Variables @@ -1133,6 +1133,7 @@ deleted = "🗑" ``` Show ahead/behind count of the branch being tracked + ```toml # ~/.config/starship.toml @@ -1144,16 +1145,16 @@ behind = "⇣${count}" ## Golang -The `golang` module shows the currently installed version of Golang. 這個模組在下列其中一個條件達成時顯示: +`golang` 模組顯示現在安裝的 Golang 版本。 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `go.mod` file -- The current directory contains a `go.sum` file -- The current directory contains a `glide.yaml` file -- The current directory contains a `Gopkg.yml` file -- The current directory contains a `Gopkg.lock` file +- 現在資料夾中含有一個 `go.mod` 檔案 +- 現在資料夾中含有一個 `go.sum` 檔案 +- 現在資料夾中含有一個 `glide.yaml` 檔案 +- 現在資料夾中含有一個 `Gopkg.yml` 檔案 +- 現在資料夾中含有一個 `Gopkg.lock` 檔案 - The current directory contains a `.go-version` file -- The current directory contains a `Godeps` directory -- The current directory contains a file with the `.go` extension +- 現在資料夾中含有一個 `Godeps` 資料夾 +- 現在資料夾中含有一個檔案具有 `.go` 副檔名 ### 選項 @@ -1162,7 +1163,7 @@ The `golang` module shows the currently installed version of Golang. 這個模 | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"🐹 "` | A format string representing the symbol of Go. | | `style` | `"bold cyan"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `golang` module. | +| `disabled` | `false` | 停用 `golang` 模組。 | ### Variables @@ -1187,7 +1188,7 @@ format = "via [🏎💨 $version](bold cyan) " The `helm` module shows the currently installed version of Helm. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `helmfile.yaml` file +- 現在資料夾中包含一個 `helmfile.yaml` 檔案 - The current directory contains a `Chart.yaml` file ### 選項 @@ -1218,19 +1219,19 @@ The `helm` module shows the currently installed version of Helm. 這個模組在 format = "via [⎈ $version](bold white) " ``` -## Hostname +## 主機名稱 -The `hostname` module shows the system hostname. +`hostname` 模組顯示系統的主機名稱。 ### 選項 -| Option | 預設 | 說明 | -| ---------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -| `ssh_only` | `true` | Only show hostname when connected to an SSH session. | -| `trim_at` | `"."` | String that the hostname is cut off at, after the first match. `"."` will stop after the first dot. `""` will disable any truncation | -| `format` | `"[$hostname]($style) in "` | The format for the module. | -| `style` | `"bold dimmed green"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `hostname` module. | +| Option | 預設 | 說明 | +| ---------- | --------------------------- | ---------------------------------------------------------- | +| `ssh_only` | `true` | 只在連接到一個 SSH session 時顯示主機名稱。 | +| `trim_at` | `"."` | 擷取出主機名稱的斷點,以第一個符合的為準。 `"."` 會讓它停在第一個點的符號。 `""` 會停用任何的截斷功能。 | +| `format` | `"[$hostname]($style) in "` | The format for the module. | +| `style` | `"bold dimmed green"` | 這個模組的風格。 | +| `disabled` | `false` | 停用 `hostname` 模組。 | ### Variables @@ -1255,7 +1256,7 @@ disabled = false ## Java -The `java` module shows the currently installed version of Java. 這個模組在下列其中一個條件達成時顯示: +`java` 模組顯示現在安裝的 Java 版本。 這個模組在下列其中一個條件達成時顯示: - The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt` or `.java-version` file - The current directory contains a file with the `.java`, `.class`, `.gradle` or `.jar` extension @@ -1267,7 +1268,7 @@ The `java` module shows the currently installed version of Java. 這個模組在 | `format` | `"via [${symbol}${version}]($style) "` | The format for the module. | | `symbol` | `"☕ "` | A format string representing the symbol of Java | | `style` | `"red dimmed"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `java` module. | +| `disabled` | `false` | 停用 `java` 模組。 | ### Variables @@ -1288,19 +1289,19 @@ The `java` module shows the currently installed version of Java. 這個模組在 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 is more than 1 job, or more than the `threshold` config value, if it exists. +`jobs` 模組顯示現在正在執行中的工作。 這個模組只會在有背景工作正在執行時顯示。 這個模組會在工作數量超過一個,或者有設定 `threshold` 時且數量超過設定值時,顯示工作的數量。 ### 選項 | Option | 預設 | 說明 | | ----------- | ----------------------------- | ------------------------------------------------ | -| `threshold` | `1` | Show number of jobs if exceeded. | +| `threshold` | `1` | 在超過指定值時顯示工作數量。 | | `format` | `"[$symbol$number]($style) "` | The format for the module. | | `symbol` | `"✦"` | A format string representing the number of jobs. | | `style` | `"bold blue"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `jobs` module. | +| `disabled` | `false` | 停用 `jobs` 模組。 | ### Variables @@ -1364,7 +1365,7 @@ Displays the current Kubernetes context name and, if set, the namespace from the ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。 ::: @@ -1402,15 +1403,15 @@ disabled = false "dev.local.cluster.k8s" = "dev" ``` -## Line Break +## 換行 -The `line_break` module separates the prompt into two lines. +`line_break` 模組將提示字元分成兩行。 ### 選項 -| Option | 預設 | 說明 | -| ---------- | ------- | ------------------------------------------------------------------ | -| `disabled` | `false` | Disables the `line_break` module, making the prompt a single line. | +| Option | 預設 | 說明 | +| ---------- | ------- | ----------------------------- | +| `disabled` | `false` | 停用 `line_break` 模組,讓提示字元變成一行。 | ### 範例 @@ -1421,27 +1422,27 @@ The `line_break` module separates the prompt into two lines. disabled = true ``` -## Memory Usage +## 記憶體使用量 -The `memory_usage` module shows current system memory and swap usage. +`memory_usage` 模組顯示現在系統記憶體與 swap 的使用量。 -By default the swap usage is displayed if the total system swap is non-zero. +預設 swap 使用量會在系統總 swap 使用量不為 0 時顯示出來。 ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。 ::: ### 選項 -| Option | 預設 | 說明 | -| ----------- | --------------------------------------------- | -------------------------------------------------------- | -| `threshold` | `75` | Hide the memory usage unless it exceeds this percentage. | -| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | The format for the module. | -| `symbol` | `"🐏"` | The symbol used before displaying the memory usage. | -| `style` | `"bold dimmed white"` | 這個模組的風格。 | -| `disabled` | `true` | Disables the `memory_usage` module. | +| Option | 預設 | 說明 | +| ----------- | --------------------------------------------- | -------------------------- | +| `threshold` | `75` | 將記憶體使用量隱藏,除非使用量超過指定值。 | +| `format` | `"via $symbol [${ram}( | ${swap})]($style) "` | The format for the module. | +| `symbol` | `"🐏"` | 顯示在記憶體使用量之前的符號。 | +| `style` | `"bold dimmed white"` | 這個模組的風格。 | +| `disabled` | `true` | 停用 `memory_usage` 模組。 | ### Variables @@ -1483,7 +1484,7 @@ The `hg_branch` module shows the active branch of the repo in your current direc | `style` | `"bold purple"` | 這個模組的風格。 | | `format` | `"on [$symbol$branch]($style) "` | The format for the module. | | `truncation_length` | `2^63 - 1` | Truncates the hg branch name to X graphemes | -| `truncation_symbol` | `"…"` | The symbol used to indicate a branch name was truncated. | +| `truncation_symbol` | `"…"` | 用來指示分支名稱被縮減的符號。 | | `disabled` | `true` | Disables the `hg_branch` module. | ### Variables @@ -1511,7 +1512,7 @@ truncation_symbol = "" The `nim` module shows the currently installed version of Nim. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `nim.cfg` file +- 現在資料夾中包含一個 `nim.cfg` 檔案 - 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 @@ -1547,7 +1548,7 @@ symbol = "🎣 " ## Nix-shell -The `nix_shell` module shows the nix-shell environment. The module will be shown when inside a nix-shell environment. +`nix_shell` 模組顯示 nix-shell 環境。 這個模組會在 nix-shell 環境中顯示。 ### 選項 @@ -1558,7 +1559,7 @@ The `nix_shell` module shows the nix-shell environment. The module will be shown | `style` | `"bold blue"` | 這個模組的風格。 | | `impure_msg` | `"impure"` | A format string shown when the shell is impure. | | `pure_msg` | `"pure"` | A format string shown when the shell is pure. | -| `disabled` | `false` | Disables the `nix_shell` module. | +| `disabled` | `false` | 停用 `nix_shell` 模組。 | ### Variables @@ -1585,11 +1586,11 @@ format = "via [☃️ $state( \\($name\\))](bold blue) " ## NodeJS -The `nodejs` module shows the currently installed version of NodeJS. 這個模組在下列其中一個條件達成時顯示: +`nodejs` 模組顯示現在安裝的 NodeJS 版本。 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `package.json` file +- 現在資料夾中包含一個 `package.json` 檔案 - The current directory contains a `.node-version` file -- The current directory contains a `node_modules` directory +- 現在資料夾中包含一個 `node_modules` 資料夾 - The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension - The current directory contains a file with the `.ts` extension @@ -1600,7 +1601,7 @@ The `nodejs` module shows the currently installed version of NodeJS. 這個模 | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. | | `style` | `"bold green"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `nodejs` module. | +| `disabled` | `false` | 停用 `nodejs` 模組。 | ###  Variables @@ -1621,13 +1622,13 @@ The `nodejs` module shows the currently installed version of NodeJS. 這個模 format = "via [🤖 $version](bold green) " ``` -## Package Version +## 套件版本 -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`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. +The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並顯示他的現在版本。 The module currently supports `npm`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix` and `helm` packages. -- **npm** – The `npm` package version is extracted from the `package.json` present in the current directory -- **cargo** – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory -- **poetry** – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory +- **npm** – `npm` 套件的版本是從現在資料夾中的 `package.json` 之中擷取出來的 +- **cargo** – `cargo` 套件的版本是從現在資料夾中的 `Cargo.toml` 之中擷取出來的 +- **poetry** – `poetry` 套件的版本是從現在資料夾中的 `pyproject.toml` 之中擷取出來的 - **composer** – The `composer` package version is extracted from the `composer.json` present in the current directory - **gradle** – The `gradle` package version is extracted from the `build.gradle` present - **julia** - The package version is extracted from the `Project.toml` present @@ -1639,13 +1640,13 @@ The `package` module is shown when the current directory is the repository for a ### 選項 -| Option | 預設 | 說明 | -| ----------------- | ---------------------------------- | ---------------------------------------------------------- | -| `format` | `"via [$symbol$version]($style) "` | The format for the module. | -| `symbol` | `"📦 "` | The symbol used before displaying the version the package. | -| `style` | `"bold 208"` | 這個模組的風格。 | -| `display_private` | `false` | Enable displaying version for packages marked as private. | -| `disabled` | `false` | Disables the `package` module. | +| Option | 預設 | 說明 | +| ----------------- | ---------------------------------- | --------------------------------------------------------- | +| `format` | `"via [$symbol$version]($style) "` | The format for the module. | +| `symbol` | `"📦 "` | 顯示在套件的版本之前的符號。 | +| `style` | `"bold 208"` | 這個模組的風格。 | +| `display_private` | `false` | Enable displaying version for packages marked as private. | +| `disabled` | `false` | 停用 `package` 模組。 | ### Variables @@ -1745,7 +1746,7 @@ format = "via [🦪 $version]($style) " The `php` module shows the currently installed version of PHP. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `composer.json` file +- 現在資料夾中包含一個 `composer.json` 檔案 - The current directory contains a `.php-version` file - The current directory contains a `.php` file @@ -1785,13 +1786,13 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `.python-version` file -- The current directory contains a `requirements.txt` file -- The current directory contains a `pyproject.toml` file +- 目前資料夾中有一個 `.python-version` 檔案 +- 目前資料夾中有一個 `requirements.txt` 檔案 +- 目前資料夾中有一個 `pyproject.toml` 檔案 - The current directory contains a file with the `.py` extension (and `scan_for_pyfiles` is true) -- The current directory contains a `Pipfile` file -- The current directory contains a `tox.ini` file -- The current directory contains a `setup.py` file +- 目前資料夾中有一個 `Pipfile` 檔案 +- 目前資料夾中有一個 `tox.ini` 檔案 +- 現在資料夾中包含一個 `setup.py` 檔案 - The current directory contains a `__init__.py` file - A virtual environment is currently activated @@ -1802,10 +1803,10 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name | `format` | `"via [${symbol}${pyenv_prefix}${version}( \\($virtualenv\\))]($style) "` | The format for the module. | | `symbol` | `"🐍 "` | A format string representing the symbol of Python | | `style` | `"yellow bold"` | 這個模組的風格。 | -| `pyenv_version_name` | `false` | Use pyenv to get Python version | +| `pyenv_version_name` | `false` | 使用 pyenv 取得 Python 的版本。 | | `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used | | `scan_for_pyfiles` | `true` | If false, Python files in the current directory will not show this module. | -| `disabled` | `false` | Disables the `python` module. | +| `disabled` | `false` | 停用 `python` 模組。 | ### Variables @@ -1847,11 +1848,11 @@ pyenv_version_name = true ## Ruby -The `ruby` module shows the currently installed version of Ruby. 這個模組在下列其中一個條件達成時顯示: +`ruby` 模組顯示現在安裝的 Ruby 版本。 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `Gemfile` file +- 目前資料夾中有一個 `Gemfile` 檔案 - The current directory contains a `.ruby-version` file -- The current directory contains a `.rb` file +- 目前資料夾中有一個 `.rb` 檔案 ### 選項 @@ -1860,7 +1861,7 @@ The `ruby` module shows the currently installed version of Ruby. 這個模組在 | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"💎 "` | A format string representing the symbol of Ruby. | | `style` | `"bold red"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `ruby` module. | +| `disabled` | `false` | 停用 `ruby` 模組。 | ### Variables @@ -1883,10 +1884,10 @@ symbol = "🔺 " ## Rust -The `rust` module shows the currently installed version of Rust. 這個模組在下列其中一個條件達成時顯示: +`rust` 模組顯示現在安裝的 Rust 版本。 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `Cargo.toml` file -- The current directory contains a file with the `.rs` extension +- 目前資料夾中有一個 `Cargo.toml` 檔案 +- 現在資料夾中包含一個檔案具有 `.rs` 副檔名 ### 選項 @@ -1895,7 +1896,7 @@ The `rust` module shows the currently installed version of Rust. 這個模組在 | `format` | `"via [$symbol$version]($style) "` | The format for the module. | | `symbol` | `"🦀 "` | A format string representing the symbol of Rust | | `style` | `"bold red"` | 這個模組的風格。 | -| `disabled` | `false` | Disables the `rust` module. | +| `disabled` | `false` | 停用 `rust` 模組。 | ### Variables @@ -2024,7 +2025,7 @@ The `status` module displays the exit code of the previous command. The module w ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. ::: +這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。 ::: ### 選項 @@ -2035,7 +2036,6 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y | `style` | `"bold red"` | 這個模組的風格。 | | `disabled` | `true` | Disables the `status` module. | - ### Variables | 變數 | 範例 | 說明 | @@ -2046,8 +2046,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y \*: This variable can only be used as a part of a style string - ### 範例 + ```toml # ~/.config/starship.toml @@ -2107,35 +2107,35 @@ format = "[🏎💨 $version$workspace]($style) " format = "[🏎💨 $workspace]($style) " ``` -## Time +## 時間 -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. +`time` 模組顯示目前的**當地**時間. `format` 設定值被 [`chrono`](https://crates.io/crates/chrono) crate 用來控制時間如何顯示。 請看 [chrono 的 strftime 文件](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)來了解有那些選項可以使用。 ::: tip -This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file. +這個模組預設是停用的。 想要啟用它的話,請在設定檔中將 `disabled` 設定為 `false`。 ::: ### 選項 -| Option | 預設 | 說明 | -| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `format` | `"at [$time]($style) "` | The format string for the module. | -| `use_12hr` | `false` | Enables 12 hour formatting | -| `time_format` | see below | The [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) used to format the time. | -| `style` | `"bold yellow"` | The style for the module time | -| `utc_time_offset` | `"local"` | Sets the UTC offset to use. Range from -24 < x < 24. Allows floats to accommodate 30/45 minute timezone offsets. | -| `disabled` | `true` | Disables the `time` module. | -| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | +| Option | 預設 | 說明 | +| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- | +| `format` | `"at [$time]($style) "` | The format string for the module. | +| `use_12hr` | `false` | 啟用 12 小時格式。 | +| `time_format` | 請看下列 | 用來顯示時間的 [chrono 格式字串](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)。 | +| `style` | `"bold yellow"` | 這個模組的時間的風格。 | +| `utc_time_offset` | `"local"` | 設定相對於 UTC 的時差。 Range from -24 < x < 24. 允許使用浮點數來表示 30/45 分鐘時差的時區。 | +| `disabled` | `true` | 停用 `time` 模組。 | +| `time_range` | `"-"` | Sets the time range during which the module will be shown. Times must be specified in 24-hours format | -If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it defaults to `"%T"`. Manually setting `time_format` will override the `use_12hr` setting. +If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. 不然的話,它會被預設為 `"%T"`。 Manually setting `time_format` will override the `use_12hr` setting. ### Variables | 變數 | 範例 | 說明 | | --------- | ---------- | ----------------------------------- | -| time | `13:08:10` | The current time. | +| 時間 | `13:08:10` | The current time. | | style\* | | Mirrors the value of option `style` | \*: This variable can only be used as a part of a style string @@ -2153,24 +2153,24 @@ utc_time_offset = "-5" time_range = "10:00:00-14:00:00" ``` -## Username +## 使用者名稱 -The `username` module shows active user's username. 這個模組在下列其中一個條件達成時顯示: +`username` 模組顯示現在使用中的使用者名稱。 這個模組在下列其中一個條件達成時顯示: -- 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 +- 目前使用者為 root +- 目前使用者並非登入時的使用者 +- 使用者透過 SSH session 進行連線 +- 變數 `show_always` 被設為 true ### 選項 -| Option | 預設 | 說明 | -| ------------- | ----------------------- | ------------------------------------- | -| `style_root` | `"bold red"` | The style used when the user is root. | -| `style_user` | `"bold yellow"` | The style used for non-root users. | -| `format` | `"[$user]($style) in "` | The format for the module. | -| `show_always` | `false` | Always shows the `username` module. | -| `disabled` | `false` | Disables the `username` module. | +| Option | 預設 | 說明 | +| ------------- | ----------------------- | -------------------------- | +| `style_root` | `"bold red"` | 使用者為 root 時使用的風格。 | +| `style_user` | `"bold yellow"` | 非 root 使用者時使用的風格。 | +| `format` | `"[$user]($style) in "` | The format for the module. | +| `show_always` | `false` | 總是顯示 `username` 模組。 | +| `disabled` | `false` | 停用 `username` 模組。 | ### Variables @@ -2262,7 +2262,7 @@ The order in which custom modules are shown can be individually set by including | `command` | | The command whose output should be printed. The command will be passed on stdin to the shell. | | `when` | | A shell command used as a condition to show the module. The module will be shown if the command returns a `0` status code. | | `shell` | | [See below](#custom-command-shell) | -| `description` | `""` | The description of the module that is shown when running `starship explain`. | +| `說明` | `""` | The description of the module that is shown when running `starship explain`. | | `files` | `[]` | The files that will be searched in the working directory for a match. | | `directories` | `[]` | The directories that will be searched in the working directory for a match. | | `extensions` | `[]` | The extensions that will be searched in the working directory for a match. | @@ -2331,7 +2331,7 @@ shell = ["pwsh.exe", "-NoProfile", "-Command", "-"] The `purescript` module shows the currently installed version of PureScript version. 這個模組在下列其中一個條件達成時顯示: -- The current directory contains a `spago.dhall` file +- 現在資料夾中包含一個 `spago.dhall` 檔案 - The current directory contains a \*.purs files ### 選項 diff --git a/docs/zh-TW/migrating-to-0.45.0/README.md b/docs/zh-TW/migrating-to-0.45.0/README.md index 6dacbc10..292eaa5a 100644 --- a/docs/zh-TW/migrating-to-0.45.0/README.md +++ b/docs/zh-TW/migrating-to-0.45.0/README.md @@ -123,7 +123,7 @@ error_symbol = "[✖](bold red) " ++ format = "took [$duration]($style)" ``` -#### Directory +#### 資料夾 | Removed Property | Replacement | | ---------------- | ----------- | @@ -134,10 +134,10 @@ error_symbol = "[✖](bold red) " ```diff [directory] -- prefix = "in " -++ format = "[$path]($style)[$lock_symbol]($lock_style)" +++ format = "[$path]($style)[$read_only]($read_only_style)" ``` -#### Environment Variable +#### 環境變數 | Removed Property | Replacement | | ---------------- | ----------- | @@ -200,7 +200,7 @@ diverged = "⇕⇡${ahead_count}⇣${behind_count}" behind = "⇣${count}" ``` -#### Hostname +#### 主機名稱 | Removed Property | Replacement | | ---------------- | ----------- | @@ -233,7 +233,7 @@ behind = "⇣${count}" ++ format = "[$symbol\\[$env\\]]($style) " ``` -#### Time +#### 時間 | Removed Property | Replacement | | ---------------- | ------------- |