mirror of
https://github.com/starship/starship.git
synced 2024-11-07 08:54:50 +01:00
docs(i18n): new Crowdin translations (#1170)
This commit is contained in:
parent
0dfe3f7a2c
commit
77c42dca73
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### Optionen
|
||||
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | ------------ | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### Beispiel
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. Das Modul wird nu
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft:
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Optionen
|
||||
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | ------------ | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Beispiel
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## Umgebungsvariablen
|
||||
|
||||
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:
|
||||
@ -515,15 +494,15 @@ The `env_var` module displays the current value of a selected environment variab
|
||||
|
||||
### Optionen
|
||||
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | ---------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `symbol` | | Das Symbol, das vor der Anzeige der Variable verwendet wird. |
|
||||
| `variable` | | Die anzuzeigende Umgebungsvariable. |
|
||||
| `default` | | Der Standardwert, der angezeigt wird, wenn die ausgewählte Variable nicht definiert ist. |
|
||||
| `prefix` | `""` | Präfix der vor der Variable angezeigt wird. |
|
||||
| `suffix` | `""` | Suffix der nach der Variable angezeigt wird. |
|
||||
| `style` | `"dimmed black"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Deaktiviert das `env_var`-Modul. |
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | --------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `symbol` | | Das Symbol, das vor der Anzeige der Variable verwendet wird. |
|
||||
| `variable` | | Die anzuzeigende Umgebungsvariable. |
|
||||
| `default` | | Der Standardwert, der angezeigt wird, wenn die ausgewählte Variable nicht definiert ist. |
|
||||
| `prefix` | `""` | Präfix der vor der Variable angezeigt wird. |
|
||||
| `suffix` | `""` | Suffix der nach der Variable angezeigt wird. |
|
||||
| `style` | `"dimmed bold black"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Deaktiviert das `env_var`-Modul. |
|
||||
|
||||
### Beispiel
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. Das Modul wird gezeigt, wenn mindestens einer der folgenden Punkte erfüllt ist:
|
||||
|
||||
- Das aktuelle Verzeichnis enthält eine `rebar.config`-Datei.
|
||||
- Das aktuelle Verzeichnis enthält eine `erlang.mk`-Datei.
|
||||
|
||||
### Optionen
|
||||
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | ------------ | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Beispiel
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git-Branch
|
||||
|
||||
Das `git_branch`-Modul zeigt den aktiven Git-Branch des Repositories im aktuellen Verzeichnis an.
|
||||
@ -1012,7 +1015,7 @@ Das `Package` Modul wird angezeigt, wenn das aktuelle Verzeichnis das Repository
|
||||
| Variable | Standartwert | Beschreibung |
|
||||
| ----------------- | ------------ | --------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | Symbol das vor der Paketversion angezeigt wird. |
|
||||
| `style` | `"bold red"` | Stil für dieses Modul. |
|
||||
| `style` | `"bold 208"` | Stil für dieses Modul. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Deaktiviert das `package`-Modul. |
|
||||
|
||||
@ -1038,7 +1041,7 @@ Das `php`-Modul zeigt die aktuell installierte Version von PHP. Das Modul wird g
|
||||
| Variable | Standardwert | Beschreibung |
|
||||
| ---------- | ------------ | ---------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | Symbol das vor der PHP-Version angezeigt wird. |
|
||||
| `style` | `"bold red"` | Stil für dieses Modul. |
|
||||
| `style` | `"bold 147"` | Stil für dieses Modul. |
|
||||
| `disabled` | `false` | Deaktiviert das `php`-Modul. |
|
||||
|
||||
### Beispiel
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
Das `python`-Modul zeigt die aktuell installierte Version von Python.
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
Wenn `pyenv_version_name` auf `true` gesetzt ist, wird die version der pyenv angezeigt.
|
||||
|
||||
Andernfalls wird die gleiche Versionsnummer angezeigt wie `python --version`, sowie der Name des aktuellen virtualenvs, wenn eines aktiv ist.
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
Das Modul wird gezeigt, wenn mindestens einer der folgenden Punkte erfüllt ist:
|
||||
|
||||
@ -1094,7 +1095,7 @@ pyenv_prefix = "foo "
|
||||
|
||||
## Ruby
|
||||
|
||||
Das `ruby` Modul zeigt die derzeit installierte Version von Ruby an. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft:
|
||||
Das `ruby` Modul zeigt die derzeit installierte Version von Ruby an. Das Modul wird gezeigt, wenn mindestens einer der folgenden Punkte erfüllt ist:
|
||||
|
||||
- Das aktuelle Verzeichnis enthält eine `Gemfile`-Datei
|
||||
- The current directory contains a `.ruby-version` file
|
||||
@ -1119,7 +1120,7 @@ symbol = "🔺 "
|
||||
|
||||
## Rust
|
||||
|
||||
Das `rust` Modul zeigt die derzeit installierte Version von Rust an. Das Modul wird gezeigt, wenn mindestens einer der folgenden Punkte erfüllt ist:
|
||||
Das `rust` Modul zeigt die derzeit installierte Version von Rust an. Das Modul wird nur dann angezeigt, wenn eine der folgenden Bedingungen zutrifft:
|
||||
|
||||
- Das aktuelle Verzeichnis enthält eine `Cargo.toml`-Datei
|
||||
- Das aktuelle Verzeichnis enthält eine Datei mit der `.rs`-Erweiterung
|
||||
|
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | ----------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. El módulo se mue
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
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.
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | ----------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## 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:
|
||||
@ -515,15 +494,15 @@ The `env_var` module displays the current value of a selected environment variab
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | 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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed black"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
| Variable | 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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed bold black"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
- El directorio actual contiene un fichero `rebar.config`.
|
||||
- El directorio actual contiene un fichero `erlang.mk`.
|
||||
|
||||
### Opciones
|
||||
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | ----------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Ejemplo
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git Branch
|
||||
|
||||
The `git_branch` module shows the active branch of the repo in your current directory.
|
||||
@ -1012,7 +1015,7 @@ The `package` module is shown when the current directory is the repository for a
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ----------------- | ------------ | ---------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
|
||||
| `style` | `"bold red"` | El estilo del módulo. |
|
||||
| `style` | `"bold 208"` | El estilo del módulo. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
|
||||
@ -1038,7 +1041,7 @@ The `php` module shows the currently installed version of PHP. El módulo se mue
|
||||
| Variable | Por defecto | Descripción |
|
||||
| ---------- | ------------ | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold red"` | El estilo del módulo. |
|
||||
| `style` | `"bold 147"` | El estilo del módulo. |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
|
||||
### Ejemplo
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
The `python` module shows the currently installed version of Python.
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name.
|
||||
|
||||
Otherwise, it will display the version number from `python --version` and show the current Python virtual environment if one is activated.
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
El módulo se muestra si algunas de las siguientes condiciones se cumplen:
|
||||
|
||||
|
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### Exemple
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. Le module est aff
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. Le module est affiché si l'une des ces conditions est remplie :
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Exemple
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## 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:
|
||||
@ -515,15 +494,15 @@ The `env_var` module displays the current value of a selected environment variab
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ---------------- | ---------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed black"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------------- | ---------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed bold black"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
|
||||
### Exemple
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. Le module est affiché si l'une des ces conditions est remplie :
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------------ | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold green` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Exemple
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git Branch
|
||||
|
||||
The `git_branch` module shows the active branch of the repo in your current directory.
|
||||
@ -1009,12 +1012,12 @@ The `package` module is shown when the current directory is the repository for a
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ----------------- | -------------- | ---------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
|
||||
| `style` | `"bold green"` | The style for the module. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
| Variable | Default | Description |
|
||||
| ----------------- | ------------ | ---------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
|
||||
| `style` | `"bold 208"` | The style for the module. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
|
||||
### Exemple
|
||||
|
||||
@ -1035,11 +1038,11 @@ The `php` module shows the currently installed version of PHP. Le module est aff
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | -------------- | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold green"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------------ | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold 147"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
|
||||
### Exemple
|
||||
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
The `python` module shows the currently installed version of Python.
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name.
|
||||
|
||||
Otherwise, it will display the version number from `python --version` and show the current Python virtual environment if one is activated.
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
Le module est affiché si l'une des ces conditions est remplie :
|
||||
|
||||
|
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### オプション
|
||||
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | ------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### 設定例
|
||||
|
||||
@ -484,28 +485,6 @@ symbol = "🔮 "
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
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.
|
||||
|
||||
### オプション
|
||||
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | ------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### 設定例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## 環境変数
|
||||
|
||||
`env_var`モジュールは、選択された環境変数の現在の値を表示します。 次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||
@ -515,15 +494,15 @@ symbol = "e "
|
||||
|
||||
### オプション
|
||||
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | ---------------- | ------------------------------------- |
|
||||
| `symbol` | | 環境変数を表示する前に使用される記号です。 |
|
||||
| `variable` | | 表示される環境変数です。 |
|
||||
| `default` | | 上のvariableが定義されていない場合に表示されるデフォルトの値です。 |
|
||||
| `prefix` | `""` | 変数の直前に表示するprefixです。 |
|
||||
| `suffix` | `""` | 変数の直後に表示するsuffixです。 |
|
||||
| `style` | `"dimmed black"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `env_var`モジュールを無効にします。 |
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | --------------------- | ------------------------------------- |
|
||||
| `symbol` | | 環境変数を表示する前に使用される記号です。 |
|
||||
| `variable` | | 表示される環境変数です。 |
|
||||
| `default` | | 上のvariableが定義されていない場合に表示されるデフォルトの値です。 |
|
||||
| `prefix` | `""` | 変数の直前に表示するprefixです。 |
|
||||
| `suffix` | `""` | 変数の直後に表示するsuffixです。 |
|
||||
| `style` | `"dimmed bold black"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `env_var`モジュールを無効にします。 |
|
||||
|
||||
### 設定例
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. 次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||
|
||||
- カレントディレクトリに`rebar.config`ファイルが含まれている.
|
||||
- カレントディレクトリに`erlang.mk`ファイルが含まれている.
|
||||
|
||||
### オプション
|
||||
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | ---------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### 設定例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git ブランチ
|
||||
|
||||
`git_branch`モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを表示します。
|
||||
@ -1013,7 +1016,7 @@ symbol = "🤖 "
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ----------------- | ------------ | --------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | パッケージのバージョンを表示する前に使用される記号です。 |
|
||||
| `style` | `"bold red"` | モジュールのスタイルです。 |
|
||||
| `style` | `"bold 208"` | モジュールのスタイルです。 |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | `package` モジュールを無効にします。 |
|
||||
|
||||
@ -1039,7 +1042,7 @@ symbol = "🎁 "
|
||||
| 変数 | デフォルト | 説明 |
|
||||
| ---------- | ------------ | -------------------------- |
|
||||
| `symbol` | `"🐘 "` | PHPのバージョンを表示する前に使用される記号です。 |
|
||||
| `style` | `"bold red"` | モジュールのスタイルです。 |
|
||||
| `style` | `"bold 147"` | モジュールのスタイルです。 |
|
||||
| `disabled` | `false` | `php`モジュールを無効にします。 |
|
||||
|
||||
### 設定例
|
||||
@ -1053,11 +1056,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
`python`モジュールは、現在インストールされているPythonのバージョンを示します。
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
`pyenvversionname`が`true`に設定されている場合 、pyenvでのバージョン名が表示されます 。
|
||||
|
||||
それ以外の場合は、 `python --version`バージョン番号が表示され、アクティブになっている場合は現在のPython仮想環境が表示されます。
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
次の条件のいずれかが満たされると、モジュールが表示されます。
|
||||
|
||||
|
@ -104,12 +104,12 @@
|
||||
**シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!**
|
||||
|
||||
|
||||
- **高速: ** _本当に</ 1>高速です! 🚀</li>
|
||||
- **カスタマイズ可能: **プロンプトのあらゆる側面を構成します。
|
||||
- **ユニバーサル: ** あらゆるシェル、あらゆるオペレーティングシステムで動作します。
|
||||
- **高速:** _本当に_ 高速です! 🚀
|
||||
- **カスタマイズ可能:** プロンプトのあらゆる側面を構成します。
|
||||
- **ユニバーサル:** あらゆるシェル、あらゆるオペレーティングシステムで動作します。
|
||||
- **インテリジェント:** 関連情報を一目で示します。
|
||||
- **豊富な機能: ** お気に入りのツールをすべてサポートします。
|
||||
- **簡単: ** 迅速なインストールが可能であり、数分で使用開始可能です。</ul>
|
||||
- **豊富な機能:** お気に入りのツールをすべてサポートします。
|
||||
- **簡単:** 迅速なインストールが可能であり、数分で使用開始可能です。
|
||||
|
||||
<p align="center">
|
||||
<a href="https://starship.rs/"><strong>Starshipのドキュメントを見る ▶</strong></a>
|
||||
|
@ -2,23 +2,23 @@
|
||||
home: true
|
||||
heroImage: /logo.svg
|
||||
heroText:
|
||||
tagline: The minimal, blazing-fast, and infinitely customizable prompt for any shell!
|
||||
actionText: Get Started →
|
||||
tagline: O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!
|
||||
actionText: Primeiros passos →
|
||||
actionLink: ./guide/
|
||||
features:
|
||||
-
|
||||
title: Compatibility First
|
||||
details: Works on the most common shells on the most common operating systems. Use it everywhere!
|
||||
title: Compatibilidade primeiro
|
||||
details: Funciona nos principais shells nos principais sistemas operacionais. Use em qualquer lugar!
|
||||
-
|
||||
title: Rust-Powered
|
||||
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
|
||||
title: Poder do Rust
|
||||
details: Tenha o melhor da velocidade e segurança do Rust, para tornar seu prompt o mais rápido e confiável possível.
|
||||
-
|
||||
title: Customizable
|
||||
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
|
||||
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
|
||||
title: Personalizável
|
||||
details: Cada pequeno detalhe é personalizável ao seu gosto, para tornar esse prompt o mínimo possível ou rico em recursos, como você preferir.
|
||||
footer: Licenciado pelo ISC | Todos os direitos reservados © 2019-Presente | Contribuidores Starship
|
||||
#Used for the description meta tag, for SEO
|
||||
metaTitle: "Starship: Cross-Shell Prompt"
|
||||
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, and PowerShell.
|
||||
description: O Starship é o prompt minimalista, extremamente rápido e extremamente personalizável para qualquer shell! Mostra as informações que você precisa, mantendo-se elegante e minimalista. Instalação rápida disponível para Bash, Fish, ZSH, Ion e Powershell.
|
||||
---
|
||||
|
||||
<div class="center">
|
||||
@ -28,40 +28,40 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
||||
</video>
|
||||
</div>
|
||||
|
||||
### Quick Install
|
||||
### Instalação
|
||||
|
||||
1. Install the **starship** binary:
|
||||
1. Instale o binário do **starship**:
|
||||
|
||||
|
||||
#### Install Latest Version
|
||||
#### Instalar a última versão
|
||||
|
||||
With Shell:
|
||||
Com o Shell:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://starship.rs/install.sh | bash
|
||||
```
|
||||
|
||||
|
||||
#### Install via Package Manager
|
||||
#### Instalar via Gerenciador de Pacotes
|
||||
|
||||
With [Homebrew](https://brew.sh/):
|
||||
Com o [Homebrew](https://brew.sh/):
|
||||
|
||||
```sh
|
||||
brew install starship
|
||||
```
|
||||
|
||||
With [Scoop](https://scoop.sh):
|
||||
Com o [Scoop](https://scoop.sh):
|
||||
|
||||
```powershell
|
||||
scoop install starship
|
||||
```
|
||||
|
||||
1. Add the init script to your shell's config file:
|
||||
1. Adicione o script de inicialização ao arquivo de configuração do shell:
|
||||
|
||||
|
||||
#### Bash
|
||||
|
||||
Add the following to the end of `~/.bashrc`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.bashrc`:
|
||||
|
||||
```sh
|
||||
# ~/.bashrc
|
||||
@ -72,7 +72,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
||||
|
||||
#### Fish
|
||||
|
||||
Add the following to the end of `~/.config/fish/config.fish`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.config/fish/config.fish`:
|
||||
|
||||
```sh
|
||||
# ~/.config/fish/config.fish
|
||||
@ -83,7 +83,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
||||
|
||||
#### Zsh
|
||||
|
||||
Add the following to the end of `~/.zshrc`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.zshrc`:
|
||||
|
||||
```sh
|
||||
# ~/.zshrc
|
||||
@ -94,7 +94,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
||||
|
||||
#### Powershell
|
||||
|
||||
Add the following to the end of `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix):
|
||||
Adicione o seguinte comando no final do arquivo `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (ou `~/.config/powershell/Microsoft.PowerShell_profile.ps1` em -Nix):
|
||||
|
||||
```sh
|
||||
# ~\Documents\PowerShell\Profile.ps1
|
||||
@ -105,7 +105,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
||||
|
||||
#### Ion
|
||||
|
||||
Add the following to the end of `~/.config/ion/initrc`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.config/ion/initrc`:
|
||||
|
||||
```sh
|
||||
# ~/.config/ion/initrc
|
||||
|
@ -59,7 +59,7 @@ precmd_functions+=(set_win_title)
|
||||
|
||||
If you like the result, add these lines to your shell configuration file (`~/.bashrc` or `~/.zsrhc`) to make it permanent.
|
||||
|
||||
## Style Strings
|
||||
## Estilo dos textos
|
||||
|
||||
Style strings are a list of words, separated by whitespace. The words are not case sensitive (i.e. `bold` and `BoLd` are considered the same string). Each word can be one of the following:
|
||||
|
||||
|
@ -1,51 +1,51 @@
|
||||
# Configuration
|
||||
# Configuração
|
||||
|
||||
::: tip
|
||||
|
||||
🔥 Configuration is currently being worked on. Many new configuration options will be available in coming releases.
|
||||
As configurações estão sendo trabalhadas. Muitas novas opções de configuração estarão disponíveis nas próximas versões.
|
||||
|
||||
:::
|
||||
|
||||
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
|
||||
# Não imprime uma nova linha no início do prompt
|
||||
add_newline = false
|
||||
|
||||
# Replace the "❯" symbol in the prompt with "➜"
|
||||
[character] # The name of the module we are configuring is "character"
|
||||
symbol = "➜" # The "symbol" segment is being set to "➜"
|
||||
# Substitui o símbolo "❯" por "➜" no prompt.
|
||||
[character] # O nome do módulo que estamos configurando é "character"
|
||||
symbol = "➜" # O segmento "symbol" está sendo configurado para "➜"
|
||||
|
||||
# Disable the package module, hiding it from the prompt completely
|
||||
# Desabilita o módulo de pacotes, ocultando completamente do prompt.
|
||||
[package]
|
||||
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
|
||||
```
|
||||
|
||||
### 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.
|
||||
|
||||
**Segment**: Smaller sub-components that compose a module. For example, the "symbol" segment in the "nodejs" module contains the character that is shown before the version number (⬢ by default).
|
||||
**Segmento**: Configurações que compõem um módulo. Por exemplo, o segmento "symbol" do módulo "nodejs" contém o caractere que é exibido antes da versão (⬢ por padrão).
|
||||
|
||||
Here is the representation of the node module. In the following example, "symbol" and "version" are segments within it. Every module also has a prefix and suffix that are the default terminal color.
|
||||
Aqui está a representação do módulo Node. No exemplo a seguir, "symbol" e "version" são segmentos dentro dele. Todos os módulos também tem um prefixo e um sufixo que são da cor do terminal padrão.
|
||||
|
||||
```
|
||||
[prefix] [symbol] [version] [suffix]
|
||||
"via " "⬢" "v10.4.1" ""
|
||||
```
|
||||
|
||||
### Style Strings
|
||||
### 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/).
|
||||
|
||||
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### Example
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. The module will b
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. The module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## 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:
|
||||
@ -515,15 +494,15 @@ The `env_var` module displays the current value of a selected environment variab
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ---------------- | ---------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed black"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------------- | ---------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed bold black"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
|
||||
### Example
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. The module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ---------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git Branch
|
||||
|
||||
The `git_branch` module shows the active branch of the repo in your current directory.
|
||||
@ -1012,7 +1015,7 @@ The `package` module is shown when the current directory is the repository for a
|
||||
| Variable | Default | Description |
|
||||
| ----------------- | ------------ | ---------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold 208"` | The style for the module. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
|
||||
@ -1038,7 +1041,7 @@ The `php` module shows the currently installed version of PHP. The module will b
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------------ | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold 147"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
|
||||
### Example
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
The `python` module shows the currently installed version of Python.
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name.
|
||||
|
||||
Otherwise, it will display the version number from `python --version` and show the current Python virtual environment if one is activated.
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
The module will be shown if any of the following conditions are met:
|
||||
|
||||
|
@ -9,32 +9,32 @@
|
||||
<a href="https://github.com/starship/starship/actions"
|
||||
><img
|
||||
src="https://img.shields.io/github/workflow/status/starship/starship/Main workflow/master?label=workflow&style=flat-square"
|
||||
alt="GitHub Actions workflow status" /></a>
|
||||
alt="Status do workflow Actions do GitHub" /></a>
|
||||
<a href="https://crates.io/crates/starship"
|
||||
><img
|
||||
src="https://img.shields.io/crates/v/starship?style=flat-square"
|
||||
alt="Crates.io version" /></a>
|
||||
alt="Versão no Crates.io" /></a>
|
||||
<a href="https://repology.org/project/starship/versions"
|
||||
><img
|
||||
src="https://img.shields.io/repology/repositories/starship?label=in%20repositories&style=flat-square"
|
||||
alt="Packaging status" /></a
|
||||
alt="Status do pacote" /></a
|
||||
><br />
|
||||
<a href="https://discord.gg/8Jzqu3T"
|
||||
><img
|
||||
src="https://img.shields.io/discord/567163873606500352?label=discord&logoColor=white&style=flat-square"
|
||||
alt="Chat on Discord" /></a>
|
||||
alt="Chat no Discord" /></a>
|
||||
<a href="https://twitter.com/StarshipPrompt"
|
||||
><img
|
||||
src="https://img.shields.io/badge/twitter-@StarshipPrompt-1DA1F3?style=flat-square"
|
||||
alt="Follow @StarshipPrompt on Twitter" /></a>
|
||||
alt="Siga o @StarshipPrompt no Twitter" /></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://starship.rs">Website</a>
|
||||
<a href="https://starship.rs">Site</a>
|
||||
·
|
||||
<a href="#🚀-installation">Installation</a>
|
||||
<a href="#🚀-installation">Instalação</a>
|
||||
·
|
||||
<a href="https://starship.rs/config/">Configuration</a>
|
||||
<a href="https://starship.rs/config/">Configuração</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@ -96,77 +96,77 @@
|
||||
|
||||
<img
|
||||
src="https://raw.githubusercontent.com/starship/starship/master/media/demo.gif"
|
||||
alt="Starship with iTerm2 and the Snazzy theme"
|
||||
alt="Starship com iTerm2 e o tema Snazzy"
|
||||
width="50%"
|
||||
align="right" />
|
||||
|
||||
|
||||
**The minimal, blazing-fast, and infinitely customizable prompt for any shell!**
|
||||
**O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!**
|
||||
|
||||
|
||||
- **Fast:** it's fast – _really really_ fast! 🚀
|
||||
- **Customizable:** configure every aspect of your prompt.
|
||||
- **Universal:** works on any shell, on any operating system.
|
||||
- **Intelligent:** shows relevant information at a glance.
|
||||
- **Feature rich:** support for all your favorite tools.
|
||||
- **Easy:** quick to install – start using it in minutes.
|
||||
- **Rápido:** É rápido – _muito muito_ rápido! 🚀
|
||||
- **Personalizável:** Configure todos os detalhes do seu prompt.
|
||||
- **Universal:** Funciona em qualquer shell, em qualquer sistema operacional.
|
||||
- **Inteligente:** Mostra informações relevantes rapidamente.
|
||||
- **Muitos recursos:** Suporte para todas as suas ferramentas favoritas.
|
||||
- **Fácil:**Instalação rápida – comece a usar em minutos.
|
||||
|
||||
<p align="center">
|
||||
<a href="https://starship.rs/"><strong>Explore the Starship docs ▶</strong></a>
|
||||
<a href="https://starship.rs/"><strong>Consulte a documentação ▶</strong></a>
|
||||
</p>
|
||||
|
||||
<a name="🚀-installation"></a>
|
||||
|
||||
## 🚀 Installation
|
||||
## 🚀 Instalação
|
||||
|
||||
### Prerequisites
|
||||
### Pré-requisitos
|
||||
|
||||
- A [Powerline font](https://github.com/powerline/fonts) installed and enabled in your terminal (for example, try [Fira Code](https://github.com/tonsky/FiraCode)).
|
||||
- Uma das fontes [Powerline font](https://github.com/powerline/fonts) instalada e configurada no seu terminal (por exemplo, experimente a [Fira Code](https://github.com/tonsky/FiraCode)).
|
||||
|
||||
### Getting Started
|
||||
### Primeiros passos
|
||||
|
||||
1. Install the **starship** binary:
|
||||
1. Instale o binário do **starship**:
|
||||
|
||||
|
||||
#### Install Latest Version
|
||||
#### Instalar a última versão
|
||||
|
||||
|
||||
##### From prebuilt binary, with Shell:
|
||||
##### Binário pré-compilado, utilizando o shell:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://starship.rs/install.sh | bash
|
||||
```
|
||||
|
||||
|
||||
##### From source on [crates.io](https://crates.io/):
|
||||
##### Código fonte via [crates.io](https://crates.io/):
|
||||
|
||||
```sh
|
||||
cargo install starship
|
||||
```
|
||||
|
||||
|
||||
#### Install via Package Manager
|
||||
#### Instalar via gerenciador de pacotes
|
||||
|
||||
|
||||
##### With [Homebrew](https://brew.sh/):
|
||||
##### Com o [Homebrew](https://brew.sh/):
|
||||
|
||||
```sh
|
||||
brew install starship
|
||||
```
|
||||
|
||||
|
||||
##### With [Scoop](https://scoop.sh):
|
||||
##### Com o [Scoop](https://scoop.sh):
|
||||
|
||||
```powershell
|
||||
scoop install starship
|
||||
```
|
||||
|
||||
1. Add the init script to your shell's config file:
|
||||
1. Adicione o script de inicialização no arquivo de configuração do seu shell:
|
||||
|
||||
|
||||
#### Bash
|
||||
|
||||
Add the following to the end of `~/.bashrc`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.bashrc`:
|
||||
|
||||
```sh
|
||||
# ~/.bashrc
|
||||
@ -177,7 +177,7 @@
|
||||
|
||||
#### Fish
|
||||
|
||||
Add the following to the end of `~/.config/fish/config.fish`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.config/fish/config.fish`:
|
||||
|
||||
```sh
|
||||
# ~/.config/fish/config.fish
|
||||
@ -188,7 +188,7 @@
|
||||
|
||||
#### Zsh
|
||||
|
||||
Add the following to the end of `~/.zshrc`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.zshrc`:
|
||||
|
||||
```sh
|
||||
# ~/.zshrc
|
||||
@ -199,7 +199,7 @@
|
||||
|
||||
#### PowerShell
|
||||
|
||||
Add the following to the end of `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (or `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix):
|
||||
Adicione o seguinte comando no final do arquivo `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` (ou `~/.config/powershell/Microsoft.PowerShell_profile.ps1` em -Nix):
|
||||
|
||||
```sh
|
||||
Invoke-Expression (&starship init powershell)
|
||||
@ -208,7 +208,7 @@
|
||||
|
||||
#### Ion
|
||||
|
||||
Add the following to the end of `~/.config/ion/initrc`:
|
||||
Adicione o seguinte comando no final do arquivo `~/.config/ion/initrc`:
|
||||
|
||||
```sh
|
||||
# ~/.config/ion/initrc
|
||||
@ -216,28 +216,28 @@
|
||||
eval $(starship init ion)
|
||||
```
|
||||
|
||||
## 🤝 Contributing
|
||||
## 🤝 Contribuindo
|
||||
|
||||
We are always looking for contributors of **all skill levels**! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).
|
||||
Nós estamos sempre procurando contribuidores de **todos os níveis de conhecimento**! Se você está buscando um caminho mais fácil para começar no projeto, veja essas [boas issues para começar](https://github.com/starship/starship/labels/🌱%20good%20first%20issue).
|
||||
|
||||
If you are interested in helping contribute to starship, please take a look at our [Contributing Guide](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Also, feel free to drop into our [Discord server](https://discord.gg/8Jzqu3T) and say hi. 👋
|
||||
Se você está interessado em ajudar contribuindo com o projeto, dê uma olhada no nosso [Guia de Contribuição](https://github.com/starship/starship/blob/master/CONTRIBUTING.md). Além disso, sinta-se à vontade para entrar no nosso [servidor no Discord](https://discord.gg/8Jzqu3T) e dizer oi. 👋
|
||||
|
||||
### Code Contributors
|
||||
### Contribuidores de código
|
||||
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
|
||||
Este projeto existe graças a todas as pessoas que contribuem. [[Contribuir](CONTRIBUTING.md)].
|
||||
<a href="https://github.com/starship/starship/graphs/contributors"><img src="https://opencollective.com/starship/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
### Financial Contributors
|
||||
### Contribuidores Financeiros
|
||||
|
||||
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/starship/contribute)]
|
||||
Torne-se um contribuidor financeiro e nos ajude a sustentar a nossa comunidade. [[Contribuir](https://opencollective.com/starship/contribute)]
|
||||
|
||||
#### Individuals
|
||||
#### Pessoas
|
||||
|
||||
<a href="https://opencollective.com/starship"><img src="https://opencollective.com/starship/individuals.svg?width=890"></a>
|
||||
|
||||
#### Organizations
|
||||
#### Organizações
|
||||
|
||||
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/starship/contribute)]
|
||||
Apoie este projeto com sua organização. Seu logotipo aparecerá aqui com um link para o seu site. [[Contribuir](https://opencollective.com/starship/contribute)]
|
||||
|
||||
<a href="https://opencollective.com/starship/organization/0/website"><img src="https://opencollective.com/starship/organization/0/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/starship/organization/1/website"><img src="https://opencollective.com/starship/organization/1/avatar.svg"></a>
|
||||
@ -250,21 +250,21 @@ Support this project with your organization. Your logo will show up here with a
|
||||
<a href="https://opencollective.com/starship/organization/8/website"><img src="https://opencollective.com/starship/organization/8/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/starship/organization/9/website"><img src="https://opencollective.com/starship/organization/9/avatar.svg"></a>
|
||||
|
||||
## 💭 Inspired By
|
||||
## 💭 Inspirado por
|
||||
|
||||
Please check out these previous works that helped inspire the creation of starship. 🙏
|
||||
Por favor, confira estes projetos anteriores que ajudaram a inspirar a criação do startship. 🙏
|
||||
|
||||
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - A ZSH prompt for astronauts.
|
||||
- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - Um prompt ZSH para astronautas.
|
||||
|
||||
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Cross-shell robbyrussell theme written in JavaScript.
|
||||
- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Tema robbyrussell multi-shell escrito em JavaScript.
|
||||
|
||||
- **[reujab/silver](https://github.com/reujab/silver)** - A cross-shell customizable powerline-like prompt with icons.
|
||||
- **[reujab/silver](https://github.com/reujab/silver)** - Um prompt multi-shell personalizável com ícones como o powerline.
|
||||
|
||||
<p align="center">
|
||||
<br>
|
||||
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Starship rocket icon">
|
||||
<img width="100" src="https://raw.githubusercontent.com/starship/starship/master/media/icon.png" alt="Ícone de foguete do Starship">
|
||||
</p>
|
||||
|
||||
## 📝 License
|
||||
## 📝 Licença
|
||||
|
||||
Copyright © 2019-present, [Starship Contributors](https://github.com/starship/starship/graphs/contributors).<br /> This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) licensed.
|
||||
Todos os direitos reservados © 2019-Presente, [Contribuidores Starship](https://github.com/starship/starship/graphs/contributors).<br /> Este projeto está licenciado pelo [ISC](https://github.com/starship/starship/blob/master/LICENSE).
|
||||
|
@ -8,11 +8,11 @@ This preset doesn't change anything except for the symbols used for each module.
|
||||
|
||||
![Screenshot of Nerd Font Symbols preset](/presets/nerd-font-symbols.png)
|
||||
|
||||
### Prerequisites
|
||||
### Pré-requisitos
|
||||
|
||||
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal (the example uses Fira Code Nerd Font)
|
||||
|
||||
### Configuration
|
||||
### Configuração
|
||||
|
||||
```toml
|
||||
[aws]
|
||||
|
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### Example
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. The module will b
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. The module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## 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:
|
||||
@ -515,15 +494,15 @@ The `env_var` module displays the current value of a selected environment variab
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ---------------- | ---------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed black"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
| Variable | Default | Description |
|
||||
| ---------- | --------------------- | ---------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
| `prefix` | `""` | Prefix to display immediately before the variable value. |
|
||||
| `suffix` | `""` | Suffix to display immediately after the variable value. |
|
||||
| `style` | `"dimmed bold black"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `env_var` module. |
|
||||
|
||||
### Example
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. The module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `rebar.config` file.
|
||||
- The current directory contains a `erlang.mk` file.
|
||||
|
||||
### Options
|
||||
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ---------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git Branch
|
||||
|
||||
The `git_branch` module shows the active branch of the repo in your current directory.
|
||||
@ -1012,7 +1015,7 @@ The `package` module is shown when the current directory is the repository for a
|
||||
| Variable | Default | Description |
|
||||
| ----------------- | ------------ | ---------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold 208"` | The style for the module. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Disables the `package` module. |
|
||||
|
||||
@ -1038,7 +1041,7 @@ The `php` module shows the currently installed version of PHP. The module will b
|
||||
| Variable | Default | Description |
|
||||
| ---------- | ------------ | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `style` | `"bold 147"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
|
||||
### Example
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
The `python` module shows the currently installed version of Python.
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name.
|
||||
|
||||
Otherwise, it will display the version number from `python --version` and show the current Python virtual environment if one is activated.
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
The module will be shown if any of the following conditions are met:
|
||||
|
||||
|
@ -442,10 +442,11 @@ heuristic = false
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | ------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | Символ, используемый перед отображением версии Elixir/Erlang. |
|
||||
| `disabled` | `false` | Отключает модуль `elixir`. |
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | --------------- | ------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | Символ, используемый перед отображением версии Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `elixir`. |
|
||||
|
||||
### Пример
|
||||
|
||||
@ -484,28 +485,6 @@ symbol = "🔮 "
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
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.
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Пример
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## Переменная Окружения
|
||||
|
||||
Модуль `env_var` отображает текущее значение выбранной переменной окружения. Модуль будет показан только в том случае, если любое из следующих условий соблюдено:
|
||||
@ -515,15 +494,15 @@ symbol = "e "
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ---------------- | ------------------------------------------------------------------ |
|
||||
| `symbol` | | Символ, используемый перед отображением значения переменной. |
|
||||
| `variable` | | Отображаемая переменная окружения. |
|
||||
| `default` | | Значение отображаемое, когда выбранная переменная не определена. |
|
||||
| `prefix` | `""` | Префикс, отображаемый, непосредственно перед значением переменной. |
|
||||
| `suffix` | `""` | Префикс, отображаемый, непосредственно после значением переменной. |
|
||||
| `style` | `"dimmed black"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `env_var`. |
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | --------------------- | ------------------------------------------------------------------ |
|
||||
| `symbol` | | Символ, используемый перед отображением значения переменной. |
|
||||
| `variable` | | Отображаемая переменная окружения. |
|
||||
| `default` | | Значение отображаемое, когда выбранная переменная не определена. |
|
||||
| `prefix` | `""` | Префикс, отображаемый, непосредственно перед значением переменной. |
|
||||
| `suffix` | `""` | Префикс, отображаемый, непосредственно после значением переменной. |
|
||||
| `style` | `"dimmed bold black"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `env_var`. |
|
||||
|
||||
### Пример
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. Модуль будет показан, если любое из следующих условий соблюдено:
|
||||
|
||||
- Текущий каталог содержит файл `rebar.config`.
|
||||
- Текущий каталог содержит файл `erlang.mk`.
|
||||
|
||||
### Опции
|
||||
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Пример
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Ветвь Git
|
||||
|
||||
Модуль `git_branch` показывает активную ветку репозитория в вашем текущей директории.
|
||||
@ -1012,7 +1015,7 @@ symbol = "🤖 "
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ----------------- | ------------ | --------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | Символ, используемый перед отображением версии пакета. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `style` | `"bold 208"` | Стиль модуля. |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | Отключает модуль `package`. |
|
||||
|
||||
@ -1038,7 +1041,7 @@ symbol = "🎁 "
|
||||
| Переменная | По умолчанию | Описание |
|
||||
| ---------- | ------------ | --------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | Символ, используемый перед отображением версии PHP. |
|
||||
| `style` | `"bold red"` | Стиль модуля. |
|
||||
| `style` | `"bold 147"` | Стиль модуля. |
|
||||
| `disabled` | `false` | Отключает модуль `php`. |
|
||||
|
||||
### Пример
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
Модуль `python` показывает установленную версию Python.
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
Если `pyenv_version_name` установлено значение `true`, на экране появится имя версии pyenv.
|
||||
|
||||
Иначе на экране будет показан номер версии из `python --version` и будет отображено текущее виртуального окружения Python, если активировано.
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
Модуль будет показан, если любое из следующих условий соблюдено:
|
||||
|
||||
|
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### 配置项
|
||||
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | ------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | 此组件的样式。 |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### 示例
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. 此组件将在
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. 此组件只有满足以下条件之一时才会被显示:
|
||||
|
||||
- 当前目录包含一个 `rebar.config` 文件.
|
||||
- 当前目录包含一个 `erlang.mk` 文件.
|
||||
|
||||
### 配置项
|
||||
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | ------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### 示例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## Environment Variable
|
||||
|
||||
`env_var` 组件显示选定的环境变量的当前值。 此组件只有满足以下条件之一时才会被显示:
|
||||
@ -515,15 +494,15 @@ symbol = "e "
|
||||
|
||||
### 配置项
|
||||
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | ---------------- | ------------------- |
|
||||
| `symbol` | | 这个字段的内容会显示在环境变量值之前。 |
|
||||
| `variable` | | 要显示的环境变量。 |
|
||||
| `default` | | 所选变量未定义时显示的默认值。 |
|
||||
| `prefix` | `""` | 直接在显示环境变量值前显示的前缀。 |
|
||||
| `suffix` | `""` | 直接在显示环境变量值后显示的后缀。 |
|
||||
| `style` | `"dimmed black"` | 此组件的样式。 |
|
||||
| `disabled` | `false` | 禁用 `env_var` 组件。 |
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | --------------------- | ------------------- |
|
||||
| `symbol` | | 这个字段的内容会显示在环境变量值之前。 |
|
||||
| `variable` | | 要显示的环境变量。 |
|
||||
| `default` | | 所选变量未定义时显示的默认值。 |
|
||||
| `prefix` | `""` | 直接在显示环境变量值前显示的前缀。 |
|
||||
| `suffix` | `""` | 直接在显示环境变量值后显示的后缀。 |
|
||||
| `style` | `"dimmed bold black"` | 此组件的样式。 |
|
||||
| `disabled` | `false` | 禁用 `env_var` 组件。 |
|
||||
|
||||
### 示例
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. 此组件将在符合以下任意条件之一时显示:
|
||||
|
||||
- 当前目录包含一个 `rebar.config` 文件.
|
||||
- 当前目录包含一个 `erlang.mk` 文件.
|
||||
|
||||
### 配置项
|
||||
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | ---------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### 示例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git Branch
|
||||
|
||||
`git_branch` 组件显示当前目录的 git 仓库的活动分支。
|
||||
@ -1012,7 +1015,7 @@ symbol = "🤖 "
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ----------------- | ------------ | --------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | 这个字段的内容会显示在当前软件包版本之前。 |
|
||||
| `style` | `"bold red"` | 此组件的样式。 |
|
||||
| `style` | `"bold 208"` | 此组件的样式。 |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | 禁用 `package` 组件。 |
|
||||
|
||||
@ -1038,7 +1041,7 @@ symbol = "🎁 "
|
||||
| 字段 | 默认值 | 描述 |
|
||||
| ---------- | ------------ | ----------------------- |
|
||||
| `symbol` | `"🐘 "` | 这个字段的内容会显示在当前 PHP 版本之前。 |
|
||||
| `style` | `"bold red"` | 此组件的样式。 |
|
||||
| `style` | `"bold 147"` | 此组件的样式。 |
|
||||
| `disabled` | `false` | 禁用 `php` 组件。 |
|
||||
|
||||
### 示例
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
`python` 组件显示当前安装的 Python 版本。
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
如果 `pyenv_version_name` 设置为 `true`,则将显示 pyenv 版本名称。
|
||||
|
||||
否则,它将显示来自 `python --version` 的版本号,并显示当前的 Python 虚拟环境,如果激活了的话。
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
此组件将在符合以下任意条件之一时显示:
|
||||
|
||||
|
@ -27,7 +27,7 @@ symbol = "➜" # 設定 "symbol" 區段為 "➜"
|
||||
disabled = true
|
||||
```
|
||||
|
||||
You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable:
|
||||
你可以藉由修改 `STARSHIP_CONFIG`環境變數而改變預設的`starship.toml` 檔案位置
|
||||
```sh
|
||||
export STARSHIP_CONFIG=~/.starship
|
||||
```
|
||||
@ -134,17 +134,17 @@ prompt_order = [
|
||||
|
||||
`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) 這個設定檔
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ----------------- | --------------- | --------------------------------------------------------------------------- |
|
||||
| `symbol` | `"☁️ "` | 顯示在目前 AWS 配置之前的符號。 |
|
||||
| `displayed_items` | `all` | Choose which item to display. Possible values: [`all`, `profile`, `region`] |
|
||||
| `region_aliases` | | Table of region aliases to display in addition to the AWS name. |
|
||||
| `style` | `"bold yellow"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `AWS` 模組。 |
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ----------------- | --------------- | ------------------------------------------------------ |
|
||||
| `symbol` | `"☁️ "` | 顯示在目前 AWS 配置之前的符號。 |
|
||||
| `displayed_items` | `all` | 選擇預顯示的項目 Possible values: [`all`, `profile`, `region`] |
|
||||
| `region_aliases` | | 除了AWS名稱外,顯示區域別名表 |
|
||||
| `style` | `"bold yellow"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `AWS` 模組。 |
|
||||
|
||||
### 範例
|
||||
|
||||
@ -274,13 +274,13 @@ use_symbol_for_status = true
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ------------------- | --------------- | ---------------------------------------------------------- |
|
||||
| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
|
||||
| `show_milliseconds` | `false` | Show milliseconds in addition to seconds for the duration. |
|
||||
| `prefix` | `took` | 在指令持續時間正前方顯示的前綴。 |
|
||||
| `style` | `"bold yellow"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `cmd_duration` 模組。 |
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ------------------- | --------------- | ----------------------------------------------------- |
|
||||
| `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). |
|
||||
| `show_milliseconds` | `false` | 顯示時間除了以秒為單位外,亦以毫秒顯示 |
|
||||
| `prefix` | `took` | 在指令持續時間正前方顯示的前綴。 |
|
||||
| `style` | `"bold yellow"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `cmd_duration` 模組。 |
|
||||
|
||||
### 範例
|
||||
|
||||
@ -304,12 +304,12 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `1` | The number of directories the environment path should be truncated to, if the environment was created via `conda create -p [path]`. `0` means no truncation. Also see the [`directory`](#directory) module. |
|
||||
| `symbol` | `"C "` | 環境名稱前使用的符號。 |
|
||||
| `style` | `"bold green"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `conda` 模組。 |
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ------------------- | -------------- | ----------------------------------------------------------------------------------------------- |
|
||||
| `truncation_length` | `1` | 如果環境變數由所`conda create -p [path]`產生時,環境變數的資料夾需要截斷的數目。 `0` 表示不截斷 也請參考 [`directory`](#directory)模組 |
|
||||
| `symbol` | `"C "` | 環境名稱前使用的符號。 |
|
||||
| `style` | `"bold green"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `conda` 模組。 |
|
||||
|
||||
### 範例
|
||||
|
||||
@ -322,10 +322,10 @@ style = "dimmed green"
|
||||
|
||||
## Crystal
|
||||
|
||||
The `crystal` module shows the currently installed version of Crystal. 這個模組在下列其中一個條件達成時顯示:
|
||||
`crystal` 模組顯示現在所安裝的Crystal版本 這個模組將在下列其中一個條件滿足時顯示:
|
||||
|
||||
- 現在資料夾中含有一個 `shard.yml` 檔案
|
||||
- The current directory contains a `.cr` file
|
||||
- 現在資料夾中含有一個`.cr`檔案
|
||||
|
||||
### 選項
|
||||
|
||||
@ -442,10 +442,11 @@ The `elixir` module shows the currently installed version of Elixir and Erlang/O
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | ------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | --------------- | --------------------------------------------------------------- |
|
||||
| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
|
||||
| `style` | `"bold purple"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | Disables the `elixir` module. |
|
||||
|
||||
### 範例
|
||||
|
||||
@ -484,28 +485,6 @@ The `elm` module shows the currently installed version of Elm. 這個模組在
|
||||
symbol = " "
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
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.
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | ------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### 範例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
## 環境變數
|
||||
|
||||
`env_var`模組顯示一個選擇的環境變數的現在數值。 這個模組只在下列條件其中之一達到時顯示:
|
||||
@ -515,15 +494,15 @@ symbol = "e "
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | ---------------- | -------------------- |
|
||||
| `symbol` | | 顯示在變數數值之前的符號。 |
|
||||
| `variable` | | 要顯示的環境變數。 |
|
||||
| `default` | | 在選擇的變數值沒有定義時,顯示的預設值。 |
|
||||
| `prefix` | `""` | 在變數值正前方顯示的前綴。 |
|
||||
| `suffix` | `""` | 在變數值正後方顯示的後綴。 |
|
||||
| `style` | `"dimmed black"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `env_var` 模組。 |
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | --------------------- | -------------------- |
|
||||
| `symbol` | | 顯示在變數數值之前的符號。 |
|
||||
| `variable` | | 要顯示的環境變數。 |
|
||||
| `default` | | 在選擇的變數值沒有定義時,顯示的預設值。 |
|
||||
| `prefix` | `""` | 在變數值正前方顯示的前綴。 |
|
||||
| `suffix` | `""` | 在變數值正後方顯示的後綴。 |
|
||||
| `style` | `"dimmed bold black"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | 停用 `env_var` 模組。 |
|
||||
|
||||
### 範例
|
||||
|
||||
@ -535,6 +514,30 @@ variable = "SHELL"
|
||||
default = "unknown shell"
|
||||
```
|
||||
|
||||
## Erlang
|
||||
|
||||
The `erlang` module shows the currently installed version of Erlang/OTP. 這個模組在下列其中一個條件達成時顯示:
|
||||
|
||||
- 現在資料夾中包含一個 `rebar.config` 檔案.
|
||||
- 現在資料夾中包含一個 `erlang.mk` 檔案.
|
||||
|
||||
### 選項
|
||||
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | ---------- | -------------------------------------------------------- |
|
||||
| `symbol` | `"🖧 "` | The symbol used before displaying the version of Erlang. |
|
||||
| `style` | `bold red` | The style for this module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### 範例
|
||||
|
||||
```toml
|
||||
# ~/.config/starship.toml
|
||||
|
||||
[erlang]
|
||||
symbol = "e "
|
||||
```
|
||||
|
||||
## Git 分支
|
||||
|
||||
`git_branch` 模組顯示現在的資料夾中使用中的儲存庫的分支。
|
||||
@ -1012,7 +1015,7 @@ The `package` 模組在現在資料夾是一個套件的儲藏庫時出現,並
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ----------------- | ------------ | --------------------------------------------------------- |
|
||||
| `symbol` | `"📦 "` | 顯示在套件的版本之前的符號。 |
|
||||
| `style` | `"bold red"` | 這個模組的風格。 |
|
||||
| `style` | `"bold 208"` | 這個模組的風格。 |
|
||||
| `display_private` | `false` | Enable displaying version for packages marked as private. |
|
||||
| `disabled` | `false` | 停用 `package` 模組。 |
|
||||
|
||||
@ -1038,7 +1041,7 @@ The `php` module shows the currently installed version of PHP. 這個模組在
|
||||
| 變數 | 預設 | 說明 |
|
||||
| ---------- | ------------ | ----------------------------------------------------- |
|
||||
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
|
||||
| `style` | `"bold red"` | 這個模組的風格。 |
|
||||
| `style` | `"bold 147"` | 這個模組的風格。 |
|
||||
| `disabled` | `false` | Disables the `php` module. |
|
||||
|
||||
### 範例
|
||||
@ -1052,11 +1055,9 @@ symbol = "🔹 "
|
||||
|
||||
## Python
|
||||
|
||||
`python` 模組顯示現在安裝的 Python 版本
|
||||
The `python` module shows the currently installed version of Python and the current Python virtual environment if one is activated.
|
||||
|
||||
如果 `pyenv_version_name` 的值為 `true`, 會顯示 pyenv 內的版本名稱
|
||||
|
||||
要不然就會顯示 `python -version` 的版本和有啟用的 Python 虛擬環境版本
|
||||
If `pyenv_version_name` is set to `true`, it will display the pyenv version name. Otherwise, it will display the version number from `python --version`.
|
||||
|
||||
這個模組在下列其中一個條件達成時顯示:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user