summaryrefslogtreecommitdiffstats
path: root/docs/zh-TW/config/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/zh-TW/config/README.md')
-rw-r--r--docs/zh-TW/config/README.md588
1 files changed, 358 insertions, 230 deletions
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index fb20f59d2..36daff26e 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -21,16 +21,16 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being
disabled = true
```
-你可以藉由修改 `STARSHIP_CONFIG`環境變數而改變預設的`starship.toml` 檔案位置
+You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
```sh
-export STARSHIP_CONFIG=~/.starship
+export STARSHIP_CONFIG=~/.starship/config.toml
```
Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
```powershell
-$ENV:STARSHIP_CONFIG = "$HOME\.starship"
+$ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
```
### Logging
@@ -227,6 +227,7 @@ $jobs\
$battery\
$time\
$status\
+$shell\
$character"""
```
@@ -423,19 +424,22 @@ vicmd_symbol = "[V](bold green) "
## CMake
-The `cmake` module shows the currently installed version of CMake if any of the following conditions are met:
+The `cmake` module shows the currently installed version of CMake. By default the module will be activated if any of the following conditions are met:
- The current directory contains a `CMakeLists.txt` file
- The current directory contains a `CMakeCache.txt` file
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | -------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"喝 "` | The symbol used before the version of cmake. |
-| `style` | `"bold blue"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `cmake` module. |
+| Option | 預設 | 說明 |
+| ------------------- | -------------------------------------- | -------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `symbol` | `"喝 "` | The symbol used before the version of cmake. |
+| `detect_extensions` | `[]` | Which extensions should trigger this moudle |
+| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
+| `detect_folders` | `[]` | Which folders should trigger this module |
+| `style` | `"bold blue"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `cmake` module. |
### Variables
@@ -538,19 +542,22 @@ format = "[$symbol$environment](dimmed green) "
## Crystal
-`crystal` 模組顯示現在所安裝的Crystal版本 這個模組在下列其中一個條件達成時顯示:
+`crystal` 模組顯示現在所安裝的Crystal版本 By default the module will be shown if any of the following conditions are met:
- 現在資料夾中含有一個 `shard.yml` 檔案
- 現在資料夾中含有一個`.cr`檔案
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | --------------------------------------------------------- |
-| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
-| `style` | `"bold red"` | 這個模組的風格。 |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `disabled` | `false` | Disables the `crystal` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | --------------------------------------------------------- |
+| `symbol` | `"🔮 "` | The symbol used before displaying the version of crystal. |
+| `style` | `"bold red"` | 這個模組的風格。 |
+| `detect_extensions` | `["cr"]` | Which extensions should trigger this module. |
+| `detect_files` | `["shard.yml"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `disabled` | `false` | Disables the `crystal` module. |
### Variables
@@ -573,20 +580,23 @@ format = "via [✨ $version](bold blue) "
## Dart
-The `dart` module shows the currently installed version of Dart. 這個模組在下列其中一個條件達成時顯示:
+The `dart` module shows the currently installed version of Dart. By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.dart` extension
- The current directory contains a `.dart_tool` directory
-- The current directory contains a `pubspec.yaml` or `pubspec.lock` file
+- The current directory contains a `pubspec.yaml`, `pubspec.yml` or `pubspec.lock` file
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ----------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
-| `style` | `"bold blue"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `dart` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------------------- | ----------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `symbol` | `"🎯 "` | A format string representing the symbol of Dart |
+| `detect_extensions` | `['dart']` | Which extensions should trigger this moudle. |
+| `detect_files` | `["pubspec.yaml", "pubspec.yml", "pubspec.lock"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[".dart_tool"]` | Which folders should trigger this module. |
+| `style` | `"bold blue"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `dart` module. |
### Variables
@@ -632,11 +642,11 @@ format = "via [🔰 $version](bold red) "
<details>
<summary>這個模組有些進階設定選項可以控制顯示資料夾。</summary>
-| Advanced Option | 預設 | 說明 |
-| --------------------------- | ------ | ------------------------------------------------ |
-| `substitutions` | | A table of substitutions to be made to the path. |
-| `fish_style_pwd_dir_length` | `0` | 當使用 fish shell 的 pwd 路徑邏輯時使用的字元數量。 |
-| `use_logical_path` | `true` | 顯示 shell (`PWD`) 提供的邏輯路徑,而不是 OS 的路徑。 |
+| Advanced Option | 預設 | 說明 |
+| --------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `substitutions` | | A table of substitutions to be made to the path. |
+| `fish_style_pwd_dir_length` | `0` | 當使用 fish shell 的 pwd 路徑邏輯時使用的字元數量。 |
+| `use_logical_path` | `true` | 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. |
`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.
@@ -675,13 +685,16 @@ The `docker_context` module shows the currently active [Docker context](https://
### 選項
-| Option | 預設 | 說明 |
-| ----------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------- |
-| `format` | `"via [$symbol$context]($style) "` | The format for the module. |
-| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
-| `style` | `"blue bold"` | 這個模組的風格。 |
-| `only_with_files` | `true` | Only show when there's a `docker-compose.yml`, `docker-compose.yaml`, or `Dockerfile` in the current directory. |
-| `disabled` | `false` | Disables the `docker_context` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
+| `format` | `"via [$symbol$context]($style) "` | The format for the module. |
+| `symbol` | `"🐳 "` | The symbol used before displaying the Docker context. |
+| `only_with_files` | `true` | Only show when there's a match |
+| `detect_extensions` | `[]` | Which extensions should trigger this module (needs `only_with_files` to be true). |
+| `detect_files` | `["docker-compose.yml", "docker-compose.yaml", "Dockerfile"]` | Which filenames should trigger this module (needs `only_with_files` to be true). |
+| `detect_folders` | `[]` | Which folders should trigger this module (needs `only_with_files` to be true). |
+| `style` | `"blue bold"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `docker_context` module. |
### Variables
@@ -706,7 +719,7 @@ format = "via [🐋 $context](blue bold)"
`dotnet` 模組顯示現在資料夾使用的 .NET Core SDK 的版本。 如果這個資料夾已經選定一個 SDK,則顯示這個 SDK 的版本。 如果沒有的話,則顯示最新安裝的 SDK 版本。
-This module will only be shown in your prompt when one or more of the following files are present in the current directory:
+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`
@@ -726,13 +739,16 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft.
### 選項
-| Option | 預設 | 說明 |
-| ----------- | ----------------------------------------- | ---------------------------- |
-| `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
-| `symbol` | `"•NET "` | 在顯示 dotnet 版本之前用的符號。 |
-| `heuristic` | `true` | 使用更快速的版本偵測法來保持 starship 的速度。 |
-| `style` | `"bold blue"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `dotnet` 模組。 |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
+| `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
+| `symbol` | `"•NET "` | 在顯示 dotnet 版本之前用的符號。 |
+| `heuristic` | `true` | 使用更快速的版本偵測法來保持 starship 的速度。 |
+| `detect_extensions` | `["sln", "csproj", "fsproj", "xproj"]` | Which extensions should trigger this module. |
+| `detect_files` | `["global.json", "project.json", "Directory.Build.props", "Directory.Build.targets", "Packages.props"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `style` | `"bold blue"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `dotnet` module. |
### Variables
@@ -758,18 +774,21 @@ heuristic = false
## Elixir
-The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. 這個模組在下列其中一個條件達成時顯示:
+The `elixir` module shows the currently installed version of Elixir and Erlang/OTP. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `mix.exs` 檔案.
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ----------------------------------------------------------- | --------------------------------------------------------------- |
-| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
-| `style` | `"bold purple"` | 這個模組的風格。 |
-| `format` | `'via [$symbol($version \(OTP $otp_version\) )]($style)'` | The format for the module elixir. |
-| `disabled` | `false` | Disables the `elixir` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ----------------------------------------------------------- | --------------------------------------------------------------- |
+| `symbol` | `"💧 "` | The symbol used before displaying the version of Elixir/Erlang. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `["mix.exs"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `style` | `"bold purple"` | 這個模組的風格。 |
+| `format` | `'via [$symbol($version \(OTP $otp_version\) )]($style)'` | The format for the module elixir. |
+| `disabled` | `false` | Disables the `elixir` module. |
### Variables
@@ -793,7 +812,7 @@ symbol = "🔮 "
## Elm
-The `elm` module shows the currently installed version of Elm. 這個模組在下列其中一個條件達成時顯示:
+The `elm` module shows the currently installed version of Elm. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `elm.json` 檔案
- 現在資料夾中包含一個 `elm-package.json` 檔案
@@ -803,12 +822,15 @@ The `elm` module shows the currently installed version of Elm. 這個模組在
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ----------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"🌳 "` | A format string representing the symbol of Elm. |
-| `style` | `"cyan bold"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `elm` module. |
+| Option | 預設 | 說明 |
+| ------------------- | -------------------------------------------------- | ----------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `symbol` | `"🌳 "` | A format string representing the symbol of Elm. |
+| `detect_extensions` | `["elm"]` | Which extensions should trigger this module. |
+| `detect_files` | `["elm.json", "elm-package.json", ".elm-version"]` | Which filenames should trigger this module. |
+| `detect_folders` | `["elm-stuff"]` | Which folders should trigger this modules. |
+| `style` | `"cyan bold"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `elm` module. |
### Variables
@@ -868,19 +890,22 @@ default = "unknown shell"
## Erlang
-The `erlang` module shows the currently installed version of Erlang/OTP. 這個模組在下列其中一個條件達成時顯示:
+The `erlang` module shows the currently installed version of Erlang/OTP. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `rebar.config` 檔案.
- 現在資料夾中包含一個 `erlang.mk` 檔案.
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | -------------------------------------------------------- |
-| `symbol` | `" "` | The symbol used before displaying the version of erlang. |
-| `style` | `"bold red"` | 這個模組的風格。 |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `disabled` | `false` | Disables the `erlang` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | -------------------------------------------------------- |
+| `symbol` | `" "` | The symbol used before displaying the version of erlang. |
+| `style` | `"bold red"` | 這個模組的風格。 |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `["rebar.config", "elang.mk"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `disabled` | `false` | Disables the `erlang` module. |
### Variables
@@ -1161,7 +1186,7 @@ behind = "⇣${count}"
## Golang
-`golang` 模組顯示現在安裝的 Golang 版本。 這個模組在下列其中一個條件達成時顯示:
+`golang` 模組顯示現在安裝的 Golang 版本。 By default the module will be shown if any of the following conditions are met:
- 現在資料夾中含有一個 `go.mod` 檔案
- 現在資料夾中含有一個 `go.sum` 檔案
@@ -1174,12 +1199,15 @@ behind = "⇣${count}"
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ---------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"🐹 "` | A format string representing the symbol of Go. |
-| `style` | `"bold cyan"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `golang` 模組。 |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `symbol` | `"🐹 "` | A format string representing the symbol of Go. |
+| `detect_extensions` | `["go"]` | Which extensions should trigger this moudle. |
+| `detect_files` | `["go.mod", "go.sum", "glide.yaml", "Gopkg.yml", "Gopkg.lock", ".go-version"]` | Which filenames should trigger this module. |
+| `detect_folders` | `["Godeps"]` | Which folders should trigger this module. |
+| `style` | `"bold cyan"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `golang` module. |
### Variables
@@ -1202,19 +1230,22 @@ format = "via [🏎💨 $version](bold cyan) "
## Helm
-The `helm` module shows the currently installed version of Helm. 這個模組在下列其中一個條件達成時顯示:
+The `helm` module shows the currently installed version of Helm. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `helmfile.yaml` 檔案
- The current directory contains a `Chart.yaml` file
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ------------------------------------------------ |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"⎈ "` | A format string representing the symbol of Helm. |
-| `style` | `"bold white"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `helm` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------ |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `detect_extensions` | `[]` | Which extensions should trigger this module. |
+| `detect_files` | `["helmfile.yaml", "Chart.yaml"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `symbol` | `"⎈ "` | A format string representing the symbol of Helm. |
+| `style` | `"bold white"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `helm` module. |
### Variables
@@ -1272,19 +1303,22 @@ disabled = false
## Java
-`java` 模組顯示現在安裝的 Java 版本。 這個模組在下列其中一個條件達成時顯示:
+`java` 模組顯示現在安裝的 Java 版本。 By default the module will be shown if any of the following conditions are met:
- The current directory contains a `pom.xml`, `build.gradle.kts`, `build.sbt`, `.java-version`, `.deps.edn`, `project.clj`, or `build.boot` file
- The current directory contains a file with the `.java`, `.class`, `.gradle`, `.jar`, `.clj`, or `.cljc` extension
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ---------------------------------------- | ----------------------------------------------- |
-| `format` | `"via [${symbol}(${version} )]($style)"` | The format for the module. |
-| `symbol` | `"☕ "` | A format string representing the symbol of Java |
-| `style` | `"red dimmed"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `java` 模組。 |
+| Option | 預設 | 說明 |
+| ------------------- | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
+| `format` | `"via [${symbol}(${version} )]($style)"` | The format for the module. |
+| `detect_extensions` | `["java", "class", "gradle", "jar", "cljs", "cljc"]` | Which extensions should trigger this module. |
+| `detect_files` | `["pom.xml", "build.gradle.kts", "build.sbt", ".java-version", ".deps.edn", "project.clj", "build.boot"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `symbol` | `"☕ "` | A format string representing the symbol of Java |
+| `style` | `"red dimmed"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `java` module. |
### Variables
@@ -1341,7 +1375,7 @@ threshold = 4
## Julia
-The `julia` module shows the currently installed version of Julia. 這個模組在下列其中一個條件達成時顯示:
+The `julia` module shows the currently installed version of Julia. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `Project.toml` file
- The current directory contains a `Manifest.toml` file
@@ -1349,12 +1383,15 @@ The `julia` module shows the currently installed version of Julia. 這個模組
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"ஃ "` | A format string representing the symbol of Julia. |
-| `style` | `"bold purple"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `julia` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `detect_extensions` | `["jl"]` | Which extensions should trigger this module. |
+| `detect_files` | `["Project.toml", "Manifest.toml"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `symbol` | `"ஃ "` | A format string representing the symbol of Julia. |
+| `style` | `"bold purple"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `julia` module. |
### Variables
@@ -1377,19 +1414,22 @@ symbol = "∴ "
## Kotlin
-The `kotlin` module shows the currently installed version of Kotlin. 這個模組在下列其中一個條件達成時顯示:
+The `kotlin` module shows the currently installed version of Kotlin. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `.kt` or a `.kts` file
### 選項
-| Option | 預設 | 說明 |
-| --------------- | ------------------------------------ | ----------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"🅺 "` | A format string representing the symbol of Kotlin. |
-| `style` | `"bold blue"` | 這個模組的風格。 |
-| `kotlin_binary` | `"kotlin"` | Configures the kotlin binary that Starship executes when getting the version. |
-| `disabled` | `false` | Disables the `kotlin` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `detect_extensions` | `["kt", "kts"]` | Which extensions should trigger this module. |
+| `detect_files` | `[]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this modules. |
+| `symbol` | `"🅺 "` | A format string representing the symbol of Kotlin. |
+| `style` | `"bold blue"` | 這個模組的風格。 |
+| `kotlin_binary` | `"kotlin"` | Configures the kotlin binary that Starship executes when getting the version. |
+| `disabled` | `false` | Disables the `kotlin` module. |
### Variables
@@ -1482,7 +1522,7 @@ disabled = true
## Lua
-The `lua` module shows the currently installed version of Lua. 這個模組在下列其中一個條件達成時顯示:
+The `lua` module shows the currently installed version of Lua. By default the module will be shown if any of the following conditions are met:
- The current directory contains a `.lua-version` file
- The current directory contains a `lua` directory
@@ -1490,13 +1530,16 @@ The `lua` module shows the currently installed version of Lua. 這個模組在
### 選項
-| Option | 預設 | 說明 |
-| ------------ | ------------------------------------ | -------------------------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
-| `symbol` | `"🌙 "` | A format string representing the symbol of Lua. |
-| `style` | `"bold blue"` | 這個模組的風格。 |
-| `lua_binary` | `"lua"` | Configures the lua binary that Starship executes when getting the version. |
-| `disabled` | `false` | Disables the `lua` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
+| `symbol` | `"🌙 "` | A format string representing the symbol of Lua. |
+| `detect_extensions` | `["lua"]` | Which extensions should trigger this moudle. |
+| `detect_files` | `[".lua-version"]` | Which filenames should trigger this module. |
+| `detect_folders` | `["lua"]` | Which folders should trigger this module. |
+| `style` | `"bold blue"` | 這個模組的風格。 |
+| `lua_binary` | `"lua"` | Configures the lua binary that Starship executes when getting the version. |
+| `disabled` | `false` | Disables the `lua` module. |
### Variables
@@ -1602,7 +1645,7 @@ truncation_symbol = ""
## Nim
-The `nim` module shows the currently installed version of Nim. 這個模組在下列其中一個條件達成時顯示:
+The `nim` module shows the currently installed version of Nim. By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `nim.cfg` 檔案
- The current directory contains a file with the `.nim` extension
@@ -1611,12 +1654,15 @@ The `nim` module shows the currently installed version of Nim. 這個模組在
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ----------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format for the module |
-| `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. |
-| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `nim` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format for the module |
+| `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. |
+| `detect_extensions` | `["nim", "nims", "nimble"]` | Which extensions should trigger this moudle. |
+| `detect_files` | `["nim.cfg"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `style` | `"bold yellow"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `nim` module. |
### Variables
@@ -1678,7 +1724,7 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
## NodeJS
-`nodejs` 模組顯示現在安裝的 NodeJS 版本。 這個模組在下列其中一個條件達成時顯示:
+`nodejs` 模組顯示現在安裝的 NodeJS 版本。 By default the module will be shown if any of the following conditions are met:
- 現在資料夾中包含一個 `package.json` 檔案
- The current directory contains a `.node-version` file
@@ -1692,8 +1738,11 @@ format = 'via [☃️ $state( \($name\))](bold blue) '
| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `symbol` | `"⬢ "` | A format string representing the symbol of NodeJS. |
+| `detect_extensions` | `["js", "mjs", "cjs", "ts"]` | Which extensions should trigger this moudle. |
+| `detect_files` | `["package.json", ".node-version"]` | Which filenames should trigger this module. |
+| `detect_folders` | `["node_modules"]` | Which folders should trigger this module. |
| `style` | `"bold green"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `nodejs` 模組。 |
+| `disabled` | `false` | Disables the `nodejs` module. |
| `not_capable_style` | `bold red` | The style for the module when an engines property in Packages.json does not match the NodeJS version. |
###  Variables
@@ -1717,7 +1766,7 @@ format = "via [🤖 $version](bold green) "
## OCaml
-The `ocaml` module shows the currently installed version of OCaml. 這個模組在下列其中一個條件達成時顯示:
+The `ocaml` module shows the currently installed version of OCaml. By default the module will be shown if any of the following conditions are met:
- The current directory contains a file with `.opam` extension or `_opam` directory
- The current directory contains a `esy.lock` directory
@@ -1728,12 +1777,15 @@ The `ocaml` module shows the currently installed version of OCaml. 這個模組
### 選項
-| Option | 預設 | 說明 |
-| ---------- | ------------------------------------ | ------------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
-| `symbol` | `"🐫 "` | The symbol used before displaying the version of OCaml. |
-| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `ocaml` module. |
+| Option | 預設 | 說明 |
+| ------------------- | ---------------------------------------------------------------- | ------------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
+| `symbol` | `"🐫 "` | The symbol used before displaying the version of OCaml. |
+| `detect_extensions` | `["opam", "ml", "mli", "re", "rei"]` | Which extensions should trigger this moudle. |
+| `detect_files` | `["dune", "dune-project", "jbuild", "jbuild-ignore", ".merlin"]` | Which filenames should trigger this module. |
+| `detect_folders` | `["_opam", "esy.lock"]` | Which folders should trigger this module. |
+| `style` | `"bold yellow"`