summaryrefslogtreecommitdiffstats
path: root/docs/zh-TW/config/README.md
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2021-04-05 10:55:57 -0400
committerGitHub <noreply@github.com>2021-04-05 16:55:57 +0200
commit85dc3660b1300436f64d0816bde0508eeac8098b (patch)
tree4a8d86f6f3d6f8b9ec1cf41bfe612df2080c709c /docs/zh-TW/config/README.md
parentc7d5ce72b5faeb3fcfe5319af1859f4a00edee22 (diff)
docs(i18n): New Crowdin updates (#2469)
* New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Turkish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Korean) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Portuguese) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Korean) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Russian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (French) * New translations README.md (German) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Dutch) * New translations README.md (Korean) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Korean) * New translations README.md (Japanese) * New translations README.md (Russian) * New translations README.md (Arabic) * New translations README.md (Turkish) * New translations README.md (Spanish) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Chinese Simplified) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Portuguese) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Korean) * New translations README.md (German) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Portuguese) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Korean) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Portuguese) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Korean) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Arabic) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Russian) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Korean) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Japanese) * New translations README.md (Portuguese) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Dutch) * New translations README.md (Korean) * New translations README.md (Korean) * New translations README.md (Japanese) * New translations README.md (Russian) * New translations README.md (Italian) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (German) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (Spanish) * New translations README.md (Russian) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Arabic) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Turkish) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Japanese) * New translations README.md (Korean) * New translations README.md (Dutch) * New translations README.md (Polish) * New translations README.md (Portuguese) * New translations README.md (Russian) * New translations README.md (Turkish) * New translations README.md (Italian) * New translations README.md (Chinese Simplified) * New translations README.md (Chinese Traditional) * New translations README.md (Vietnamese) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Sorani (Kurdish)) * New translations README.md (German) * New translations README.md (French) * New translations README.md (Spanish) * New translations README.md (Arabic) * New translations README.md (German) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Portuguese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Russian) * New translations README.md (Vietnamese) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Turkish) * New translations README.md (Chinese Traditional) * New translations README.md (Chinese Simplified) * New translations README.md (Korean) * New translations README.md (Italian) * New translations README.md (Japanese) * New translations README.md (Polish) * New translations README.md (Dutch) * New translations README.md (Japanese) * New translations README.md (Italian) * New translations README.md (German) * New translations README.md (Portuguese) * New translations README.md (Sorani (Kurdish)) * New translations README.md (Portuguese, Brazilian) * New translations README.md (Vietnamese) * New translations README.md (Chinese Traditional) * New translations README.md (Russian) * New translations README.md (Chinese Simplified) * New translations README.md (Turkish) * New translations README.md (Arabic) * New translations README.md (Spanish) * New translations README.md (French) * New translations README.md (Korean)
Diffstat (limited to 'docs/zh-TW/config/README.md')
-rw-r--r--docs/zh-TW/config/README.md199
1 files changed, 116 insertions, 83 deletions
diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md
index 487e27bfa..e67bf88b0 100644
--- a/docs/zh-TW/config/README.md
+++ b/docs/zh-TW/config/README.md
@@ -3,7 +3,7 @@
為了開始設定 Starship,請建立下右檔案: `~/.config/starship.toml`.
```sh
-mkdir -p ~/.config && touch ~/.config/starship.toml
+mkdir -p ~/.config && starship print-config --default > ~/.config/starship.toml
```
所有關於 Starship 的設定都在這個 [TOML](https://github.com/toml-lang/toml) 檔案內:
@@ -180,6 +180,7 @@ $hostname\
$shlvl\
$kubernetes\
$directory\
+$vcsh\
$git_branch\
$git_commit\
$git_state\
@@ -248,7 +249,7 @@ When using [awsu](https://github.com/kreuzwerker/awsu) the profile is read from
| `symbol` | `"☁️ "` | 顯示在目前 AWS 配置之前的符號。 |
| `region_aliases` | | 除了AWS名稱外,顯示區域別名表 |
| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `false` | 停用 `AWS` 模組。 |
+| `disabled` | `false` | Disables the `aws` module. |
### Variables
@@ -310,25 +311,24 @@ The `battery` module shows how charged the device's battery is and its current c
| Option | 預設 | 說明 |
| -------------------- | --------------------------------- | -------------------------- |
-| `full_symbol` | `""` | 當電池充飽時顯示的符號。 |
-| `charging_symbol` | `""` | 當電池正在充電時顯示的符號。 |
-| `discharging_symbol` | `""` | 當電池正在放電時顯示的符號。 |
-| `unknown_symbol` | `""` | 當電池狀態不明時顯示的符號。 |
-| `empty_symbol` | `""` | 當電池沒電時顯示的符號。 |
+| `full_symbol` | `" "` | 當電池充飽時顯示的符號。 |
+| `charging_symbol` | `" "` | 當電池正在充電時顯示的符號。 |
+| `discharging_symbol` | `" "` | 當電池正在放電時顯示的符號。 |
+| `unknown_symbol` | `" "` | 當電池狀態不明時顯示的符號。 |
+| `empty_symbol` | `" "` | 當電池沒電時顯示的符號。 |
| `format` | `"[$symbol$percentage]($style) "` | The format for the module. |
| `display` | [連結](#battery-display) | 顯示的門檻與模組的風格。 |
| `disabled` | `false` | 停用 `battery` 模組。 |
-
### 範例
```toml
# ~/.config/starship.toml
[battery]
-full_symbol = "🔋"
-charging_symbol = "⚡️"
-discharging_symbol = "💀"
+full_symbol = "🔋 "
+charging_symbol = "⚡️ "
+discharging_symbol = "💀 "
```
### 電池顯示
@@ -438,7 +438,7 @@ The `cmake` module shows the currently installed version of CMake. By default th
| ------------------- | -------------------------------------- | -------------------------------------------- |
| `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_extensions` | `[]` | Which extensions should trigger this module |
| `detect_files` | `["CMakeLists.txt", "CMakeCache.txt"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
| `style` | `"bold blue"` | 這個模組的風格。 |
@@ -595,7 +595,7 @@ The `dart` module shows the currently installed version of Dart. By default the
| ------------------- | ------------------------------------------------- | ----------------------------------------------- |
| `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_extensions` | `['dart']` | Which extensions should trigger this module. |
| `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"` | 這個模組的風格。 |
@@ -745,7 +745,7 @@ 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 版本之前用的符號。 |
+| `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. |
@@ -1001,20 +1001,20 @@ The `git_branch` module shows the active branch of the repo in your current dire
| `format` | `"on [$symbol$branch]($style) "` | The format for the module. Use `"$branch"` to refer to the current branch name. |
| `symbol` | `" "` | A format string representing the symbol of git branch. |
| `style` | `"bold purple"` | 這個模組的風格。 |
-| `truncation_length` | `2^63 - 1` | Truncates a git branch to X graphemes. |
+| `truncation_length` | `2^63 - 1` | Truncates a git branch to `N` graphemes. |
| `truncation_symbol` | `"…"` | 用來指示分支名稱被縮減的符號。 You can use `""` for no symbol. |
-| `only_attached` | `false` | Only show the branch name when not in a detached HEAD state. |
+| `only_attached` | `false` | Only show the branch name when not in a detached `HEAD` state. |
| `disabled` | `false` | 停用 `git_branch` 模組。 |
### Variables
-| 變數 | 範例 | 說明 |
-| ------------- | -------- | ---------------------------------------------------------------------------------------------------- |
-| branch | `master` | The current branch name, falls back to `HEAD` if there's no current branch (e.g. git detached HEAD). |
-| remote_name | `origin` | The remote name. |
-| remote_branch | `master` | The name of the branch tracked on `remote_name`. |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| 變數 | 範例 | 說明 |
+| ------------- | -------- | ------------------------------------------------------------------------------------------------------ |
+| branch | `master` | The current branch name, falls back to `HEAD` if there's no current branch (e.g. git detached `HEAD`). |
+| remote_name | `origin` | The remote name. |
+| remote_branch | `master` | The name of the branch tracked on `remote_name`. |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1035,15 +1035,15 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
### 選項
-| Option | 預設 | 說明 |
-| -------------------- | ------------------------------------------------------ | ----------------------------------------------------- |
-| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
-| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
-| `style` | `"bold green"` | 這個模組的風格。 |
-| `only_detached` | `true` | Only show git commit hash when in detached HEAD state |
-| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
-| `tag_symbol` | `"🏷 "` | Tag symbol prefixing the info shown |
-| `disabled` | `false` | Disables the `git_commit` module. |
+| Option | 預設 | 說明 |
+| -------------------- | ------------------------------------------------------ | ------------------------------------------------------- |
+| `commit_hash_length` | `7` | The length of the displayed git commit hash. |
+| `format` | `"[\\($hash\\)]($style) [\\($tag\\)]($style)"` | The format for the module. |
+| `style` | `"bold green"` | 這個模組的風格。 |
+| `only_detached` | `true` | Only show git commit hash when in detached `HEAD` state |
+| `tag_disabled` | `true` | Disables showing tag info in `git_commit` module. |
+| `tag_symbol` | `"🏷 "` | Tag symbol prefixing the info shown |
+| `disabled` | `false` | Disables the `git_commit` module. |
### Variables
@@ -1206,7 +1206,7 @@ The `golang` module shows the currently installed version of Golang. By default
| ------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------- |
| `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_extensions` | `["go"]` | Which extensions should trigger this module. |
| `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"` | 這個模組的風格。 |
@@ -1543,7 +1543,7 @@ The `lua` module shows the currently installed version of Lua. By default the mo
| ------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
| `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_extensions` | `["lua"]` | Which extensions should trigger this module. |
| `detect_files` | `[".lua-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `["lua"]` | Which folders should trigger this module. |
| `style` | `"bold blue"` | 這個模組的風格。 |
@@ -1627,7 +1627,7 @@ The `hg_branch` module shows the active branch of the repo in your current direc
| `symbol` | `" "` | The symbol used before the hg bookmark or branch name of the repo in your current directory. |
| `style` | `"bold purple"` | 這個模組的風格。 |
| `format` | `"on [$symbol$branch]($style) "` | The format for the module. |
-| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to X graphemes |
+| `truncation_length` | `2^63 - 1` | Truncates the hg branch name to `N` graphemes |
| `truncation_symbol` | `"…"` | 用來指示分支名稱被縮減的符號。 |
| `disabled` | `true` | Disables the `hg_branch` module. |
@@ -1667,7 +1667,7 @@ The `nim` module shows the currently installed version of Nim. By default the mo
| ------------------- | ------------------------------------ | ----------------------------------------------------- |
| `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_extensions` | `["nim", "nims", "nimble"]` | Which extensions should trigger this module. |
| `detect_files` | `["nim.cfg"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold yellow"` | 這個模組的風格。 |
@@ -1743,18 +1743,18 @@ The `nodejs` module shows the currently installed version of NodeJS. By default
### 選項
-| Option | 預設 | 說明 |
-| ------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------- |
-| `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` | 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. |
+| Option | 預設 | 說明 |
+| ------------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------ |
+| `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 module. |
+| `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` | 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 NodeJS version. |
-###  Variables
+### Variables
| 變數 | 範例 | 說明 |
| --------- | ---------- | ------------------------------------ |
@@ -1786,23 +1786,27 @@ The `ocaml` module shows the currently installed version of OCaml. By default th
### 選項
-| 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"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `ocaml` module. |
+| Option | 預設 | 說明 |
+| ------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------- |
+| `format` | `"via [$symbol($version )(\($switch_indicator$switch_name\) )]($style)"` | The format string for the module. |
+| `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. |
+| `detect_extensions` | `["opam", "ml", "mli", "re", "rei"]` | Which extensions should trigger this module. |
+| `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"` | 這個模組的風格。 |
+| `disabled` | `false` | Disables the `ocaml` module. |
### Variables
-| 變數 | 範例 | 說明 |
-| --------- | --------- | ------------------------------------ |
-| version | `v4.10.0` | The version of `ocaml` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| 變數 | 範例 | 說明 |
+| ---------------- | ------------ | ----------------------------------------------------------------- |
+| 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 | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
\*: This variable can only be used as a part of a style string
@@ -1826,7 +1830,7 @@ The `openstack` module shows the current OpenStack cloud and project. The module
| `format` | `"on [$symbol$cloud(\\($project\\))]($style) "` | The format for the module. |
| `symbol` | `"☁️ "` | The symbol used before displaying the current OpenStack cloud. |
| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `false` | Disables the `OpenStack` module. |
+| `disabled` | `false` | Disables the `openstack` module. |
### Variables
@@ -1912,7 +1916,7 @@ The `perl` module shows the currently installed version of Perl. By default the
| ------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
| `symbol` | `"🐪 "` | The symbol used before displaying the version of Perl |
-| `detect_extensions` | `["pl", "pm", "pod"]` | Which extensions should trigger this moudle. |
+| `detect_extensions` | `["pl", "pm", "pod"]` | Which extensions should trigger this module. |
| `detect_files` | `["Makefile.PL", "Build.PL", "cpanfile", "cpanfile.snapshot", "META.json", "META.yml", ".perl-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold 149"` | 這個模組的風格。 |
@@ -1949,7 +1953,7 @@ The `php` module shows the currently installed version of PHP. By default the mo
| ------------------- | ------------------------------------ | ----------------------------------------------------- |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `symbol` | `"🐘 "` | The symbol used before displaying the version of PHP. |
-| `detect_extensions` | `["php"]` | Which extensions should trigger this moudle. |
+| `detect_extensions` | `["php"]` | Which extensions should trigger this module. |
| `detect_files` | `["composer.json", ".php-version"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"147 bold"` | 這個模組的風格。 |
@@ -1987,7 +1991,7 @@ The `purescript` module shows the currently installed version of PureScript vers
| ------------------- | ------------------------------------ | ------------------------------------------------------------ |
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
| `symbol` | `"<=> "` | The symbol used before displaying the version of PureScript. |
-| `detect_extensions` | `["purs"]` | Which extensions should trigger this moudle. |
+| `detect_extensions` | `["purs"]` | Which extensions should trigger this module. |
| `detect_files` | `["spago.dhall"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `"bold white"` | 這個模組的風格。 |
@@ -2034,13 +2038,13 @@ By default the module will be shown if any of the following conditions are met:
| Option | 預設 | 說明 |
| -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
-| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\))]($style)'` | The format for the module. |
+| `format` | `'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'` | The format for the module. |
| `symbol` | `"🐍 "` | A format string representing the symbol of Python |
| `style` | `"yellow bold"` | 這個模組的風格。 |
| `pyenv_version_name` | `false` | 使用 pyenv 取得 Python 的版本。 |
| `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"]` | Which extensions should trigger this moudle |
+| `detect_extensions` | `[".py"]` | Which extensions should trigger this module |
| `detect_files` | `[".python-version", "Pipfile", "__init__.py", "pyproject.toml", "requirements.txt", "setup.py", "tox.ini"]` | Which filenames should trigger this module |
| `detect_folders` | `[]` | Which folders should trigger this module |
| `disabled` | `false` | Disables the `python` module. |
@@ -2063,7 +2067,6 @@ The default values and order for `python_binary` was chosen to first identify th
| pyenv_prefix | `"pyenv "` | Mirrors the value of option `pyenv_prefix` |
| virtualenv | `"venv"` | The current `virtualenv` name |
-
### 範例
```toml
@@ -2167,7 +2170,6 @@ By default the `rust` module shows the currently installed version of Rust. The
format = "via [⚙️ $version](red bold)"
```
-
## Scala
The `scala` module shows the currently installed version of Scala. By default the module will be shown if any of the following conditions are met:
@@ -2178,7 +2180,6 @@ The `scala` module shows the currently installed version of Scala. By default th
### 選項
-
| Option | 預設 | 說明 |
| ------------------- | ---------------------------------------- | ------------------------------------------------- |
| `format` | `"via [${symbol}(${version} )]($style)"` | The format for the module. |
@@ -2208,7 +2209,6 @@ The `scala` module shows the currently installed version of Scala. By default th
symbol = "🌟 "
```
-
## Shell
The `shell` module shows an indicator for currently used shell.
@@ -2240,6 +2240,7 @@ This module is disabled by default. To enable it, set `disabled` to `false` in y
| indicator | | Mirrors the value of `indicator` for currently used shell. |
### Examples
+
```toml
# ~/.config/starship.toml
@@ -2251,24 +2252,24 @@ disabled = false
## SHLVL
-The `shlvl` module shows the current SHLVL ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
+The `shlvl` module shows the current `SHLVL` ("shell level") environment variable, if it is set to a number and meets or exceeds the specified threshold.
### 選項
-| Option | 預設 | 說明 |
-| ----------- | ---------------------------- | ----------------------------------------------------------- |
-| `threshold` | `2` | Display threshold. |
-| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
-| `symbol` | `"↕️ "` | The symbol used to represent the SHLVL. |
-| `repeat` | `false` | Causes `symbol` to be repeated by the current SHLVL amount. |
-| `style` | `"bold yellow"` | 這個模組的風格。 |
-| `disabled` | `true` | Disables the `shlvl` module. |
+| Option | 預設 | 說明 |
+| ----------- | ---------------------------- | ------------------------------------------------------------- |
+| `threshold` | `2` | Display threshold. |
+| `format` | `"[$symbol$shlvl]($style) "` | The format for the module. |
+| `symbol` | `"↕️ "` | The symbol used to represent the `SHLVL`. |
+| `repeat` | `false` | Causes `symbol` to be repeated by the current `SHLVL` amount. |
+| `style` | `"bold yellow"` | 這個模組的風格。 |
+| `disabled` | `true` | Disables the `shlvl` module. |
### Variables
| 變數 | 範例 | 說明 |
| --------- | --- | ------------------------------------ |