diff options
author | Kevin Song <chipbuster@users.noreply.github.com> | 2019-08-10 14:30:30 -0700 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-08-10 17:30:30 -0400 |
commit | 39598ec691387637e144799f2d8a983148fd0a57 (patch) | |
tree | 7843949bab665779b4a27e042e4d858628eaa5da /docs | |
parent | 994a865d4da6e67326e1f19094a507b6b226f225 (diff) |
feat: Add configuration to change the character for non-zero sta⦠(#133)
Prompt can now switch characters in addition to switching character color. Add configuration options in so that users can do either, both, or neither.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/config/README.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/config/README.md b/docs/config/README.md index 772fa6b41..d86ae3391 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -89,16 +89,18 @@ discharging_symbol = "π" The `character` module shows a character (usually an arrow) beside where the text is entered in your terminal. -The character will be green if the status of your -last command had a successful status code (zero), and will be red if the last -command had an unsuccessful status code (non-zero). +The character will tell you whether the last command was successful or not. It +can do this in two ways: by changing color (red/green) or by changing its shape +(β/β). The latter will only be done if `use_symbol_for_status` is set to `true`. ### Options | Variable | Default | Description | | ---------- | ------- | ---------------------------------------------------- | -| `symbol` | `"β"` | The symbol used before the text input in the prompt. | -| `disabled` | `false` | Disables the `character` module. | +| `symbol` | `"β"` | The symbol used before the text input in the prompt. | +| `error_symbol` | `"β"` | The symbol used before text input if the previous command failed. | +| `use_symbol_for_status` | `false` | Indicate error status by changing the symbol. | +| `disabled` | `false` | Disables the `character` module. | ### Example @@ -107,6 +109,8 @@ command had an unsuccessful status code (non-zero). [character] symbol = "β―" +error_symbol = "β" +use_symbol_for_status = true ``` ## Command Duration |