diff --git a/docs/ar-SA/README.md b/docs/ar-SA/README.md index ffc403eb1..e3cfcb8ae 100644 --- a/docs/ar-SA/README.md +++ b/docs/ar-SA/README.md @@ -18,7 +18,7 @@ features: footer: ISC Licensed | Copyright © 2019-present Starship Contributors #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, Tcsh, Elvish, Nu, Xonsh, and PowerShell. +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, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. ---
デフォルトでは、システムスワップの合計がゼロ以外の場合、スワップ使用量が表示されます。
+By default the swap usage is displayed if the total system swap is non-zero. -::: tip
+::: tip -このモジュールはデフォルトで無効になっています。
-有効にするには、設定ファイルでdisabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -1893,7 +1905,7 @@ style = "bold dimmed green"
## Mercurial Branch
-` hg_branch `モジュールは、現在のディレクトリにあるリポジトリのアクティブなブランチを示します。
+The `hg_branch` module shows the active branch of the repo in your current directory.
### オプション
@@ -1971,7 +1983,7 @@ symbol = "🎣 "
## Nix-shell
-The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. このモジュールは、nixシェル環境内にあるときに表示されます。
+The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/developing-with-nix-shell.html) environment. The module will be shown when inside a nix-shell environment.
### オプション
@@ -2135,7 +2147,7 @@ symbol = "☁️ "
## パッケージのバージョン
-`package`モジュールは、現在のディレクトリがパッケージのリポジトリである場合に表示され、現在のバージョンが表示されます。 The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -2152,6 +2164,7 @@ symbol = "☁️ "
- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**Dart**](https://pub.dev/) - The `dart` package version is extracted from the `pubspec.yaml` present in the current directory
> ⚠️ 表示されるバージョンは、パッケージマネージャーではなく、ソースコードが現在のディレクトリにあるパッケージのバージョンです。
@@ -2365,7 +2378,7 @@ format = "via [$symbol$version](bold white)"
The `python` module shows the currently installed version of [Python](https://www.python.org/) and the current [Python virtual environment](https://docs.python.org/tutorial/venv.html) if one is activated.
-`pyenvversionname` が `true` に設定されている場合 、pyenv でのバージョン名が表示されます 。 そうでなければ、`python --version` を元にバージョン番号を表示します。
+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`.
デフォルトでは次の条件のいずれかが満たされると、モジュールが表示されます。
@@ -2532,7 +2545,7 @@ symbol = "🔴 "
## Ruby
-デフォルトでは`ruby`モジュールは現在インストールされている[Ruby](https://www.ruby-lang.org/)のバージョンを表示します。 次の条件のいずれかが満たされると、モジュールが表示されます:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます:
- カレントディレクトリに`Gemfile`ファイルが含まれている
- カレントディレクトリに `.ruby-version` ファイルが含まれている
@@ -2576,7 +2589,7 @@ symbol = "🔺 "
## Rust
-デフォルトでは`rust`モジュールは現在インストールされている[Rust](https://www.rust-lang.org/)のバージョンを表示します。 次の条件のいずれかが満たされると、モジュールが表示されます:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). 次の条件のいずれかが満たされると、モジュールが表示されます:
- カレントディレクトリに`Cargo.toml`ファイルが含まれている
- カレントディレクトリに`.rs`の拡張子のファイルが含まれている
@@ -2659,7 +2672,7 @@ The `shell` module shows an indicator for currently used shell.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2675,6 +2688,8 @@ The `shell` module shows an indicator for currently used shell.
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | moduleのフォーマットです。 |
| `style` | `"white bold"` | モジュールのスタイルです。 |
@@ -2776,11 +2791,11 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### オプション
@@ -2806,6 +2821,7 @@ The `status` module displays the exit code of the previous command. The module w
| 変数 | 設定例 | 説明 |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
+| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
@@ -2838,7 +2854,7 @@ The `sudo` module displays if sudo credentials are currently cached. The module
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2982,11 +2998,11 @@ format = "[🏎💨 $workspace]($style) "
## Time
-`time`モジュールは、現在の**現地**時間を示します。 `format`設定は、時間の表示方法を制御するために[`chrono`](https://crates.io/crates/chrono)クレートによって使用されます。 使用可能なオプションを確認するには、[chrono strftimeのドキュメント](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html)をご覧ください。
+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.
::: tip
-このモジュールはデフォルトで無効になっています。 有効にするには、設定ファイルで`disabled`を`false`に設定します。
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -3002,7 +3018,7 @@ format = "[🏎💨 $workspace]($style) "
| `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"`. それ以外の場合、デフォルトは`"%T"`です。 Manually setting `time_format` will override the `use_12hr` setting.
+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.
### 変数
@@ -3028,7 +3044,7 @@ time_range = "10:00:00-14:00:00"
## ユーザー名
-`username`モジュールには、アクティブなユーザーのユーザー名が表示されます。 次の条件のいずれかが満たされると、モジュールが表示されます:
+The `username` module shows active user's username. 次の条件のいずれかが満たされると、モジュールが表示されます:
- カレントユーザーがroot
- カレントユーザーが、ログインしているユーザーとは異なる
diff --git a/docs/ja-JP/faq/README.md b/docs/ja-JP/faq/README.md
index ac34530f7..747d5bb91 100644
--- a/docs/ja-JP/faq/README.md
+++ b/docs/ja-JP/faq/README.md
@@ -69,13 +69,13 @@ Starship executes different commands to get information to display in the prompt
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
```sh
-env STARHIP_LOG=trace starship module rust
+env STARSHIP_LOG=trace starship module rust
```
If starship is being slow you can try using the `timings` command to see if there is a particular module or command that to blame.
```sh
-env STARHIP_LOG=trace starship timings
+env STARSHIP_LOG=trace starship timings
```
This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
@@ -117,6 +117,6 @@ Starship がパッケージマネージャを使用してインストールさ
Starship をインストールスクリプトを使用してインストールした場合、次のコマンドでバイナリが削除されます。
```sh
-# starshipバイナリを見つけて削除
-sh -c 'rm "$(which starship)"''
+# Locate and delete the starship binary
+sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/ja-JP/guide/README.md b/docs/ja-JP/guide/README.md
index afa9592e6..9c64f3155 100644
--- a/docs/ja-JP/guide/README.md
+++ b/docs/ja-JP/guide/README.md
@@ -72,6 +72,22 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
+ />
+
+
+
+
@@ -119,7 +119,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
#### Elvish
- ::: 주의 elvish v0.15 이상만 지원. :::
+ ::: warning Only elvish v0.17 or higher is supported. :::
아래의 라인을 `~/.elvish/rc.elv` 마지막에 추가:
@@ -164,3 +164,14 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
execx($(starship init xonsh))
```
+
+
+ #### Cmd
+
+ You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
+
+ ```lua
+ -- starship.lua
+
+ load(io.popen('starship init cmd'):read("*a"))()
+ ```
diff --git a/docs/ko-KR/advanced-config/README.md b/docs/ko-KR/advanced-config/README.md
index 1bda2ae1a..0a2b2ddd7 100644
--- a/docs/ko-KR/advanced-config/README.md
+++ b/docs/ko-KR/advanced-config/README.md
@@ -8,6 +8,30 @@ The configurations in this section are subject to change in future releases of S
:::
+## Custom pre-prompt and pre-execution Commands in Cmd
+
+Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
+
+- To run a custom function right before the prompt is drawn, define a new function called `starship_preprompt_user_func`. This function receives the current prompt as a string that you can utilize. For example, to draw a rocket before the prompt, you would do
+
+```lua
+function starship_preprompt_user_func(prompt)
+ print("🚀")
+end
+
+load(io.popen('starship init cmd'):read("*a"))()
+```
+
+- To run a custom function right before a command is executed, define a new function called `starship_precmd_user_func`. This function receives the current commandline as a string that you can utilize. For example, to print the command that's about to be executed, you would do
+
+```lua
+function starship_precmd_user_func(line)
+ print("Executing: "..line)
+end
+
+load(io.popen('starship init cmd'):read("*a"))()
+```
+
## Custom pre-prompt and pre-execution Commands in Bash
Bash does not have a formal preexec/precmd framework like most other shells. Because of this, it is difficult to provide fully customizable hooks in `bash`. However, Starship does give you limited ability to insert your own functions into the prompt-rendering procedure:
@@ -45,7 +69,7 @@ function Invoke-Starship-PreCommand {
## Change Window Title
-Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish even does it by default. Starship does not do this, but it's fairly straightforward to add this functionality to `bash` or `zsh`.
+Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish even does it by default. Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
First, define a window title change function (identical in bash and zsh):
@@ -80,6 +104,16 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+For Cmd, you can change the window title using the `starship_preprompt_user_func` function.
+
+```lua
+function starship_preprompt_user_func(prompt)
+ console.settitle(os.getenv('USERNAME').."@"..os.getenv('COMPUTERNAME')..": "..os.getcwd())
+end
+
+load(io.popen('starship init cmd'):read("*a"))()
+```
+
You can also set a similar output with PowerShell by creating a function named `Invoke-Starship-PreCommand`.
```powershell
@@ -97,7 +131,7 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd.
### Example
@@ -117,6 +151,28 @@ Produces a prompt like the following:
▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
```
+## Continuation Prompt
+
+Some shells support a continuation prompt along with the normal prompt. This prompt is rendered instead of the normal prompt when the user has entered an incomplete statement (such as a single left parenthesis or quote).
+
+Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `"[∙](bright-black) "`.
+
+Note: `continuation_prompt` should be set to a literal string without any variables.
+
+Note: Continuation prompts are only available in the following shells:
+
+ - `bash`
+ - `zsh`
+ - `파워셀`
+
+### Example
+
+```toml
+# ~/.config/starship.toml
+
+# A continuation prompt that displays two filled in arrows
+continuation_prompt = "▶▶"
+```
## Style Strings
diff --git a/docs/ko-KR/config/README.md b/docs/ko-KR/config/README.md
index 7f953ab4b..2565504e2 100644
--- a/docs/ko-KR/config/README.md
+++ b/docs/ko-KR/config/README.md
@@ -24,13 +24,19 @@ disabled = true
You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
```sh
-export STARSHIP_CONFIG=~/.starship/config.toml
+export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
```
Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
```powershell
-$ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
+$ENV:STARSHIP_CONFIG = "$HOME\example\non\default\path\starship.toml"
+```
+
+Or for Cmd (Windows) would be adding this line to your `starship.lua`:
+
+```lua
+os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\starship.toml')
```
### Logging
@@ -47,6 +53,12 @@ Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE
$ENV:STARSHIP_CACHE = "$HOME\AppData\Local\Temp"
```
+Or for Cmd (Windows) would be adding this line to your `starship.lua`:
+
+```lua
+os.setenv('STARSHIP_CACHE', 'C:\\Users\\user\\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 Node.js that is currently installed on your computer, if your current directory is a Node.js project.
@@ -425,13 +437,13 @@ By default it only changes color. If you also want to change its shape take a lo
::: warning
-`error_symbol` is not supported on elvish and nu shell.
+`error_symbol` is not supported on nu shell.
:::
::: warning
-`vicmd_symbol` is only supported in fish and zsh.
+`vicmd_symbol` is only supported in cmd, fish and zsh.
:::
@@ -568,7 +580,7 @@ Bash users who need preexec-like functionality can use [rcaloras's bash_preexec
::: tip
-Showing desktop notifications requires starship to be built with `rust-notify` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
+Showing desktop notifications requires starship to be built with `notify-rust` support. You check if your starship supports notifications by running `STARSHIP_LOG=debug starship module cmd_duration -d 60000` when `show_notifications` is set to `true`.
:::
@@ -713,20 +725,20 @@ format = "via [🔰 $version](bold red) "
## Deno
The `deno` module shows you your currently installed version of [Deno](https://deno.land/). By default the module will be shown if any of the following conditions are met:
-- The current directory contains a `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
+- The current directory contains a `deno.json`, `deno.jsonc`, `mod.ts`, `mod.js`, `deps.ts` or `deps.js` file
### Options
-| Option | Default | Description |
-| ------------------- | -------------------------------------------- | ------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🦕 "` | A format string representing the symbol of Deno |
-| `detect_extensions` | `[]` | Which extensions should trigger this module. |
-| `detect_files` | `["mod.ts", "mod.js", "deps.ts", "deps.js"]` | Which filenames should trigger this module. |
-| `detect_folders` | `[]` | Which folders should trigger this module. |
-| `style` | `"green bold"` | The style for the module. |
-| `disabled` | `false` | Disables the `deno` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"🦕 "` | A format string representing the symbol of Deno |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `["deno.json", "deno.jsonc", "mod.ts", "mod.js", "deps.ts", "deps.js"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `style` | `"green bold"` | The style for the module. |
+| `disabled` | `false` | Disables the `deno` module. |
### Variables
@@ -755,18 +767,19 @@ For example, given `~/Dev/Nix/nixpkgs/pkgs` where `nixpkgs` is the repo root, an
### Options
-| Option | Default | Description |
-| ------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- |
-| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
-| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
-| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
-| `style` | `"bold cyan"` | The style for the module. |
-| `disabled` | `false` | Disables the `directory` module. |
-| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
-| `read_only_style` | `"red"` | The style for the read only symbol. |
-| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
-| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
-| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| Option | Default | Description |
+| ------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------- |
+| `truncation_length` | `3` | The number of parent folders that the current directory should be truncated to. |
+| `truncate_to_repo` | `true` | Whether or not to truncate to the root of the git repo that you're currently in. |
+| `format` | `"[$path]($style)[$read_only]($read_only_style) "` | The format for the module. |
+| `style` | `"bold cyan"` | The style for the module. |
+| `disabled` | `false` | Disables the `directory` module. |
+| `read_only` | `"🔒"` | The symbol indicating current directory is read only. |
+| `read_only_style` | `"red"` | The style for the read only symbol. |
+| `truncation_symbol` | `""` | The symbol to prefix to truncated paths. eg: "…/" |
+| `repo_root_style` | `None` | The style for the root of the git repo when `truncate_to_repo` option is set to false. |
+| `home_symbol` | `"~"` | The symbol indicating home directory. |
+| `use_os_path_sep` | `true` | Use the OS specific path seperator instead of always using `/` (e.g. `\` on Windows) |
This module has a few advanced configuration options that control how the directory is displayed.
@@ -1334,22 +1347,23 @@ The `git_status` module shows symbols representing the state of the repo in your
### Options
-| Option | Default | Description |
-| ------------ | ----------------------------------------------- | ----------------------------------- |
-| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
-| `conflicted` | `"="` | This branch has merge conflicts. |
-| `ahead` | `"⇡"` | The format of `ahead` |
-| `behind` | `"⇣"` | The format of `behind` |
-| `diverged` | `"⇕"` | The format of `diverged` |
-| `up_to_date` | `""` | The format of `up_to_date` |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"»"` | The format of `renamed` |
-| `deleted` | `"✘"` | The format of `deleted` |
-| `style` | `"bold red"` | The style for the module. |
-| `disabled` | `false` | Disables the `git_status` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------- | ----------------------------------- |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
+| `conflicted` | `"="` | This branch has merge conflicts. |
+| `ahead` | `"⇡"` | The format of `ahead` |
+| `behind` | `"⇣"` | The format of `behind` |
+| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
+| `style` | `"bold red"` | The style for the module. |
+| `ignore_submodules` | `false` | Ignore changes to submodules. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -1513,10 +1527,10 @@ The `hostname` module shows the system hostname.
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| --------- | ---------- | ----------------------------------- |
+| hostname | `computer` | The hostname of the computer |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2133,7 +2147,7 @@ symbol = "☁️ "
## 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`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -2150,6 +2164,7 @@ The `package` module is shown when the current directory is the repository for a
- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**Dart**](https://pub.dev/) - The `dart` package version is extracted from the `pubspec.yaml` present in the current directory
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2673,6 +2688,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | The format for the module. |
| `style` | `"white bold"` | The style for the module. |
@@ -2778,7 +2795,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### Options
@@ -2804,6 +2821,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Variable | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
+| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
diff --git a/docs/ko-KR/faq/README.md b/docs/ko-KR/faq/README.md
index 8422ee2e3..99dd6bcc8 100644
--- a/docs/ko-KR/faq/README.md
+++ b/docs/ko-KR/faq/README.md
@@ -69,13 +69,13 @@ If you see symbols that you don't recognise you can use `starship explain` to ex
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
```sh
-env STARHIP_LOG=trace starship module rust
+env STARSHIP_LOG=trace starship module rust
```
If starship is being slow you can try using the `timings` command to see if there is a particular module or command that to blame.
```sh
-env STARHIP_LOG=trace starship timings
+env STARSHIP_LOG=trace starship timings
```
This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
@@ -118,5 +118,5 @@ If Starship was installed using the install script, the following command will d
```sh
# Locate and delete the starship binary
-sh -c 'rm "$(which starship)"'
+sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/ko-KR/guide/README.md b/docs/ko-KR/guide/README.md
index 620df71e7..740c53499 100644
--- a/docs/ko-KR/guide/README.md
+++ b/docs/ko-KR/guide/README.md
@@ -72,6 +72,22 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
+ />This module has a few advanced configuration options that control how the directory is displayed.
@@ -1334,22 +1347,23 @@ The `git_status` module shows symbols representing the state of the repo in your
### Options
-| Option | Default | Description |
-| ------------ | ----------------------------------------------- | ----------------------------------- |
-| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
-| `conflicted` | `"="` | This branch has merge conflicts. |
-| `ahead` | `"⇡"` | The format of `ahead` |
-| `behind` | `"⇣"` | The format of `behind` |
-| `diverged` | `"⇕"` | The format of `diverged` |
-| `up_to_date` | `""` | The format of `up_to_date` |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"»"` | The format of `renamed` |
-| `deleted` | `"✘"` | The format of `deleted` |
-| `style` | `"bold red"` | The style for the module. |
-| `disabled` | `false` | Disables the `git_status` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------- | ----------------------------------- |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
+| `conflicted` | `"="` | This branch has merge conflicts. |
+| `ahead` | `"⇡"` | The format of `ahead` |
+| `behind` | `"⇣"` | The format of `behind` |
+| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
+| `style` | `"bold red"` | The style for the module. |
+| `ignore_submodules` | `false` | Ignore changes to submodules. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -1513,10 +1527,10 @@ The `hostname` module shows the system hostname.
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| --------- | ---------- | ----------------------------------- |
+| hostname | `computer` | The hostname of the computer |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2133,7 +2147,7 @@ symbol = "☁️ "
## 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`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -2150,6 +2164,7 @@ The `package` module is shown when the current directory is the repository for a
- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**Dart**](https://pub.dev/) - The `dart` package version is extracted from the `pubspec.yaml` present in the current directory
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2673,6 +2688,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | The format for the module. |
| `style` | `"white bold"` | The style for the module. |
@@ -2778,7 +2795,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### Options
@@ -2804,6 +2821,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Variable | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
+| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
diff --git a/docs/nl-NL/faq/README.md b/docs/nl-NL/faq/README.md
index 8422ee2e3..99dd6bcc8 100644
--- a/docs/nl-NL/faq/README.md
+++ b/docs/nl-NL/faq/README.md
@@ -69,13 +69,13 @@ If you see symbols that you don't recognise you can use `starship explain` to ex
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
```sh
-env STARHIP_LOG=trace starship module rust
+env STARSHIP_LOG=trace starship module rust
```
If starship is being slow you can try using the `timings` command to see if there is a particular module or command that to blame.
```sh
-env STARHIP_LOG=trace starship timings
+env STARSHIP_LOG=trace starship timings
```
This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
@@ -118,5 +118,5 @@ If Starship was installed using the install script, the following command will d
```sh
# Locate and delete the starship binary
-sh -c 'rm "$(which starship)"'
+sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/nl-NL/guide/README.md b/docs/nl-NL/guide/README.md
index 78326cdbb..c174a8e9f 100644
--- a/docs/nl-NL/guide/README.md
+++ b/docs/nl-NL/guide/README.md
@@ -70,6 +70,22 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
+ />This module has a few advanced configuration options that control how the directory is displayed.
@@ -1334,22 +1347,23 @@ The `git_status` module shows symbols representing the state of the repo in your
### Options
-| Option | Default | Description |
-| ------------ | ----------------------------------------------- | ----------------------------------- |
-| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
-| `conflicted` | `"="` | This branch has merge conflicts. |
-| `ahead` | `"⇡"` | The format of `ahead` |
-| `behind` | `"⇣"` | The format of `behind` |
-| `diverged` | `"⇕"` | The format of `diverged` |
-| `up_to_date` | `""` | The format of `up_to_date` |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"»"` | The format of `renamed` |
-| `deleted` | `"✘"` | The format of `deleted` |
-| `style` | `"bold red"` | The style for the module. |
-| `disabled` | `false` | Disables the `git_status` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------- | ----------------------------------- |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
+| `conflicted` | `"="` | This branch has merge conflicts. |
+| `ahead` | `"⇡"` | The format of `ahead` |
+| `behind` | `"⇣"` | The format of `behind` |
+| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
+| `style` | `"bold red"` | The style for the module. |
+| `ignore_submodules` | `false` | Ignore changes to submodules. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -1513,10 +1527,10 @@ The `hostname` module shows the system hostname.
### Variables
-| Zmienne | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Zmienne | Example | Description |
+| --------- | ---------- | ----------------------------------- |
+| hostname | `computer` | The hostname of the computer |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2133,7 +2147,7 @@ symbol = "☁️ "
## 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`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -2150,6 +2164,7 @@ The `package` module is shown when the current directory is the repository for a
- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**Dart**](https://pub.dev/) - The `dart` package version is extracted from the `pubspec.yaml` present in the current directory
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2673,6 +2688,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | The format for the module. |
| `style` | `"white bold"` | The style for the module. |
@@ -2778,7 +2795,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### Options
@@ -2804,6 +2821,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Zmienne | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
+| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
diff --git a/docs/pl-PL/faq/README.md b/docs/pl-PL/faq/README.md
index ef3c073ef..d02917b21 100644
--- a/docs/pl-PL/faq/README.md
+++ b/docs/pl-PL/faq/README.md
@@ -69,13 +69,13 @@ Jeśli zauważyłeś symbole których nie rozpoznajesz, możesz użyć `starship
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
```sh
-env STARHIP_LOG=trace starship module rust
+env STARSHIP_LOG=trace starship module rust
```
If starship is being slow you can try using the `timings` command to see if there is a particular module or command that to blame.
```sh
-env STARHIP_LOG=trace starship timings
+env STARSHIP_LOG=trace starship timings
```
This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
@@ -118,5 +118,5 @@ If Starship was installed using the install script, the following command will d
```sh
# Locate and delete the starship binary
-sh -c 'rm "$(which starship)"'
+sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/pl-PL/guide/README.md b/docs/pl-PL/guide/README.md
index 240055b91..f64b98be1 100644
--- a/docs/pl-PL/guide/README.md
+++ b/docs/pl-PL/guide/README.md
@@ -72,6 +72,22 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
+ />Este módulo tem algumas configurações avançadas que controlam como o diretório é exibido.
+This module has a few advanced configuration options that control how the directory is displayed.
-| Advanced Option | Padrão | Descrição |
-| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `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` | If `true` render the logical path sourced from the shell via `PWD` or `--logical-path`. If `false` instead render the physical filesystem path with symlinks resolved. |
+| Opções Avançadas | Padrão | Descrição |
+| --------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `substituições` | | Uma tabela de substituições para fazer no path. |
+| `fish_style_pwd_dir_length` | `0` | O número de caracteres para usar quando aplicado no path logico do fish shell pwd. |
+| `use_logical_path` | `true` | Se `true` exibe um caminho lógico originado do shell via `PWD` ou`--logical-path`. Se `false` em vez disso, exibe o caminho do filesystem com os symlinks resolvidos. |
`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.
@@ -846,9 +859,9 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-O módulo `dotnet` exibe a versão relevante do [.NET Core SDK](https://dotnet.microsoft.com/) para a pasta atual. Se o SDK foi fixado na pasta atual, a versão será exibida. Caso contrario será exibida a ultima versão instalada do SDK.
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) 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.
-Por padrão o módulo vai apenas exibir no seu prompt quando um ou mais dos seguintes arquivos estiverem presente no diretório:
+By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
- `global.json`
- `project.json`
@@ -859,11 +872,11 @@ Por padrão o módulo vai apenas exibir no seu prompt quando um ou mais dos segu
- `*.fsproj`
- `*.xproj`
-Você também precisa do .NET Core SDK instalado para usá-lo corretamente.
+You'll also need the .NET Core SDK installed in order to use it correctly.
-Internamente, este módulo usa seu próprio mecanismo de detecção de versão. Normalmente é duas vezes mais rápido que executar `dotnet --version`, mas pode exibir uma versão errado se o projeto .NET tiver o layout de diretório incomum. Se a precisão é mais importante que velocidade, você pode desabilitar o mecanismo definindo `heuristic = false` nas opções do modulo.
+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.
-O módulo também vai exibir o Target Framework Moniker (Variáveis
-| Variável | Exemplo | Descrição |
-| ---------------- | ------------- | ------------------------------------------------------------------ |
-| ram | `31GiB/65GiB` | The usage/total RAM of the current system memory. |
-| ram_pct | `48%` | The percentage of the current system memory. |
-| swap\*\* | `1GiB/4GiB` | The swap memory size of the current system swap memory file. |
-| swap_pct\*\* | `77%` | The swap memory percentage of the current system swap memory file. |
-| symbol | `🐏` | Espelha o valor da opção `símbolo` |
-| style\* | | Espelha o valor da opção `style` |
+
+
+
+
+
+
+Variável
+ Exemplo
+ Descrição
+
+ ram
+ 31GiB/65GiB` | O uso/total de memoria RAM atual do sistema. |
+| ram_pct | `48%` | A porcentagem de uso atual da memoria do sistema. |
+| swap\*\* | `1GiB/4GiB` | O tamanho atual do swap do sistema. |
+| swap_pct\*\* | `77%` | A porcentagem atual de uso do swap. |
+| symbol | `🐏` | Espelha o valor da opção `símbolo` |
+| style\* | | Espelha o valor da opção `style` |
\*: This variable can only be used as a part of a style string \*\*: The SWAP file information is only displayed if detected on the current system
@@ -1893,20 +1921,20 @@ The `hg_branch` module shows the active branch of the repo in your current direc
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | -------------------------------- | -------------------------------------------------------------------------------------------- |
-| `symbol` | `" "` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
-| `style` | `"bold purple"` | O estilo do módulo. |
-| `format` | `"on [$symbol$branch]($style) "` | O formato do módulo. |
-| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
-| `truncation_symbol` | `"…"` | O simbolo usado para indicar que o nome braço foi truncado. |
-| `disabled` | `true` | Disables the `hg_branch` module. |
+| Opções | Padrão | Descrição |
+| ------------------- | -------------------------------- | --------------------------------------------------------------------------------------- |
+| `symbol` | `" "` | O simbolo usado ante do marcador hg ou nome do braço do repositório no diretório atual. |
+| `style` | `"bold purple"` | O estilo do módulo. |
+| `format` | `"on [$symbol$branch]($style) "` | O formato do módulo. |
+| `truncation_length` | `2^63 - 1` | Trunca o nome do braço hg para `N` caracteres |
+| `truncation_symbol` | `"…"` | O simbolo usado para indicar que o nome braço foi truncado. |
+| `disabled` | `true` | Desabilita o módulo `hg_branch`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| branch | `master` | The active mercurial branch |
+| branch | `master` | O braço mercurial ativo |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -1928,9 +1956,9 @@ truncation_symbol = ""
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- O diretório atual contem um arquivo `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
+- O diretório atual tenha um arquivo com a extensão `.nim`
+- O diretório atual tenha um arquivo com a extensão `.nims`
+- O diretório atual tenha um arquivo com a extensão `.nimble`
### Opções
@@ -1938,18 +1966,18 @@ The `nim` module shows the currently installed version of [Nim](https://nim-lang
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. |
+| `symbol` | `"👑 "` | O simbolo usado antes de exibir a versão do Nim. |
| `detect_extensions` | `["nim", "nims", "nimble"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["nim.cfg"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `nim` module. |
+| `disabled` | `false` | Desabilita o módulo `nim`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `v1.2.0` | The version of `nimc` |
+| version | `v1.2.0` | A versão do `nimc` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -1971,21 +1999,21 @@ The `nix_shell` module shows the [nix-shell](https://nixos.org/guides/nix-pills/
### Opções
-| Opções | Padrão | Descrição |
-| ------------ | ---------------------------------------------- | ----------------------------------------------------- |
-| `format` | `'via [$symbol$state( \($name\))]($style) '` | O formato do módulo. |
-| `symbol` | `"❄️ "` | A format string representing the symbol of nix-shell. |
-| `style` | `"bold blue"` | O estilo do módulo. |
-| `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. |
+| Opções | Padrão | Descrição |
+| ------------ | ---------------------------------------------- | ------------------------------------------------- |
+| `format` | `'via [$symbol$state( \($name\))]($style) '` | O formato do módulo. |
+| `symbol` | `"❄️ "` | Uma string que representa o simbolo do nix-shell. |
+| `style` | `"bold blue"` | O estilo do módulo. |
+| `impure_msg` | `"impure"` | Uma string que exibe quando o shell é impuro. |
+| `pure_msg` | `"pure"` | Uma string que exibe quando o shell é puro. |
+| `disabled` | `false` | Desabilita o módulo `nix_shell`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ------- | ---------------------------------- |
-| state | `pure` | The state of the nix-shell |
-| name | `lorri` | The name of the nix-shell |
+| state | `pure` | O estado do nix-shell |
+| name | `lorri` | O nome do nix-shell |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2008,31 +2036,31 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
The `nodejs` module shows the currently installed version of [Node.js](https://nodejs.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- O diretório atual contem o arquivo `package.json`
-- The current directory contains a `.node-version` file
-- The current directory contains a `.nvmrc` file
-- The current directory contains a `node_modules` directory
-- The current directory contains a file with the `.js`, `.mjs` or `.cjs` extension
-- The current directory contains a file with the `.ts` extension
+- O diretório atual tenha um arquivo `.node-version`
+- O diretório atual tenha um arquivo`.nvmrc`
+- O diretório atual tenha um diretório `node_modules`
+- O diretório atual tenha um arquivo com a extensão `.js`, `.mjs` or `.cjs`
+- O diretório atual tenha um arquivo com a extensão `.ts`
### Opções
-| Opções | Padrão | Descrição |
-| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `" "` | A format string representing the symbol of Node.js. |
-| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Quais extensões devem ativar este módulo. |
-| `detect_files` | `["package.json", ".node-version"]` | Quais nomes de arquivos devem ativar este módulo. |
-| `detect_folders` | `["node_modules"]` | Quais pastas devem ativar este módulo. |
-| `style` | `"bold green"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `nodejs` module. |
-| `not_capable_style` | `bold red` | The style for the module when an engines property in package.json does not match the Node.js version. |
+| Opções | Padrão | Descrição |
+| ------------------- | ------------------------------------ | -------------------------------------------------------------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `" "` | Uma string que representa o simbolo do Node.js. |
+| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Quais extensões devem ativar este módulo. |
+| `detect_files` | `["package.json", ".node-version"]` | Quais nomes de arquivos devem ativar este módulo. |
+| `detect_folders` | `["node_modules"]` | Quais pastas devem ativar este módulo. |
+| `style` | `"bold green"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `nodejs`. |
+| `not_capable_style` | `bold red` | O estilo para o módulo quando a propriedade engine no package.json não coincide com a versão do Node.js. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ---------- | ---------------------------------- |
-| version | `v13.12.0` | The version of `node` |
+| version | `v13.12.0` | A versão do `node` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2051,37 +2079,37 @@ format = "via [🤖 $version](bold green) "
The `ocaml` module shows the currently installed version of [OCaml](https://ocaml.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a file with `.opam` extension or `_opam` directory
-- The current directory contains a `esy.lock` directory
-- The current directory contains a `dune` or `dune-project` file
-- The current directory contains a `jbuild` or `jbuild-ignore` file
-- The current directory contains a `.merlin` file
-- The current directory contains a file with `.ml`, `.mli`, `.re` or `.rei` extension
+- O diretório atual contenha um arquivo com a extensão`.opam` ou um diretório `_opam`
+- O diretório atual tenha um diretório `esy.lock`
+- O diretório atual tenha um arquivo `dune` or `dune-project`
+- O diretório atual tenha um arquivo `jbuild` or `jbuild-ignore`
+- O diretório tenha um arquivo `.merlin`
+- O diretório atual tenha um arquivo com a extensão `.ml`, `.mli`, `.re` ou `.rei`
### Opções
| Opções | Padrão | Descrição |
| ------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)"` | The format string for the module. |
+| `format` | `"via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)"` | A string de formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐫 "` | The symbol used before displaying the version of OCaml. |
-| `global_switch_indicator` | `""` | The format string used to represent global OPAM switch. |
-| `local_switch_indicator` | `"*"` | The format string used to represent local OPAM switch. |
+| `symbol` | `"🐫 "` | O simbolo usado antes de exibir a versão do OCaml. |
+| `global_switch_indicator` | `""` | A string usada para representar a mudança global OPAM. |
+| `local_switch_indicator` | `"*"` | A string usada para representar as mudanças locais do OPAM. |
| `detect_extensions` | `["opam", "ml", "mli", "re", "rei"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["dune", "dune-project", "jbuild", "jbuild-ignore", ".merlin"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `["_opam", "esy.lock"]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `ocaml` module. |
+| `disabled` | `false` | Desabilita o módulo `ocaml`. |
### Variáveis
-| Variável | Exemplo | Descrição |
-| ---------------- | ------------ | ----------------------------------------------------------------- |
-| version | `v4.10.0` | The version of `ocaml` |
-| switch_name | `my-project` | The active OPAM switch |
-| switch_indicator | | Mirrors the value of `indicator` for currently active OPAM switch |
-| symbol | | Espelha o valor da opção `símbolo` |
-| style\* | | Espelha o valor da opção `style` |
+| Variável | Exemplo | Descrição |
+| ---------------- | ------------ | ---------------------------------------------------------------- |
+| version | `v4.10.0` | A versão do `ocaml` |
+| switch_name | `my-project` | O switch OPAM ativo |
+| switch_indicator | | Espelha o valor do `indicator` para o switch ativo atual do OPAM |
+| symbol | | Espelha o valor da opção `símbolo` |
+| style\* | | Espelha o valor da opção `style` |
\*: Essa variável só pode ser usada como parte de uma string de estilo
@@ -2100,19 +2128,19 @@ The `openstack` module shows the current OpenStack cloud and project. The module
### Opções
-| Opções | Padrão | Descrição |
-| ---------- | --------------------------------------------------- | -------------------------------------------------------------- |
-| `format` | `"on [$symbol$cloud(\\($project\\))]($style) "` | O formato do módulo. |
-| `symbol` | `"☁️ "` | The symbol used before displaying the current OpenStack cloud. |
-| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `openstack` module. |
+| Opções | Padrão | Descrição |
+| ---------- | --------------------------------------------------- | ---------------------------------------------------- |
+| `format` | `"on [$symbol$cloud(\\($project\\))]($style) "` | O formato do módulo. |
+| `symbol` | `"☁️ "` | O simbolo usado para exibir o OpenStack cloud atual. |
+| `style` | `"bold yellow"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `openstack`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ------- | ---------------------------------- |
-| cloud | `corp` | The current OpenStack cloud |
-| project | `dev` | The current OpenStack project |
+| cloud | `corp` | O OpenStack cloud atual |
+| project | `dev` | O projeto OpenStack atual |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2129,44 +2157,45 @@ style = "bold yellow"
symbol = "☁️ "
```
-## Package Version
+## Versionamento de Pacotes
-The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
-- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
-- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
-- [**Nimble**](https://github.com/nim-lang/nimble) - The `nimble` package version is extracted from the `*.nimble` file present in the current directory with the `nimble dump` command
-- [**Poetry**](https://python-poetry.org/) – The `poetry` package version is extracted from the `pyproject.toml` present in the current directory
-- [**Python**](https://www.python.org) - The `python` package version is extracted from the `setup.cfg` present in the current directory
-- [**Composer**](https://getcomposer.org/) – The `composer` package version is extracted from the `composer.json` present in the current directory
-- [**Gradle**](https://gradle.org/) – The `gradle` package version is extracted from the `build.gradle` present
-- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - The package version is extracted from the `Project.toml` present
-- [**Mix**](https://hexdocs.pm/mix/) - The `mix` package version is extracted from the `mix.exs` present
-- [**Helm**](https://helm.sh/docs/helm/helm_package/) - The `helm` chart version is extracted from the `Chart.yaml` present
-- [**Maven**](https://maven.apache.org/) - The `maven` package version is extracted from the `pom.xml` present
-- [**Meson**](https://mesonbuild.com/) - The `meson` package version is extracted from the `meson.build` present
-- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
-- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
-- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**npm**](https://docs.npmjs.com/cli/commands/npm) – O versionamento de pacotes `npm` é extraído do `package.json` presente no diretório atual
+- [**Cargo**](https://doc.rust-lang.org/cargo/) – O versionamento de pacotes `cargo`é extraído do arquivo `Cargo.toml` presente no diretório atual
+- [**Nimble**](https://github.com/nim-lang/nimble) - O versionamento de pacotes `nimble` é extraído do arquivo `*.nimble` presente no diretório atual com o comando`nimble dump`
+- [**Poetry**](https://python-poetry.org/) – O versionamento de pacotes `poetry` é extraído do arquivo `pyproject.toml` presente no diretório atual
+- [**Python**](https://www.python.org) - O versionamento de pacotes `python` é extraído do arquivo `setup.cfg` presente no diretório atual
+- [**Composer**](https://getcomposer.org/) – O versionamento de pacotes `composer` é extraído do arquivo`composer.json` presente no diretório atual
+- [**Gradle**](https://gradle.org/) – O versionamento de pacotes `gradle` é extraído do arquivo `build.gradle` presente no diretório atual
+- [**Julia**](https://docs.julialang.org/en/v1/stdlib/Pkg/) - O versionamento de pacotes é extraído do arquivo `Project.toml` presente no diretório atual
+- [**Mix**](https://hexdocs.pm/mix/) - O versionamento de pacotes `mix`é extraído do arquivo `mix.exs` presente no diretório atual
+- [**Helm**](https://helm.sh/docs/helm/helm_package/) - O versionamento do gráfico `helm` é extraído do arquivo `Chart.yaml` presente no diretório atual
+- [**Maven**](https://maven.apache.org/) - O versionamento de pacotes `maven` é extraído do arquivo`pom.xml` presente no diretório atual
+- [**Meson**](https://mesonbuild.com/) - O versionamento de pacotes `meson` é extraído do arquivo`meson.build` presente no diretório atual
+- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - O versionamento de pacotes `shards` é extraído do arquivo `shard.yml` presente no diretório atual
+- [**V**](https://vlang.io) - O versionamento de pacotes `vlang` é extraido do arquivo`v.mod` presente no diretório atual
+- [**SBT**](https://scala-sbt.org) - O versionamento de pacotes `sbt` pé extraído do arquivo `build.sbt` presente no diretório atual
+- [**Dart**](https://pub.dev/) - O versionamento de pacotes `dart` pé extraído do arquivo `pubspec.yaml` presente no diretório atual
-> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
+> ⚠️ A versão exibida é a que esta presente no código fonte do diretório atual e não do gerenciador de pacotes.
### Opções
| Opções | Padrão | Descrição |
| ----------------- | --------------------------------- | ------------------------------------------------------------------------------------ |
| `format` | `"is [$symbol$version]($style) "` | O formato do módulo. |
-| `symbol` | `"📦 "` | The symbol used before displaying the version the package. |
+| `symbol` | `"📦 "` | O simbolo usado antes de exibir a versão do pacote. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
| `style` | `"bold 208"` | O estilo do módulo. |
-| `display_private` | `false` | Enable displaying version for packages marked as private. |
-| `disabled` | `false` | Disables the `package` module. |
+| `display_private` | `false` | Habilita a exibição da versão para os pacotes marcados como privado. |
+| `disabled` | `false` | Desabilita o módulo `package`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `v1.0.0` | The version of your package |
+| version | `v1.0.0` | A versão do seu pacote |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2185,30 +2214,30 @@ format = "via [🎁 $version](208 bold) "
The `perl` module shows the currently installed version of [Perl](https://www.perl.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a `Makefile.PL` or `Build.PL` file
-- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
-- The current directory contains a `META.json` file or `META.yml` file
-- The current directory contains a `.perl-version` file
-- The current directory contains a `.pl`, `.pm` or `.pod`
+- O diretório atual tanha um aquivo `Makefile.PL` ou `Build.PL`
+- O diretório atual tenha um arquivo `cpanfile` ou `cpanfile.snapshot`
+- O diretório atual tenha um arquivo `META.json` ou `META.yml`
+- O diretório atual tenha um arquivo `.perl-version`
+- O diretório atual tenha um `.pl`, `.pm` ou `.pod`
### Opções
| Opções | Padrão | Descrição |
| ------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
+| `format` | `"via [$symbol($version )]($style)"` | A string de formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐪 "` | The symbol used before displaying the version of Perl |
+| `symbol` | `"🐪 "` | O simbolo usado ante de exibir a versão do Perl |
| `detect_extensions` | `["pl", "pm", "pod"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["Makefile.PL", "Build.PL", "cpanfile", "cpanfile.snapshot", "META.json", "META.yml", ".perl-version"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold 149"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `perl` module. |
+| `disabled` | `false` | Desabilita o módulo `perl`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | --------- | ---------------------------------- |
-| version | `v5.26.1` | The version of `perl` |
+| version | `v5.26.1` | A versão do `perl` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2226,8 +2255,8 @@ format = "via [🦪 $version]($style) "
The `php` module shows the currently installed version of [PHP](https://www.php.net/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- O diretório atual contem um arquivo `composer.json`
-- The current directory contains a `.php-version` file
-- The current directory contains a `.php` extension
+- O diretório atual tenha um arquivo `.php-version`
+- O diretório atual tenha um arquivo com extensão `.php`
### Opções
@@ -2235,18 +2264,18 @@ The `php` module shows the currently installed version of [PHP](https://www.php.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
+| `symbol` | `"🐘 "` | O simbolo usado antes de exibir a versão do PHP. |
| `detect_extensions` | `["php"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["composer.json", ".php-version"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"147 bold"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `php` module. |
+| `disabled` | `false` | Desabilita o módulo `php`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `v7.3.8` | The version of `php` |
+| version | `v7.3.8` | A versão do `php` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2273,25 +2302,25 @@ By default the Pulumi version is not shown, since it takes an order of magnitude
Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains either `Pulumi.yaml` or `Pulumi.yml`
-- A parent directory contains either `Pulumi.yaml` or `Pulumi.yml`
+- O diretório atual tenha um arquivo `Pulumi.yaml` ou `Pulumi.yml`
+- Um diretório pai que tenha um arquivo `Pulumi.yaml` ou `Pulumi.yml`
### Opções
| Opções | Padrão | Descrição |
| ---------------- | -------------------------------- | ------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol$stack]($style) "` | The format string for the module. |
+| `format` | `"via [$symbol$stack]($style) "` | A string de formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `" "` | A format string shown before the Pulumi stack. |
+| `symbol` | `" "` | Uma string que é exibida antes do Pulumi stack. |
| `style` | `"bold 5"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `pulumi` module. |
+| `disabled` | `false` | Desabilita o módulo `pulumi`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ---------- | ---------------------------------- |
-| version | `v0.12.24` | The version of `pulumi` |
-| stack | `dev` | The current Pulumi stack |
+| version | `v0.12.24` | A versão do `pulumi` |
+| stack | `dev` | A stack Pulumi atual |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2299,7 +2328,7 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
### Exemplo
-#### With Pulumi Version
+#### Com a versão do Pulumi
```toml
# ~/.config/starship.toml
@@ -2308,7 +2337,7 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
format = "[🛥 ($version )$stack]($style) "
```
-#### Without Pulumi version
+#### Sem a versão do Pulumi
```toml
# ~/.config/starship.toml
@@ -2323,7 +2352,7 @@ format = "[$symbol$stack]($style) "
The `purescript` module shows the currently installed version of [PureScript](https://www.purescript.org/) version. Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- O diretório atual contem um arquivo `spago.dhall`
-- The current directory contains a file with the `.purs` extension
+- O diretório atual tenha um arquivo com a extensão `.purs`
### Opções
@@ -2331,18 +2360,18 @@ The `purescript` module shows the currently installed version of [PureScript](ht
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. |
+| `symbol` | `"<=> "` | O simbolo usado antes de exibir a versão do PureScript. |
| `detect_extensions` | `["purs"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["spago.dhall"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold white"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `purescript` module. |
+| `disabled` | `false` | Desabilita o módulo `purescript`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `0.13.5` | The version of `purescript` |
+| version | `0.13.5` | A versão do `purescript` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2365,31 +2394,31 @@ If `pyenv_version_name` is set to `true`, it will display the pyenv version name
Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a `.python-version` file
-- The current directory contains a `Pipfile` file
-- The current directory contains a `__init__.py` file
+- O diretório atual tenha um arquivo `.python-version`
+- O diretório atual tenha um arquivo `Pipfile`
+- O diretório atual tenha um arquivo `__init__.py`
- O diretório atual contem um arquivo `pyproject.toml`
- O diretório atual contem um arquivo `requirements.txt`
- O diretório atual contem um arquivo `setup.py`
- O diretório atual contem um arquivo `tox.ini`
-- The current directory contains a file with the `.py` extension.
-- A virtual environment is currently activated
+- O diretório atual tenha um arquivo com a extensão `.py`.
+- Um ambiente virtual está atualmente ativo
### Opções
-| Opções | Padrão | Descrição |
-| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
-| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | O formato do módulo. |
-| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
-| `style` | `"yellow bold"` | O estilo do módulo. |
-| `pyenv_version_name` | `false` | Use pyenv to get Python version |
-| `pyenv_prefix` | `pyenv` | Prefix before pyenv version display, only used if pyenv is used |
-| `python_binary` | `["python", "python3", "python2"]` | Configures the python binaries that Starship should executes when getting the version. |
-| `detect_extensions` | `["py"]` | Quais extensões devem acionar este módulo |
-| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | [] |
-| `detect_folders` | `[]` | Quais pastas devem ativar este módulo |
-| `disabled` | `false` | Disables the `python` module. |
+| Opções | Padrão | Descrição |
+| -------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
+| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | O formato do módulo. |
+| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
+| `symbol` | `"🐍 "` | Uma string que representa o simbolo do Python |
+| `style` | `"yellow bold"` | O estilo do módulo. |
+| `pyenv_version_name` | `false` | Usa pyenv para pegar a versão do Python |
+| `pyenv_prefix` | `pyenv` | Prefixo antes da versão do pyenv, apenas usado se pyenv for usado |
+| `python_binary` | `["python", "python3", "python2"]` | Configura o binário python que o Starship vai executar para obter a versão. |
+| `detect_extensions` | `["py"]` | Quais extensões devem acionar este módulo |
+| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | [] |
+| `detect_folders` | `[]` | Quais pastas devem ativar este módulo |
+| `disabled` | `false` | Desabilita o módulo `python`. |
::: tip
@@ -2401,13 +2430,13 @@ The default values and order for `python_binary` was chosen to first identify th
### Variáveis
-| Variável | Exemplo | Descrição |
-| ------------ | --------------- | ------------------------------------------ |
-| version | `"v3.8.1"` | A versão do `python` |
-| symbol | `"🐍 "` | Espelha o valor da opção `símbolo` |
-| style | `"yellow bold"` | Espelha o valor da opção `style` |
-| pyenv_prefix | `"pyenv "` | Mirrors the value of option `pyenv_prefix` |
-| virtualenv | `"venv"` | The current `virtualenv` name |
+| Variável | Exemplo | Descrição |
+| ------------ | --------------- | --------------------------------------- |
+| version | `"v3.8.1"` | A versão do `python` |
+| symbol | `"🐍 "` | Espelha o valor da opção `símbolo` |
+| style | `"yellow bold"` | Espelha o valor da opção `style` |
+| pyenv_prefix | `"pyenv "` | Espelha o valor da opção `pyenv_prefix` |
+| virtualenv | `"venv"` | O nome atual do `virtualenv` |
### Exemplo
@@ -2423,7 +2452,7 @@ pyenv_version_name = true
# ~/.config/starship.toml
[python]
-# Apenas use o binário `python3` para pegar a versão.
+# Only use the `python3` binary to get the version.
python_binary = "python3"
```
@@ -2431,7 +2460,7 @@ python_binary = "python3"
# ~/.config/starship.toml
[python]
-#Não acione arquivos com a extensão py
+# Don't trigger for files with the py extension
detect_extensions = []
```
@@ -2439,10 +2468,10 @@ detect_extensions = []
# ~/.config/starship.toml
[python]
-# Exibe a versão do python dentro de um local venv.
+# Display the version of python from inside a local venv.
#
-# Observe que isso só funcionará quando o venv estiver dentro do projeto e somente
-# funcionar no diretório que contém o venv dir mas talvez isso esteja ok?
+# Note this will only work when the venv is inside the project and it will only
+# work in the directory that contains the venv dir but maybe this is ok?
python_binary = ["./venv/bin/python", "python", "python3", "python2"]
```
@@ -2450,13 +2479,13 @@ python_binary = ["./venv/bin/python", "python", "python3", "python2"]
The `rlang` module shows the currently installed version of [R](https://www.r-project.org/). The module will be shown if any of the following conditions are met:
-- The current directory contains a file with the `.R` extension.
-- The current directory contains a file with the `.Rd` extension.
-- The current directory contains a file with the `.Rmd` extension.
-- The current directory contains a file with the `.Rproj` extension.
-- The current directory contains a file with the `.Rsx` extension.
-- The current directory contains a `.Rprofile` file
-- The current directory contains a `.Rproj.user` folder
+- O diretório atual tenha um arquivo com a extensão `.R`.
+- O diretório atual tenha um arquivo com a extensão `.Rd`.
+- O diretório atual tenha um arquivo com a extensão `.Rmd`.
+- O diretório atual tenha um arquivo com a extensão `.Rproj`.
+- O diretório atual tenha um arquivo com a extensão `.Rsx`.
+- O diretório atual tenha um arquivo `.Rprofile`
+- O diretório atual tenha uma pasta `.Rpoj.user`
### Opções
@@ -2464,18 +2493,18 @@ The `rlang` module shows the currently installed version of [R](https://www.r-pr
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"📐"` | A format string representing the symbol of R. |
+| `symbol` | `"📐"` | Uma string que representa o simbolo do R. |
| `style` | `"blue bold"` | O estilo do módulo. |
| `detect_extensions` | `["R", "Rd", "Rmd", "Rproj", "Rsx"]` | Quais extensões devem acionar este módulo |
| `detect_files` | `[".Rprofile"]` | [] |
| `detect_folders` | `[".Rproj.user"]` | Quais pastas devem ativar este módulo |
-| `disabled` | `false` | Disables the `r` module. |
+| `disabled` | `false` | Desabilita o módulo `r`. |
### Variáveis
| Variável | Exemplo | Descrição |
| -------- | ------------- | ---------------------------------- |
-| version | `v4.0.5` | The version of `R` |
+| version | `v4.0.5` | A versão do `R` |
| symbol | | Espelha o valor da opção `símbolo` |
| style | `"blue bold"` | Espelha o valor da opção `style` |
@@ -2490,9 +2519,9 @@ format = "with [📐 $version](blue bold) "
## Red
-By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). The module will be shown if any of the following conditions are met:
+By default the `red` module shows the currently installed version of [Red](https://www.red-lang.org/). O módulo vai exibir se algumas das condições a seguir for atendida:
-- The current directory contains a file with `.red` or `.reds` extension
+- O diretório atual contenha um arquivo com a extensão `.red` or `.reds`
### Opções
@@ -2500,18 +2529,18 @@ By default the `red` module shows the currently installed version of [Red](https
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🔺 "` | A format string representing the symbol of Red. |
+| `symbol` | `"🔺 "` | Uma string que representa o simbolo do Red. |
| `detect_extensions` | `["red"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"red bold"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `red` module. |
+| `disabled` | `false` | Desabilita o módulo `red`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `v2.5.1` | The version of `red` |
+| version | `v2.5.1` | A versão do `red` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2528,12 +2557,12 @@ symbol = "🔴 "
## Ruby
-By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). The module will be shown if any of the following conditions are met:
+By default the `ruby` module shows the currently installed version of [Ruby](https://www.ruby-lang.org/). O módulo vai exibir se algumas das condições a seguir for atendida:
-- The current directory contains a `Gemfile` file
-- The current directory contains a `.ruby-version` file
-- The current directory contains a `.rb` file
-- The environment variables `RUBY_VERSION` or `RBENV_VERSION` are set
+- O diretório atual tenha um arquivo `Gemfile`
+- O diretório atual contém um arquivo `.ruby-version`
+- O diretório atual contem um arquivo `.rb`
+- As variáveis de ambiente `RUBY_VERSION` ou `RBENV_VERSION` estão definidas
Starship gets the current Ruby version by running `ruby -v`.
@@ -2543,19 +2572,19 @@ Starship gets the current Ruby version by running `ruby -v`.
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"💎 "` | A format string representing the symbol of Ruby. |
+| `symbol` | `"💎 "` | Uma string que representa o simbolo do Ruby. |
| `detect_extensions` | `["rb"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["Gemfile", ".ruby-version"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
-| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Which environment variables should trigger this module. |
+| `detect_variables` | `["RUBY_VERSION", "RBENV_VERSION"]` | Quais variáveis de ambiente devem ativar este módulo. |
| `style` | `"bold red"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `ruby` module. |
+| `disabled` | `false` | Desabilita o módulo `ruby`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `v2.5.1` | The version of `ruby` |
+| version | `v2.5.1` | A versão do `ruby` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2572,10 +2601,10 @@ symbol = "🔺 "
## Rust
-By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). The module will be shown if any of the following conditions are met:
+By default the `rust` module shows the currently installed version of [Rust](https://www.rust-lang.org/). O módulo vai exibir se algumas das condições a seguir for atendida:
-- The current directory contains a `Cargo.toml` file
-- The current directory contains a file with the `.rs` extension
+- O diretório atual contem um arquivo `Cargo.toml`
+- O diretório atual tenha um arquivo com a extensão `.rs`
### Opções
@@ -2583,18 +2612,18 @@ By default the `rust` module shows the currently installed version of [Rust](htt
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🦀 "` | A format string representing the symbol of Rust |
+| `symbol` | `"🦀 "` | Uma string que representa o simbolo do Rust |
| `detect_extensions` | `["rs"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["Cargo.toml"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold red"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `rust` module. |
+| `disabled` | `false` | Desabilita o módulo `rust`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ----------------- | ---------------------------------- |
-| version | `v1.43.0-nightly` | The version of `rustc` |
+| version | `v1.43.0-nightly` | A versão do `rustc` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2613,9 +2642,9 @@ format = "via [⚙️ $version](red bold)"
The `scala` module shows the currently installed version of [Scala](https://www.scala-lang.org/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a `build.sbt`, `.scalaenv` or `.sbtenv` file
-- The current directory contains a file with the `.scala` or `.sbt` extension
-- The current directory contains a directory named `.metals`
+- O diretório atual contem um arquivo `build.sbt`, `.scalaenv` ou `.sbtenv`
+- O diretório atual tenha um arquivo com a extensão `.scala` ou `.sbt`
+- O diretório atual tenha um diretório chamado `.metals`
### Opções
@@ -2623,18 +2652,18 @@ The `scala` module shows the currently installed version of [Scala](https://www.
| ------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------ |
| `format` | `"via [${symbol}(${version} )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `detect_extensions` | `["sbt", "scala"]` | Quais extensões devem ativar este módulo. |
+| `detect_extensions` | `["sbt", "escala"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[".scalaenv", ".sbtenv", "build.sbt"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[".metals"]` | Quais pastas devem ativar este módulo. |
-| `symbol` | `"🆂 "` | A format string representing the symbol of Scala. |
+| `symbol` | `"🆂 "` | Uma string que representa o simbolo do Scala. |
| `style` | `"red dimmed"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `scala` module. |
+| `disabled` | `false` | Desabilita o módulo `scala`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `2.13.5` | The version of `scala` |
+| version | `2.13.5` | A versão do `scala` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2651,11 +2680,11 @@ symbol = "🌟 "
## Shell
-O módulo de `shell` exibe um indicador para o shell que esta sendo usado.
+The `shell` module shows an indicator for currently used shell.
::: tip
-Este módulo é desativado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
@@ -2665,12 +2694,14 @@ Este módulo é desativado por padrão. Para ativa-lo, defina `disabled` para `f
| ---------------------- | ------------------------- | ------------------------------------------------------------ |
| `bash_indicator` | `bsh` | Uma string para representar o bash. |
| `fish_indicator` | `fsh` | Uma string usada para representar o fish. |
-| `zsh_indicator` | `zsh` | A format string used to represent zsh. |
-| `powershell_indicator` | `psh` | A format string used to represent powershell. |
-| `ion_indicator` | `ion` | A format string used to represent ion. |
-| `elvish_indicator` | `esh` | A format string used to represent elvish. |
-| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
-| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `zsh_indicator` | `zsh` | Uma string usada para representar o zsh. |
+| `powershell_indicator` | `psh` | Uma string usada para representar o powershell. |
+| `ion_indicator` | `ion` | Uma string usada para representar o ion. |
+| `elvish_indicator` | `esh` | Uma string usada para representar o elvish. |
+| `tcsh_indicator` | `tsh` | Uma string usada para representar o tcsh. |
+| `xonsh_indicator` | `xsh` | Uma string usada para representar o xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | O formato do módulo. |
| `style` | `"white bold"` | O estilo do módulo. |
@@ -2678,10 +2709,10 @@ Este módulo é desativado por padrão. Para ativa-lo, defina `disabled` para `f
### Variáveis
-| Variável | Padrão | Descrição |
-| --------- | ------ | ---------------------------------------------------------- |
-| indicator | | Mirrors the value of `indicator` for currently used shell. |
-| style\* | | Espelha o valor da opção `style`. |
+| Variável | Padrão | Descrição |
+| --------- | ------ | ------------------------------------------------------------- |
+| indicator | | Espelha o valor do `indicator` para o shell usado atualmente. |
+| style\* | | Espelha o valor da opção `style`. |
\*: Essa variável só pode ser usada como parte de uma string de estilo
@@ -2704,20 +2735,20 @@ The `shlvl` module shows the current [`SHLVL`](https://tldp.org/LDP/abs/html/int
### Opções
-| Opções | Padrão | Descrição |
-| ----------- | ---------------------------- | ------------------------------------------------------------- |
-| `threshold` | `2` | Display threshold. |
-| `format` | `"[$symbol$shlvl]($style) "` | O formato do módulo. |
-| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
-| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
-| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `true` | Disables the `shlvl` module. |
+| Opções | Padrão | Descrição |
+| ----------- | ---------------------------- | ----------------------------------------------------------------- |
+| `threshold` | `2` | Limite de exibição. |
+| `format` | `"[$symbol$shlvl]($style) "` | O formato do módulo. |
+| `symbol` | `"↕️ "` | O simbolo usado para representar o `SHLVL`. |
+| `repeat` | `false` | Caso o `symbol` deva se repetir de acordo com o total do `SHLVL`. |
+| `style` | `"bold yellow"` | O estilo do módulo. |
+| `disabled` | `true` | Desabilita o módulo `shlvl`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ------- | ---------------------------------- |
-| shlvl | `3` | The current value of `SHLVL` |
+| shlvl | `3` | O valor atual do `SHLVL` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2740,18 +2771,18 @@ The `singularity` module shows the current [Singularity](https://sylabs.io/singu
### Opções
-| Opções | Padrão | Descrição |
-| ---------- | -------------------------------- | ------------------------------------------------ |
-| `format` | `'[$symbol\[$env\]]($style) '` | O formato do módulo. |
-| `symbol` | `""` | A format string displayed before the image name. |
-| `style` | `"bold dimmed blue"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `singularity` module. |
+| Opções | Padrão | Descrição |
+| ---------- | -------------------------------- | ------------------------------------------- |
+| `format` | `'[$symbol\[$env\]]($style) '` | O formato do módulo. |
+| `symbol` | `""` | Uma string exibida antes do nome da imagem. |
+| `style` | `"bold dimmed blue"` | O estilo do módulo. |
+| `disabled` | `false` | Desabilita o módulo `singularity`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ------------ | ---------------------------------- |
-| env | `centos.img` | The current Singularity image |
+| env | `centos.img` | A imagem atual do Singularity |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2772,44 +2803,45 @@ The `status` module displays the exit code of the previous command. The module w
::: tip
-Este módulo é desativado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### Opções
-| Opções | Padrão | Descrição |
-| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------- |
-| `format` | `"[$symbol$status]($style) "` | The format of the module |
-| `symbol` | `"✖"` | The symbol displayed on program error |
-| `success_symbol` | `"✔️"` | The symbol displayed on program success |
-| `not_executable_symbol` | `"🚫"` | The symbol displayed when file isn't executable |
-| `not_found_symbol` | `"🔍"` | The symbol displayed when the command can't be found |
-| `sigint_symbol` | `"🧱"` | The symbol displayed on SIGINT (Ctrl + c) |
-| `signal_symbol` | `"⚡"` | The symbol displayed on any signal |
-| `style` | `"bold red"` | O estilo do módulo. |
-| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
-| `map_symbol` | `false` | Enable symbols mapping from exit code |
-| `pipestatus` | `false` | Enable pipestatus reporting |
-| `pipestatus_separator` | `|` | The symbol that separate in pipe program exit codes |
-| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | The format of the module when the command is a pipeline |
-| `disabled` | `true` | Disables the `status` module. |
+| Opções | Padrão | Descrição |
+| ----------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
+| `format` | `"[$symbol$status]($style) "` | O formato do módulo |
+| `symbol` | `"✖"` | O simbolo exibido no erro de programa |
+| `success_symbol` | `"✔️"` | O simbolo exibido no sucesso de programa |
+| `not_executable_symbol` | `"🚫"` | O simbolo exibido quando o arquivo não é executável |
+| `not_found_symbol` | `"🔍"` | O simbolo exibido quando o comando não é encontrado |
+| `sigint_symbol` | `"🧱"` | O simbolo exibido no SIGINT (Ctrl + c) |
+| `signal_symbol` | `"⚡"` | O simbolo exibido em qualquer sinal |
+| `style` | `"bold red"` | O estilo do módulo. |
+| `recognize_signal_code` | `true` | Habilita o mapeamento de sinais para códigos de saída |
+| `map_symbol` | `false` | Habilita o mapeamento de símbolos para códigos de saída |
+| `pipestatus` | `false` | Habilita o relatório de pipestatus |
+| `pipestatus_separator` | `|` | O simbolo que separa o pepe dos programas e códigos de saída |
+| `pipestatus_format` | `\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)` | O formato do módulo quando o comando é um pipeline |
+| `disabled` | `true` | Desabilita o módulo `status`. |
### Variáveis
-| Variável | Exemplo | Descrição |
-| -------------- | ------- | ------------------------------------------------------------------------------------------- |
-| status | `127` | The exit code of the last command |
-| int | `127` | The exit code of the last command |
-| common_meaning | `ERROR` | Meaning of the code if not a signal |
-| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
-| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
-| maybe_int | `7` | Contains the exit code number when no meaning has been found |
-| pipestatus | | Rendering of in pipeline programs's exit codes, this is only available in pipestatus_format |
-| symbol | | Espelha o valor da opção `símbolo` |
-| style\* | | Espelha o valor da opção `style` |
+| Variável | Exemplo | Descrição |
+| -------------- | ------- | -------------------------------------------------------------------------------------------------------- |
+| status | `127` | O codígo de saída do último comando |
+| hex_status | `0x7F` | O codígo de saída do último comando em hex |
+| int | `127` | O codígo de saída do último comando |
+| common_meaning | `ERROR` | Significa que o código não é um sinal |
+| signal_number | `9` | Número do sinal correspondente ao código de saída, apenas se sinalizado |
+| signal_name | `KILL` | Nome do sinal correspondente ao código de saída, apenas se for sinalizado |
+| maybe_int | `7` | Contém o código de saída quando nenhum significado for encontrado |
+| pipestatus | | Exibição do pipeline de programas com os códigos de saída, este é apenas disponível no pipestatus_format |
+| symbol | | Espelha o valor da opção `símbolo` |
+| style\* | | Espelha o valor da opção `style` |
\*: Essa variável só pode ser usada como parte de uma string de estilo
@@ -2834,19 +2866,19 @@ The `sudo` module displays if sudo credentials are currently cached. The module
::: tip
-Este módulo é desativado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### Opções
-| Opções | Padrão | Descrição |
-| --------------- | ----------------------- | ------------------------------------------------------- |
-| `format` | `[as $symbol]($style)"` | The format of the module |
-| `symbol` | `"🧙 "` | The symbol displayed when credentials are cached |
-| `style` | `"bold blue"` | O estilo do módulo. |
-| `allow_windows` | `false` | Since windows has no default sudo, default is disabled. |
-| `disabled` | `true` | Disables the `sudo` module. |
+| Opções | Padrão | Descrição |
+| --------------- | ----------------------- | -------------------------------------------------------------------------- |
+| `format` | `[as $symbol]($style)"` | O formato do módulo |
+| `symbol` | `"🧙 "` | O simbolo exibido quando as credenciais estão em cache |
+| `style` | `"bold blue"` | O estilo do módulo. |
+| `allow_windows` | `false` | Desde que o Windows não tem um padrão sudo, o valor padrão é desabilitado. |
+| `disabled` | `true` | Desabilita o módulo `sudo`. |
### Variáveis
@@ -2880,10 +2912,10 @@ disabled = false
## Swift
-By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). The module will be shown if any of the following conditions are met:
+By default the `swift` module shows the currently installed version of [Swift](https://swift.org/). O módulo vai exibir se algumas das condições a seguir for atendida:
-- The current directory contains a `Package.swift` file
-- The current directory contains a file with the `.swift` extension
+- O diretório atual tenha um arquivo `Package.swift`
+- O diretório atual tenha um arquivo com a extensão `.swift`
### Opções
@@ -2891,18 +2923,18 @@ By default the `swift` module shows the currently installed version of [Swift](h
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"🐦 "` | A format string representing the symbol of Swift |
+| `symbol` | `"🐦 "` | Uma string que representa o simbolo do Swift |
| `detect_extensions` | `["swift"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `["Package.swift"]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold 202"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `swift` module. |
+| `disabled` | `false` | Desabilita o módulo `swift`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | -------- | ---------------------------------- |
-| version | `v5.2.4` | The version of `swift` |
+| version | `v5.2.4` | A versão do `swift` |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2929,28 +2961,28 @@ By default the Terraform version is not shown, since this is slow for current ve
Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
-- The current directory contains a `.terraform` folder
-- Current directory contains a file with the `.tf`, `.tfplan` or `.tfstate` extensions
+- O diretório atual tenha uma pasta `.terraform`
+- O diretório atual tenha arquivos com as extensões `.tf`, `.tfplan` or `.tfstate`
### Opções
| Opções | Padrão | Descrição |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
-| `format` | `"via [$symbol$workspace]($style) "` | The format string for the module. |
+| `format` | `"via [$symbol$workspace]($style) "` | A string de formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"💠"` | A format string shown before the terraform workspace. |
+| `symbol` | `"💠"` | Uma string que é exibida antes do workspace terraform. |
| `detect_extensions` | `["tf", "tfplan", "tfstate"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[".terraform"]` | Quais pastas devem ativar este módulo. |
| `style` | `"bold 105"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `terraform` module. |
+| `disabled` | `false` | Desabilita o módulo `terraform`. |
### Variáveis
| Variável | Exemplo | Descrição |
| --------- | ---------- | ---------------------------------- |
-| version | `v0.12.24` | The version of `terraform` |
-| workspace | `default` | The current Terraform workspace |
+| version | `v0.12.24` | A versão do `terraform` |
+| workspace | `default` | O workspace atual do Terraform |
| symbol | | Espelha o valor da opção `símbolo` |
| style\* | | Espelha o valor da opção `style` |
@@ -2958,7 +2990,7 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
### Exemplo
-#### With Terraform Version
+#### Com a versão do Terraform
```toml
# ~/.config/starship.toml
@@ -2967,7 +2999,7 @@ Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
format = "[🏎💨 $version$workspace]($style) "
```
-#### Without Terraform version
+#### Sem a versão do Terraform
```toml
# ~/.config/starship.toml
@@ -2982,21 +3014,21 @@ The `time` module shows the current **local** time. The `format` configuration v
::: tip
-Este módulo é desativado por padrão. Para ativa-lo, defina `disabled` para `false` no seu arquivo de configuração.
+This module is disabled by default. To enable it, set `disabled` to `false` in your configuration file.
:::
### Opções
-| Opções | Padrão | Descrição |
-| ----------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
-| `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 |
+| Opções | Padrão | Descrição |
+| ----------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| `format` | `"at [$time]($style) "` | A string de formato do módulo. |
+| `use_12hr` | `false` | Habilita a formatação de 12 horas |
+| `time_format` | veja abaixo | A string [chrono format string](https://docs.rs/chrono/0.4.7/chrono/format/strftime/index.html) usada para formatar a hora. |
+| `style` | `"bold yellow"` | O estilo do módulo time |
+| `utc_time_offset` | `"local"` | Define o UTC a ser usado. Intervalo de -24 < x < 24. Aceita floats para acomodar timezones 30/45. |
+| `disabled` | `true` | Desabilita o módulo `time`. |
+| `time_range` | `"-"` | Define o intervalo de tempo o qual o módulo será exibido. O horário deve ser especificado no formato de 24-hours |
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.
@@ -3004,7 +3036,7 @@ If `use_12hr` is `true`, then `time_format` defaults to `"%r"`. Otherwise, it de
| Variável | Exemplo | Descrição |
| --------- | ---------- | -------------------------------- |
-| horário | `13:08:10` | The current time. |
+| horário | `13:08:10` | A hora atual. |
| style\* | | Espelha o valor da opção `style` |
\*: Essa variável só pode ser usada como parte de uma string de estilo
@@ -3024,12 +3056,12 @@ time_range = "10:00:00-14:00:00"
## Username
-The `username` module shows active user's username. The module will be shown if any of the following conditions are met:
+The `username` module shows active user's username. O módulo vai exibir se algumas das condições a seguir for atendida:
-- 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
+- O usuário atual é root
+- O usuário atual não é o mesmo que está logado
+- O usuário atual esta conectado em uma sessão SSH
+- A variável `show_always` esta definida como true
::: tip
@@ -3039,20 +3071,20 @@ SSH connection is detected by checking environment variables `SSH_CONNECTION`, `
### Opções
-| Opções | Padrão | Descrição |
-| ------------- | ----------------------- | ------------------------------------- |
-| `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 "` | O formato do módulo. |
-| `show_always` | `false` | Always shows the `username` module. |
-| `disabled` | `false` | Disables the `username` module. |
+| Opções | Padrão | Descrição |
+| ------------- | ----------------------- | --------------------------------------- |
+| `style_root` | `"bold red"` | O estilo usado quando o usuário é root. |
+| `style_user` | `"bold yellow"` | O estilo usado para usuários não root. |
+| `format` | `"[$user]($style) in "` | O formato do módulo. |
+| `show_always` | `false` | Sempre exibe o módulo `username`. |
+| `disabled` | `false` | Desabilita o módulo `username`. |
### Variáveis
-| Variável | Exemplo | Descrição |
-| -------- | ------------ | ------------------------------------------------------------------------------------------- |
-| `style` | `"red bold"` | Mirrors the value of option `style_root` when root is logged in and `style_user` otherwise. |
-| `user` | `"matchai"` | The currently logged-in user ID. |
+| Variável | Exemplo | Descrição |
+| -------- | ------------ | -------------------------------------------------------------------------------------- |
+| `style` | `"red bold"` | Espelha o valor da opção `style_root` quando o root esta logado e `style_user` se não. |
+| `user` | `"matchai"` | O ID do usuário logado atualmente. |
### Exemplo
@@ -3069,7 +3101,7 @@ show_always = true
## Vagrant
-O módulo `vagrant` exibe a versão atual instalada do [Vagrant](https://www.vagrantup.com/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+The `vagrant` module shows the currently installed version of [Vagrant](https://www.vagrantup.com/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- O diretório atual contem um arquivo `Vagrantfile`
@@ -3107,7 +3139,7 @@ format = "via [⍱ $version](bold white) "
## V
-O módulo `vlang` exibe a versão atual instalada do [V](https://vlang.io/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
+The `vlang` module shows you your currently installed version of [V](https://vlang.io/). Por padrão o módulo vai exibir se uma das condições a seguir for atendida:
- O diretório atual cotem qualquer arquivo com a extensão `.v`
- O diretório atual contem um arquivo `v.mod`, `vpkg.json` ou `.vpkg-lock.json`
@@ -3148,10 +3180,10 @@ The `vcsh` module displays the current active [VCSH](https://github.com/RichiH/v
| Opções | Padrão | Descrição |
| ---------- | -------------------------------- | ------------------------------------------------------ |
-| `symbol` | | The symbol used before displaying the repository name. |
+| `symbol` | | O simbolo usado antes de exibir o nome do repositório. |
| `style` | `"bold yellow"` | O estilo do módulo. |
| `format` | `"vcsh [$symbol$repo]($style) "` | O formato do módulo. |
-| `disabled` | `false` | Disables the `vcsh` module. |
+| `disabled` | `false` | Desabilita o módulo `vcsh`. |
### Variáveis
@@ -3174,9 +3206,9 @@ format = "[🆅 $repo](bold blue) "
## Zig
-By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). The module will be shown if any of the following conditions are met:
+By default the the `zig` module shows the currently installed version of [Zig](https://ziglang.org/). O módulo vai exibir se algumas das condições a seguir for atendida:
-- The current directory contains a `.zig` file
+- O diretório atual contém arquivo com a extensão `.zig`
### Opções
@@ -3184,9 +3216,9 @@ By default the the `zig` module shows the currently installed version of [Zig](h
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | O formato do módulo. |
| `version_format` | `"v${raw}"` | O formato da versão. As variáveis disponíveis são `raw`, `major`, `minor`, & `patch` |
-| `symbol` | `"↯ "` | The symbol used before displaying the version of Zig. |
+| `symbol` | `"↯ "` | O simbolo usado antes de exibir a versão do Zig. |
| `style` | `"bold yellow"` | O estilo do módulo. |
-| `disabled` | `false` | Disables the `zig` module. |
+| `disabled` | `false` | Desabilita o módulo `zig`. |
| `detect_extensions` | `["zig"]` | Quais extensões devem ativar este módulo. |
| `detect_files` | `[]` | Quais nomes de arquivos devem ativar este módulo. |
| `detect_folders` | `[]` | Quais pastas devem ativar este módulo. |
@@ -3216,15 +3248,15 @@ The `custom` modules show the output of some arbitrary commands.
These modules will be shown if any of the following conditions are met:
-- The current directory contains a file whose name is in `files`
-- The current directory contains a directory whose name is in `directories`
-- The current directory contains a file whose extension is in `extensions`
-- The `when` command returns 0
-- The current Operating System (std::env::consts::OS) matchs with `os` field if defined.
+- O diretório atual tenha um arquivo cujo o nome esta em `files`
+- O diretório atual tenha um diretório cujo o nome esta em `directories`
+- O diretório atual tenha um arquivo com extensão que esteja em `extensions`
+- O comando `when` retorna 0
+- O sistema operacional (std::env::consts::OS) corresponde com o `os` se definido.
::: tip
-Vários módulos personalizados podem ser definidos usando `.`.
+Multiple custom modules can be defined by using a `.`.
:::
@@ -3252,14 +3284,14 @@ Format strings can also contain shell specific prompt sequences, e.g. [Bash](htt
| Opções | Padrão | Descrição |
| ------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `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) |
-| `descrição` | `"
This module has a few advanced configuration options that control how the directory is displayed.
@@ -1334,22 +1347,23 @@ The `git_status` module shows symbols representing the state of the repo in your
### Options
-| Option | Default | Description |
-| ------------ | ----------------------------------------------- | ----------------------------------- |
-| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
-| `conflicted` | `"="` | This branch has merge conflicts. |
-| `ahead` | `"⇡"` | The format of `ahead` |
-| `behind` | `"⇣"` | The format of `behind` |
-| `diverged` | `"⇕"` | The format of `diverged` |
-| `up_to_date` | `""` | The format of `up_to_date` |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"»"` | The format of `renamed` |
-| `deleted` | `"✘"` | The format of `deleted` |
-| `style` | `"bold red"` | The style for the module. |
-| `disabled` | `false` | Disables the `git_status` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------- | ----------------------------------- |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
+| `conflicted` | `"="` | This branch has merge conflicts. |
+| `ahead` | `"⇡"` | The format of `ahead` |
+| `behind` | `"⇣"` | The format of `behind` |
+| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
+| `style` | `"bold red"` | The style for the module. |
+| `ignore_submodules` | `false` | Ignore changes to submodules. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -1513,10 +1527,10 @@ The `hostname` module shows the system hostname.
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| --------- | ---------- | ----------------------------------- |
+| hostname | `computer` | The hostname of the computer |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2133,7 +2147,7 @@ symbol = "☁️ "
## 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`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -2150,6 +2164,7 @@ The `package` module is shown when the current directory is the repository for a
- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**Dart**](https://pub.dev/) - The `dart` package version is extracted from the `pubspec.yaml` present in the current directory
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2673,6 +2688,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | The format for the module. |
| `style` | `"white bold"` | The style for the module. |
@@ -2778,7 +2795,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### Options
@@ -2804,6 +2821,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Variable | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
+| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
diff --git a/docs/pt-PT/faq/README.md b/docs/pt-PT/faq/README.md
index 8422ee2e3..99dd6bcc8 100644
--- a/docs/pt-PT/faq/README.md
+++ b/docs/pt-PT/faq/README.md
@@ -69,13 +69,13 @@ If you see symbols that you don't recognise you can use `starship explain` to ex
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
```sh
-env STARHIP_LOG=trace starship module rust
+env STARSHIP_LOG=trace starship module rust
```
If starship is being slow you can try using the `timings` command to see if there is a particular module or command that to blame.
```sh
-env STARHIP_LOG=trace starship timings
+env STARSHIP_LOG=trace starship timings
```
This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
@@ -118,5 +118,5 @@ If Starship was installed using the install script, the following command will d
```sh
# Locate and delete the starship binary
-sh -c 'rm "$(which starship)"'
+sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/pt-PT/guide/README.md b/docs/pt-PT/guide/README.md
index fb4093b57..88ac88719 100644
--- a/docs/pt-PT/guide/README.md
+++ b/docs/pt-PT/guide/README.md
@@ -72,6 +72,22 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
+ />Этот модуль имеет несколько расширенных опций конфигурации, которые контролируют отображение каталога.
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | По умолчанию | Описание |
| --------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -785,7 +798,7 @@ format = "via [🦕 $version](green bold) "
"src/com/long/java/path" = "mypath"
```
-`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`.
+`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`.
This module has a few advanced configuration options that control how the directory is displayed.
@@ -1334,22 +1347,23 @@ The `git_status` module shows symbols representing the state of the repo in your
### Options
-| Option | Default | Description |
-| ------------ | ----------------------------------------------- | ----------------------------------- |
-| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
-| `conflicted` | `"="` | This branch has merge conflicts. |
-| `ahead` | `"⇡"` | The format of `ahead` |
-| `behind` | `"⇣"` | The format of `behind` |
-| `diverged` | `"⇕"` | The format of `diverged` |
-| `up_to_date` | `""` | The format of `up_to_date` |
-| `untracked` | `"?"` | The format of `untracked` |
-| `stashed` | `"$"` | The format of `stashed` |
-| `modified` | `"!"` | The format of `modified` |
-| `staged` | `"+"` | The format of `staged` |
-| `renamed` | `"»"` | The format of `renamed` |
-| `deleted` | `"✘"` | The format of `deleted` |
-| `style` | `"bold red"` | The style for the module. |
-| `disabled` | `false` | Disables the `git_status` module. |
+| Option | Default | Description |
+| ------------------- | ----------------------------------------------- | ----------------------------------- |
+| `format` | `'([\[$all_status$ahead_behind\]]($style) )'` | The default format for `git_status` |
+| `conflicted` | `"="` | This branch has merge conflicts. |
+| `ahead` | `"⇡"` | The format of `ahead` |
+| `behind` | `"⇣"` | The format of `behind` |
+| `diverged` | `"⇕"` | The format of `diverged` |
+| `up_to_date` | `""` | The format of `up_to_date` |
+| `untracked` | `"?"` | The format of `untracked` |
+| `stashed` | `"$"` | The format of `stashed` |
+| `modified` | `"!"` | The format of `modified` |
+| `staged` | `"+"` | The format of `staged` |
+| `renamed` | `"»"` | The format of `renamed` |
+| `deleted` | `"✘"` | The format of `deleted` |
+| `style` | `"bold red"` | The style for the module. |
+| `ignore_submodules` | `false` | Ignore changes to submodules. |
+| `disabled` | `false` | Disables the `git_status` module. |
### Variables
@@ -1513,10 +1527,10 @@ The `hostname` module shows the system hostname.
### Variables
-| Variable | Example | Description |
-| --------- | ------- | ------------------------------------ |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| --------- | ---------- | ----------------------------------- |
+| hostname | `computer` | The hostname of the computer |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -2133,7 +2147,7 @@ symbol = "☁️ "
## 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`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm` and `shards` packages.
+The `package` module is shown when the current directory is the repository for a package, and shows its current version. The module currently supports `npm`, `nimble`, `cargo`, `poetry`, `composer`, `gradle`, `julia`, `mix`, `helm`, `shards` and `dart` packages.
- [**npm**](https://docs.npmjs.com/cli/commands/npm) – The `npm` package version is extracted from the `package.json` present in the current directory
- [**Cargo**](https://doc.rust-lang.org/cargo/) – The `cargo` package version is extracted from the `Cargo.toml` present in the current directory
@@ -2150,6 +2164,7 @@ The `package` module is shown when the current directory is the repository for a
- [**Shards**](https://crystal-lang.org/reference/the_shards_command/index.html) - The `shards` package version is extracted from the `shard.yml` present
- [**V**](https://vlang.io) - The `vlang` package version is extracted from the `v.mod` present
- [**SBT**](https://scala-sbt.org) - The `sbt` package version is extracted from the `build.sbt` present in the current directory
+- [**Dart**](https://pub.dev/) - The `dart` package version is extracted from the `pubspec.yaml` present in the current directory
> ⚠️ The version being shown is that of the package whose source code is in your current directory, not your package manager.
@@ -2673,6 +2688,8 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| `elvish_indicator` | `esh` | A format string used to represent elvish. |
| `tcsh_indicator` | `tsh` | A format string used to represent tcsh. |
| `xonsh_indicator` | `xsh` | A format string used to represent xonsh. |
+| `cmd_indicator` | `cmd` | A format string used to represent cmd. |
+| `nu_indicator` | `nu` | A format string used to represent nu. |
| `unknown_indicator` | | The default value to be displayed when the shell is unknown. |
| `format` | `"[$indicator]($style) "` | The format for the module. |
| `style` | `"white bold"` | The style for the module. |
@@ -2778,7 +2795,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
:::
-::: warning This module is not supported on elvish and nu shell. :::
+::: warning This module is not supported on nu shell. :::
### Options
@@ -2804,6 +2821,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| Variable | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
+| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
diff --git a/docs/tr-TR/faq/README.md b/docs/tr-TR/faq/README.md
index 8422ee2e3..99dd6bcc8 100644
--- a/docs/tr-TR/faq/README.md
+++ b/docs/tr-TR/faq/README.md
@@ -69,13 +69,13 @@ If you see symbols that you don't recognise you can use `starship explain` to ex
You can enable the debug logs by using the `STARSHIP_LOG` env var. These logs can be very verbose so it is often useful to use the `module` command if you are trying to debug a particular module, for example, if you are trying to debug the `rust` module you could run the following command to get the trace logs and output from the module.
```sh
-env STARHIP_LOG=trace starship module rust
+env STARSHIP_LOG=trace starship module rust
```
If starship is being slow you can try using the `timings` command to see if there is a particular module or command that to blame.
```sh
-env STARHIP_LOG=trace starship timings
+env STARSHIP_LOG=trace starship timings
```
This will output the trace log and a breakdown of all modules that either took more than 1ms to execute or produced some output.
@@ -118,5 +118,5 @@ If Starship was installed using the install script, the following command will d
```sh
# Locate and delete the starship binary
-sh -c 'rm "$(which starship)"'
+sh -c 'rm "$(command -v 'starship')"'
```
diff --git a/docs/tr-TR/guide/README.md b/docs/tr-TR/guide/README.md
index 7db695b94..787940f58 100644
--- a/docs/tr-TR/guide/README.md
+++ b/docs/tr-TR/guide/README.md
@@ -72,6 +72,22 @@
height="20"
src="https://raw.githubusercontent.com/starship/starship/master/media/flag-fr.png"
alt="Français"
+ />
+
+
+
+
@@ -119,7 +119,7 @@ eval $(starship init ion)
#### Elvish
- ::: warning Chỉ elvish v0.15 hoặc cao hơn được hỗ trợ. :::
+ ::: warning Only elvish v0.17 or higher is supported. :::
Thêm đoạn sau vào cuối tệp tin `~/.elvish/rc.elv`:
@@ -164,3 +164,14 @@ eval $(starship init ion)
execx($(starship init xonsh))
```
+
+
+ #### Cmd
+
+ You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory:
+
+ ```lua
+ -- starship.lua
+
+ load(io.popen('starship init cmd'):read("*a"))()
+ ```
diff --git a/docs/vi-VN/advanced-config/README.md b/docs/vi-VN/advanced-config/README.md
index d94dc0ebd..b6958fa25 100644
--- a/docs/vi-VN/advanced-config/README.md
+++ b/docs/vi-VN/advanced-config/README.md
@@ -8,11 +8,35 @@ Các tùy chỉnh được mô tả trong phần này có thể sẽ thay đổi
:::
-## Tùy chỉnh các hàm được thực thi trước prompt và các lệnh Linux mặc định của bash shell
+## Custom pre-prompt and pre-execution Commands in Cmd
-Bash không có một preexec/precmd framework chính thống giống như các shells khác. Do đó rất khó để cung cấp các hook với khả năng tuỳ biến hoàn toàn cho `bash` shell. Tuy nhiên, Starship cho phép bạn viết các hàm riêng của bạn để tùy biến việc render prompt:
+Clink provides extremely flexible APIs to run pre-prompt and pre-exec commands in Cmd shell. It is fairly simple to use with Starship. Make the following changes to your `starship.lua` file as per your requirements:
-- Để thực thi một hàm custom trước khi prompt được render, ta cần định nghĩa một hàm mới và gán `starship_precmd_user_func` cho tên của hàm này. Ví dụ, để vẽ một tên lửa trước prompt
+- To run a custom function right before the prompt is drawn, define a new function called `starship_preprompt_user_func`. This function receives the current prompt as a string that you can utilize. For example, to draw a rocket before the prompt, you would do
+
+```lua
+function starship_preprompt_user_func(prompt)
+ print("🚀")
+end
+
+load(io.popen('starship init cmd'):read("*a"))()
+```
+
+- To run a custom function right before a command is executed, define a new function called `starship_precmd_user_func`. This function receives the current commandline as a string that you can utilize. For example, to print the command that's about to be executed, you would do
+
+```lua
+function starship_precmd_user_func(line)
+ print("Executing: "..line)
+end
+
+load(io.popen('starship init cmd'):read("*a"))()
+```
+
+## Custom pre-prompt and pre-execution Commands in Bash
+
+Bash does not have a formal preexec/precmd framework like most other shells. Because of this, it is difficult to provide fully customizable hooks in `bash`. Tuy nhiên, Starship cho phép bạn viết các hàm riêng của bạn để tùy biến việc render prompt:
+
+- To run a custom function right before the prompt is drawn, define a new function and then assign its name to `starship_precmd_user_func`. For example, to draw a rocket before the prompt, you would do
```bash
function blastoff(){
@@ -21,13 +45,13 @@ function blastoff(){
starship_precmd_user_func="blastoff"
```
-- Để thực thi một hàm custom trước khi một câu lệnh Linux chạy, ta có thể sử dụng cơ chế bẫy tín hiệu [`DEBUG`](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). Tuy nhiên, bạn **phải** đặt bẫy tín hiệu DEBUG *trước* khởi tạo Starship! Starship có thể giữ giá trị của DEBUG trap, nhưng nếu trap bị ghi đè sau khi starship khởi động, một vài chức năng sẽ không hoạt động.
+- To run a custom function right before a command runs, you can use the [`DEBUG` trap mechanism](https://jichu4n.com/posts/debug-trap-and-prompt_command-in-bash/). However, you **must** trap the DEBUG signal *before* initializing Starship! Starship can preserve the value of the DEBUG trap, but if the trap is overwritten after starship starts up, some functionality will break.
```bash
function blastoff(){
echo "🚀"
}
-trap blastoff DEBUG # Bẫy DEBUG *trước khi* starship chạy
+trap blastoff DEBUG # Trap DEBUG *before* running starship
eval $(starship init bash)
```
@@ -43,11 +67,11 @@ function Invoke-Starship-PreCommand {
}
```
-## Thay đổi tên gọi trên cửa sổ của chương trình terminal
+## Change Window Title
-Một vài shell có khả năng tự động thay đổi tên hiển thị (chẳng hạn như tên của thư mục hiện thời) trên cửa số của trình mô phỏng terminal. Fish shell mặc định thực hiện thay đổi này. Tuy không được set mặc định trên Starship, chức năng này có thể được tích hợp dễ dàng trên `bash` shell và `zsh` shell.
+Some shell prompts will automatically change the window title for you (e.g. to reflect your working directory). Fish even does it by default. Starship does not do this, but it's fairly straightforward to add this functionality to `bash`, `zsh`, `cmd` or `powershell`.
-Đầu tiên, ta cần định nghĩa một hàm thay đổi tiêu đề cửa sổ (dùng chung cho cả bash và zsh):
+First, define a window title change function (identical in bash and zsh):
```bash
function set_win_title(){
@@ -55,23 +79,23 @@ function set_win_title(){
}
```
-Ta có thể sử dụng biến số để tuỳ chỉnh tên hiển thị này (`$USER`, `$HOSTNAME`, và `$PWD` là những biến số thường được dùng).
+You can use variables to customize this title (`$USER`, `$HOSTNAME`, and `$PWD` are popular choices).
-Với `bash` shell, set precmd của starship bằng tên của hàm này:
+In `bash`, set this function to be the precmd starship function:
```bash
starship_precmd_user_func="set_win_title"
```
-Với `zsh` shell, thêm hàm này vào mảng `precmd_functions`:
+In `zsh`, add this to the `precmd_functions` array:
```bash
precmd_functions+=(set_win_title)
```
-Nếu ta hài lòng với các tùy biến đã được thiết lập, thêm những dòng sau vào cấu hình shell (`~/.bashrc` hoặc `~/.zshrc`) để thực thi chúng mỗi khi ta khởi tạo một shell mới.
+If you like the result, add these lines to your shell configuration file (`~/.bashrc` or `~/.zshrc`) to make it permanent.
-Ví dụ, nếu ta muốn hiển thị đường dẫn thư mục hiện tại trong tiêu đề của một terminal tab, thêm đoạn code sau vào `~/.bashrc` hoặc `~/.zshrc`:
+For example, if you want to display your current directory in your terminal tab title, add the following snippet to your `~/.bashrc` or `~/.zshrc`:
```bash
function set_win_title(){
@@ -80,6 +104,16 @@ function set_win_title(){
starship_precmd_user_func="set_win_title"
```
+For Cmd, you can change the window title using the `starship_preprompt_user_func` function.
+
+```lua
+function starship_preprompt_user_func(prompt)
+ console.settitle(os.getenv('USERNAME').."@"..os.getenv('COMPUTERNAME')..": "..os.getcwd())
+end
+
+load(io.popen('starship init cmd'):read("*a"))()
+```
+
You can also set a similar output with PowerShell by creating a function named `Invoke-Starship-PreCommand`.
```powershell
@@ -97,7 +131,7 @@ Some shells support a right prompt which renders on the same line as the input.
Note: The right prompt is a single line following the input location. To right align modules above the input line in a multi-line prompt, see the [fill module](/config/#fill).
-`right_format` is currently supported for the following shells: elvish, fish, zsh.
+`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd.
### Ví dụ
@@ -117,29 +151,51 @@ Produces a prompt like the following:
▶ starship on rprompt [!] is 📦 v0.57.0 via 🦀 v1.54.0 took 17s
```
+## Continuation Prompt
+
+Some shells support a continuation prompt along with the normal prompt. This prompt is rendered instead of the normal prompt when the user has entered an incomplete statement (such as a single left parenthesis or quote).
+
+Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `"[∙](bright-black) "`.
+
+Note: `continuation_prompt` should be set to a literal string without any variables.
+
+Note: Continuation prompts are only available in the following shells:
+
+ - `bash`
+ - `zsh`
+ - `PowerShell`
+
+### Ví dụ
+
+```toml
+# ~/.config/starship.toml
+
+# A continuation prompt that displays two filled in arrows
+continuation_prompt = "▶▶"
+```
## Các chuỗi kiểu
-Chuỗi kiểu là một danh sách các từ, được phân cách bởi khoảng trắng. Các từ là không phân biệt hoa thường (ví dụ. `bold` và `Bold` là hai chuỗi tương đương). Mỗi từ có thể là một trong các từ sau:
+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:
- `bold`
- - `nghiêng`
- - `gạch dưới`
- - `làm tối đi`
- - `đảo ngược`
+ - `italic`
+ - `underline`
+ - `dimmed`
+ - `inverted`
- `bg:Mô đun này có một vài tùy chọn nâng cao để điều khiển cách thư mục được hiển thị.
+This module has a few advanced configuration options that control how the directory is displayed.
| Tùy chọn nâng cao | Mặc định | Mô tả |
| --------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -846,9 +859,9 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. Nếu SDK được ghim trong thư mục hiện tại, phiên bản ghim đó được hiển thị. Ngược lại, mô đun hiển thị phiên bản cuối cùng của SDK được cài đặt.
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) 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.
-Mặc định, mô đun này sẽ chỉ được hiển thị trong dấu nhắc lệnh của bạn khi một hoặc nhiều tệp tin dưới đây xuất hiện trong thư mục hiện tại:
+By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
- `global.json`
- `project.json`
@@ -859,11 +872,11 @@ Mặc định, mô đun này sẽ chỉ được hiển thị trong dấu nhắc
- `*.fsproj`
- `*.xproj`
-Bạn cũng sẽ cần cài đặt .NET Core SDK đúng cách để sử dụng một cách chính xác.
+You'll also need the .NET Core SDK installed in order to use it correctly.
-Mô đun này sử dụng cơ chế của bản thân để phát hiện phiên bản của chính nó. Thông thường, nó nhanh gấp đôi nếu chạy `dotnet --version`, nhưng nó có thể hiện sai phiên bản nếu dự án .NET của bạn có một cấu trúc thư mục bất thường. Nếu độ chính xác quan trọng hơn tốc độ, bạn có thể vô hiệu cơ chế bằng cài đặt `heuristic = false` trong các tùy chọn mô đun.
+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.
-Mô đun cũng sẽ hiện Target Framework Moniker (此组件有几个高级配置选项来控制当前目录路径的显示方式。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | 默认值 | 描述 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -846,7 +859,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. 如果当前目录已被绑定了一个版本的 SDK,则显示被帮定的版本。 否则此组件将显示最新安装的 SDK 版本。
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) 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.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -861,7 +874,7 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
-在内部,此组件使用自己的版本检测机制。 一般来说此组件是直接执行 `dotnet --version` 的两倍快,但当你的 .NET 项目使用了不常见的目录布局时此组件可能显示一个错误的版本。 如果相比于速度您更需要正确的版本号,您可以在组件设置中设置 `heuristic = false` 来禁用该机制。
+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.
The module will also show the Target Framework Moniker (這個模組有些進階設定選項可以控制顯示資料夾。
+This module has a few advanced configuration options that control how the directory is displayed.
| Advanced Option | 預設 | 說明 |
| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -846,7 +859,7 @@ format = "via [🐋 $context](blue bold)"
## Dotnet
-The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) for the current directory. 如果這個資料夾已經選定一個 SDK,則顯示這個 SDK 的版本。 如果沒有的話,則顯示最新安裝的 SDK 版本。
+The `dotnet` module shows the relevant version of the [.NET Core SDK](https://dotnet.microsoft.com/) 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.
By default this module will only be shown in your prompt when one or more of the following files are present in the current directory:
@@ -861,7 +874,7 @@ By default this module will only be shown in your prompt when one or more of the
You'll also need the .NET Core SDK installed in order to use it correctly.
-這個模組內部是使用它自己的機制來偵測版本。 一般來說這個模組有 `dotnet --version` 的兩倍快,但是它可能會在你的 .NET 專案有不尋常的資料夾結構時顯示不正確的版本。 如果精確度比速度更重要的話,你可以藉由設定模組中的 `heuristic = false` 選項來停用這個功能。
+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.
The module will also show the Target Framework Moniker (