diff options
Diffstat (limited to 'docs/zh-TW')
-rw-r--r-- | docs/zh-TW/advanced-config/README.md | 24 | ||||
-rw-r--r-- | docs/zh-TW/config/README.md | 401 | ||||
-rw-r--r-- | docs/zh-TW/migrating-to-0.45.0/README.md | 140 |
3 files changed, 294 insertions, 271 deletions
diff --git a/docs/zh-TW/advanced-config/README.md b/docs/zh-TW/advanced-config/README.md index 3b5c300c8..89a696d7d 100644 --- a/docs/zh-TW/advanced-config/README.md +++ b/docs/zh-TW/advanced-config/README.md @@ -80,6 +80,26 @@ starship init fish | source enable_transience ``` +## TransientPrompt and TransientRightPrompt in Bash + +The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework allows you to replace the previous-printed prompt with custom strings. This is useful in cases where all the prompt information is not always needed. To enable this, put this in `~/.bashrc` `bleopt prompt_ps1_transient=<value>`: + +The \<value\> here is a colon-separated list of `always`, `same-dir` and `trim`. When `prompt_ps1_final` is empty and this option has a non-empty value, the prompt specified by `PS1` is erased on leaving the current command line. If the value contains a field `trim`, only the last line of multiline `PS1` is preserved and the other lines are erased. Otherwise, the command line will be redrawn as if `PS1=` is specified. When a field `same-dir` is contained in the value and the current working directory is different from the final directory of the previous command line, this option `prompt_ps1_transient` is ignored. + +Make the following changes to your `~/.bashrc` to customize what gets displayed on the left and on the right: + +- To customize what the left side of input gets replaced with, configure the `prompt_ps1_final` Ble.sh option. For example, to display Starship's `character` module here, you would do + +```bash +bleopt prompt_ps1_final="$(starship module character)" +``` + +- To customize what the right side of input gets replaced with, configure the `prompt_rps1_final` Ble.sh option. For example, to display the time at which the last command was started here, you would do + +```bash +bleopt prompt_rps1_final="$(starship module time)" +``` + ## 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: @@ -205,7 +225,9 @@ 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, xonsh, cmd, nushell. +`right_format` is currently supported for the following shells: elvish, fish, zsh, xonsh, cmd, nushell, bash. + +Note: The [Ble.sh](https://github.com/akinomyoga/ble.sh) framework should be installed in order to use right prompt in bash. ### 範例 diff --git a/docs/zh-TW/config/README.md b/docs/zh-TW/config/README.md index 7f0845e4a..508690dd4 100644 --- a/docs/zh-TW/config/README.md +++ b/docs/zh-TW/config/README.md @@ -46,7 +46,7 @@ os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\star ### Logging -By default starship logs warnings and errors into a file named `~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`, where the session key is corresponding to an instance of your terminal. This, however can be changed using the `STARSHIP_CACHE` environment variable: +在預設值下 starship 會記錄警告以及錯誤至`~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log`,其中 session key 對應至您的終端機實例 不過,可以使用 `STARSHIP_CACHE` 環境變數來變更此設定: ```sh export STARSHIP_CACHE=~/.starship/cache @@ -85,7 +85,7 @@ The following Starship syntax symbols have special usage in a format string and | `'''` | multi-line literal string | less escaping | | `"""` | multi-line string | more escaping, newlines in declarations can be ignored | -For example: +範例: ```toml # literal string @@ -98,7 +98,7 @@ format = "☺\\☻ " format = '\[\$\] ' ``` -When using line breaks, multi-line declarations can be used. For example, if you want to print a `$` symbol on a new line, the following values for `format` are equivalent: +使用換行符號時,可以使用多行宣告 舉例來說,如果你想在一個新行印出 `$` 符號,則下列的 `format` 值具有相同效果 ```toml # with literal string @@ -115,7 +115,7 @@ format = """ format = "\n\\$" ``` -In multiline basic strings, newlines can be used for formatting without being present in the value by escaping them. +在多行基本字串中,換行符號可用於格式化,而無需透過跳脫字元出現在值中。 ```toml format = """ @@ -128,7 +128,7 @@ line2 """ ``` -### Format Strings +### 格式化字串 Format strings are the format that a module prints all its variables with. Most modules have an entry called `format` that configures the display format of the module. You can use texts, variables and text groups in a format string. @@ -136,7 +136,7 @@ Format strings are the format that a module prints all its variables with. Most A variable contains a `$` symbol followed by the name of the variable. The name of a variable can only contain letters, numbers and `_`. -For example: +範例: - `'$version'` is a format string with a variable named `version`. - `'$git_branch$git_commit'` is a format string with two variables named `git_branch` and `git_commit`. @@ -150,7 +150,7 @@ The first part, which is enclosed in a `[]`, is a [format string](#format-string In the second part, which is enclosed in a `()`, is a [style string](#style-strings). This can be used to style the first part. -For example: +範例: - `'[on](red bold)'` will print a string `on` with bold text colored red. - `'[⌘ $version](bold green)'` will print a symbol `⌘` followed by the content of variable `version`, with bold text colored green. @@ -173,7 +173,7 @@ Starship 內大多數的模組允許你設定他們的顯示風格。 這要透 A conditional format string wrapped in `(` and `)` will not render if all variables inside are empty. -For example: +範例: - `'(@$region)'` will show nothing if the variable `region` is `None` or empty string, otherwise `@` followed by the value of region. - `'(some text)'` will always show nothing since there are no variables wrapped in the braces. @@ -197,7 +197,7 @@ detect_extensions = ['ts', '!video.ts', '!audio.ts'] ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ----------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `format` | [連結](#default-prompt-format) | Configure the format of the prompt. | | `right_format` | `''` | See [Enable Right Prompt](/advanced-config/#enable-right-prompt) | @@ -242,9 +242,9 @@ blue = '21' mustard = '#af8700' ``` -### Default Prompt Format +### 預設提示字元格式 -The default `format` is used to define the format of the prompt, if empty or no `format` is provided. 預設如下: +如果為空值或未提供 `format`,則預設`format`用於定義提示字元的格式。 預設如下: ```toml format = '$all' @@ -340,7 +340,7 @@ $shell\ $character""" ``` -If you just want to extend the default format, you can use `$all`; modules you explicitly add to the format will not be duplicated. Eg. +如果你只是想要擴充預設的格式,可以使用 `$all`,您明確地新增到格式中的模組將不會重複。 Eg. ```toml # Move the directory to the second line @@ -365,7 +365,7 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | `format` | `'on [$symbol($profile )(\($region\) )(\[$duration\] )]($style)'` | The format for the module. | | `symbol` | `'☁️ '` | 顯示在目前 AWS 配置之前的符號。 | @@ -376,7 +376,7 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile | `disabled` | `false` | 停用 `AWS` 模組。 | | `force_display` | `false` | If `true` displays info even if `credentials`, `credential_process` or `sso_start_url` have not been setup. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | ---------------- | ------------------------------------------- | @@ -388,9 +388,9 @@ When using [aws-sso-cli](https://github.com/synfinatic/aws-sso-cli) the profile *: This variable can only be used as a part of a style string -### Examples +### 範例 -#### Display everything +#### 顯示所有 ```toml # ~/.config/starship.toml @@ -406,7 +406,7 @@ us-east-1 = 'va' CompanyGroupFrobozzOnCallAccess = 'Frobozz' ``` -#### Display region +#### 顯示 region ```toml # ~/.config/starship.toml @@ -420,7 +420,7 @@ ap-southeast-2 = 'au' us-east-1 = 'va' ``` -#### Display profile +#### 顯示 profile ```toml # ~/.config/starship.toml @@ -447,9 +447,9 @@ The `azure` module shows the current Azure Subscription. This is based on showin | `disabled` | `true` | Disables the `azure` module. | | `subscription_aliases` | `{}` | Table of subscription name aliases to display in addition to Azure subscription name. | -### Examples +### 範例 -#### Display Subscription Name +#### 顯示訂閱名稱 ```toml # ~/.config/starship.toml @@ -461,7 +461,7 @@ symbol = ' ' style = 'blue bold' ``` -#### Display Username +#### 顯示使用者名稱 ```toml # ~/.config/starship.toml @@ -473,7 +473,7 @@ symbol = " " style = "blue bold" ``` -#### Display Subscription Name Alias +#### 顯示訂閱名稱別名 ```toml # ~/.config/starship.toml @@ -488,7 +488,7 @@ very-long-subscription-name = 'vlsn' ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | -------------------- | --------------------------------- | -------------------------- | | `full_symbol` | `' '` | 當電池充飽時顯示的符號。 | | `charging_symbol` | `' '` | 當電池正在充電時顯示的符號。 | @@ -526,7 +526,7 @@ The default value for the `charging_symbol` and `discharging_symbol` option is r `display` 選項是一個下列表格的陣列。 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | -------------------- | ------------ | --------------------------------------------------------------------------------------------------------- | | `threshold` | `10` | 顯示選項的上界。 | | `style` | `'red bold'` | 顯示選項使用時的風格。 | @@ -543,7 +543,7 @@ style = 'bold red' [[battery.display]] # 'bold yellow' style and 💦 symbol when capacity is between 10% and 30% threshold = 30 style = 'bold yellow' -discharging_symbol = '💦' +discharging_symbol = '💦 ' # when capacity is over 30%, the battery indicator will not be displayed ``` @@ -557,7 +557,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ----------------------------------------------- | ----------------------------------------------------- | | `format` | `'with [$symbol($version )]($style)'` | The format for the `buf` module. | | `version_format` | `'v${raw}'` | The version format. | @@ -568,7 +568,7 @@ The `buf` module shows the currently installed version of [Buf](https://buf.buil | `style` | `'bold blue'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `elixir` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------- | ------------------------------------ | @@ -596,7 +596,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun. ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -607,7 +607,7 @@ The `bun` module shows the currently installed version of the [bun](https://bun. | `style` | `'bold red'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `bun` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------- | ------------------------------------ | @@ -632,7 +632,7 @@ The `c` module shows some information about your C compiler. By default the modu ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version(-$name) )]($style)'` | The format string for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -644,7 +644,7 @@ The `c` module shows some information about your C compiler. By default the modu | `style` | `'bold 149'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `c` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | ------- | ------ | ------------------------------------ | @@ -691,7 +691,7 @@ By default it only changes color. If you also want to change its shape take a lo ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | --------------------------- | -------------------- | --------------------------------------------------------------------------------------- | | `format` | `'$symbol '` | The format string used before the text input. | | `success_symbol` | `'[❯](bold green)'` | The format string used before the text input if the previous command succeeded. | @@ -702,13 +702,13 @@ By default it only changes color. If you also want to change its shape take a lo | `vimcmd_visual_symbol` | `'[❮](bold yellow)'` | The format string used before the text input if the shell is in vim visual mode. | | `disabled` | `false` | 停用 `character` 模組。 | -### Variables +### 變數 | 變數 | 範例 | 說明 | | ------ | -- | -------------------------------------------------------------------------------------------------------- | | symbol | | A mirror of either `success_symbol`, `error_symbol`, `vimcmd_symbol` or `vimcmd_replace_one_symbol` etc. | -### Examples +### 範例 #### With custom error shape @@ -748,7 +748,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | -------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -759,7 +759,7 @@ The `cmake` module shows the currently installed version of [CMake](https://cmak | `style` | `'bold blue'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `cmake` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | --------- | ------------------------------------ | @@ -778,7 +778,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | | `symbol` | `'⚙️ '` | The symbol used before displaying the version of COBOL. | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | @@ -789,7 +789,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t | `detect_folders` | `[]` | Which folders should trigger this module. | | `disabled` | `false` | Disables the `cobol` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | ---------- | ------------------------------------ | @@ -813,7 +813,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ---------------------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `min_time` | `2_000` | Shortest duration to show time for (in milliseconds). | | `show_milliseconds` | `false` | 顯示時間除了以秒為單位外,亦以毫秒顯示 | @@ -824,7 +824,7 @@ The `cobol` module shows the currently installed version of COBOL. By default, t | `min_time_to_notify` | `45_000` | Shortest duration for notification (in milliseconds). | | `notification_timeout` | | Duration to show notification for (in milliseconds). If unset, notification timeout will be determined by daemon. Not all notification daemons honor this option. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------- | --------------------------------------- | @@ -855,7 +855,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------- | | `truncation_length` | `1` | 如果環境變數由所`conda create -p [path]`產生時,環境變數的資料夾需要截斷的數目。 `0` 表示不截斷 也請參考 [`directory`](#directory)模組 | | `symbol` | `'🅒 '` | 環境名稱前使用的符號。 | @@ -864,7 +864,7 @@ This does not suppress conda's own prompt modifier, you may want to run `conda c | `ignore_base` | `true` | Ignores `base` environment when activated. | | `disabled` | `false` | 停用 `conda` 模組。 | -### Variables +### 變數 | 變數 | 範例 | 說明 | | ----------- | ------------ | ------------------------------------ | @@ -889,14 +889,14 @@ The `container` module displays a symbol and container name, if inside a contain ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ---------- | ---------------------------------- | ----------------------------------------- | | `symbol` | `'⬢'` | The symbol shown, when inside a container | | `style` | `'bold red dimmed'` | 這個模組的風格。 | | `format` | `'[$symbol \[$name\]]($style) '` | The format for the module. | | `disabled` | `false` | Disables the `container` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | ------------------- | ------------------------------------ | @@ -924,7 +924,7 @@ The `crystal` module shows the currently installed version of [Crystal](https:// ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | | `symbol` | `'🔮 '` | The symbol used before displaying the version of crystal. | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | @@ -935,7 +935,7 @@ The `crystal` module shows the currently installed version of [Crystal](https:// | `detect_folders` | `[]` | Which folders should trigger this module. | | `disabled` | `false` | Disables the `crystal` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | --------- | ------------------------------------ | @@ -962,7 +962,7 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ------------------------------------ | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -973,7 +973,7 @@ The `daml` module shows the currently used [Daml](https://www.digitalasset.com/d | `detect_folders` | `[]` | Which folders should trigger this module. | | `disabled` | `false` | Disables the `daml` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------- | ------------------------------------ | @@ -1002,7 +1002,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ------------------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -1013,7 +1013,7 @@ The `dart` module shows the currently installed version of [Dart](https://dart.d | `style` | `'bold blue'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `dart` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------- | ------------------------------------ | @@ -1040,7 +1040,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -1051,7 +1051,7 @@ The `deno` module shows you your currently installed version of [Deno](https://d | `style` | `'green bold'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `deno` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------- | ------------------------------------ | @@ -1078,7 +1078,7 @@ When using the `fish_style_pwd_dir_length` option, instead of hiding the path th ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `truncation_length` | `3` | 到達現在資料夾的路徑中,要被裁減掉的資料夾數目。 | | `truncate_to_repo` | `true` | 是否要裁減到你現在所在的 git 儲存庫的根目錄。 | @@ -1115,7 +1115,7 @@ When using the `fish_style_pwd_dir_length` option, instead of hiding the path th </details> -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | --------------------- | ----------------------------------- | @@ -1155,7 +1155,7 @@ The `direnv` module shows the status of the current rc file if one is present. T ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | -------------------------------------- | ----------------------------------------------------- | | `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. | | `symbol` | `'direnv '` | The symbol used before displaying the direnv context. | @@ -1165,11 +1165,12 @@ The `direnv` module shows the status of the current rc file if one is present. T | `detect_files` | `['.envrc']` | Which filenames should trigger this module. | | `detect_folders` | `[]` | Which folders should trigger this module. | | `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. | +| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. | | `denied_msg` | `'denied'` | The message displayed when an rc file is denied. | | `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. | | `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | ------------------- | --------------------------------------- | @@ -1196,7 +1197,7 @@ 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. | @@ -1207,7 +1208,7 @@ The `docker_context` module shows the currently active [Docker context](https:// | `style` | `'blue bold'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `docker_context` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | -------------- | ------------------------------------ | @@ -1249,7 +1250,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft. ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )(🎯 $tfm )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -1261,7 +1262,7 @@ The module will also show the Target Framework Moniker (<https://docs.microsoft. | `style` | `'bold blue'` | 這個模組的風格。 | | `disabled` | `false` | 停用 `dotnet` 模組。 | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | ---------------- | ------------------------------------------------------------------ | @@ -1291,7 +1292,7 @@ The `elixir` module shows the currently installed version of [Elixir](https://el ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version \(OTP $otp_version\) )]($style)'` | The format for the module elixir. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -1302,7 +1303,7 @@ The `elixir` module shows the currently installed version of [Elixir](https://el | `style` | `'bold purple'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `elixir` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | ----------- | ------- | ------------------------------------ | @@ -1334,7 +1335,7 @@ The `elm` module shows the currently installed version of [Elm](https://elm-lang ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------- | | `format` | `'via [$symbol($version )]($style)'` | The format for the module. | | `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` | @@ -1345,7 +1346,7 @@ The `elm` module shows the currently installed version of [Elm](https://elm-lang | `style` | `'cyan bold'` | 這個模組的風格。 | | `disabled` | `false` | Disables the `elm` module. | -### Variables +### 變數 | 變數 | 範例 | 說明 | | --------- | --------- | ------------------------------------ | @@ -1394,7 +1395,7 @@ default = 'unknown user' ### 選項 -| Option | 預設 | 說明 | +| 選項 | 預設 | 說明 | | ---------- | ------------------------------ | ---------------------------------------------------------------------------- | | `symbol` | `""` | 顯示在變數數值之前的符號。 |