diff --git a/.github/config-schema.json b/.github/config-schema.json index 3dc390b6..b89b9817 100644 --- a/.github/config-schema.json +++ b/.github/config-schema.json @@ -1715,7 +1715,7 @@ "not_executable_symbol": "🚫", "not_found_symbol": "🔍", "pipestatus": false, - "pipestatus_format": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)", + "pipestatus_format": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style) ", "pipestatus_separator": "|", "recognize_signal_code": true, "sigint_symbol": "🧱", @@ -6006,7 +6006,7 @@ "type": "string" }, "pipestatus_format": { - "default": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)", + "default": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style) ", "type": "string" }, "pipestatus_segment_format": { diff --git a/docs/config/README.md b/docs/config/README.md index 09d26334..9d733dda 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -4272,23 +4272,23 @@ To enable it, set `disabled` to `false` in your configuration file. ### Options -| Option | Default | Description | -| --------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `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'` | The style for the module. | -| `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 used to separate pipestatus segments (supports formatting) | -| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline | -| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments | -| `disabled` | `true` | Disables the `status` module. | +| Option | Default | Description | +| --------------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------------- | +| `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'` | The style for the module. | +| `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 used to separate pipestatus segments (supports formatting) | +| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style) '` | The format of the module when the command is a pipeline | +| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments | +| `disabled` | `true` | Disables the `status` module. | ### Variables diff --git a/src/configs/status.rs b/src/configs/status.rs index a27f2ed2..7693572f 100644 --- a/src/configs/status.rs +++ b/src/configs/status.rs @@ -42,7 +42,7 @@ impl<'a> Default for StatusConfig<'a> { pipestatus: false, pipestatus_separator: "|", pipestatus_format: - "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)", + "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style) ", pipestatus_segment_format: None, disabled: true, }