summaryrefslogtreecommitdiffstats
path: root/src/configs/status.rs
AgeCommit message (Collapse)Author
2022-10-15fix(status): replace multiply with cross mark emoji (#4461)David Knaack
2022-09-09feat(schema): deny unknown keys (#4270)David Knaack
2022-07-19feat(status): Add pipestatus_segment_format option to status module (#4103)Artyom Belousov
Add pipestatus_segment_format
2022-04-01feat: allow printing config file schema (#3737)David Knaack
2022-03-26refactor: replace module_config_derive with serde (#3786)David Knaack
* refactor: replace module_config_derive with serde Changes include: * Removing `starship_module_config_derive` and replacing it with `serde::Deserialize` * Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde. * Merging `RootModuleConfig` into `ModuleConfig` * Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs` * Deserialization errors (invalid type) are now logged and include the current key and the struct names * Unknown keys are now considered an error. "Did you mean?"-messages are still possible * fix typo Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Matan Kushner <hello@matchai.dev>
2022-03-16fix(status): Make status module work even when the status is 0 (#3750)Izhak Jakov
Co-authored-by: Izhak Jakov <jizhak@ca.ibm.com>
2021-07-28feat(status): Add pipestatus display in status module (#2481)Hugues Morisset
* feat: Add pipestatus display in status module This MR is based on this one https://github.com/starship/starship/pull/370 * Documentation * Add a test with map_symbol false * Handle bash preexec pipestatus * Add zsh support * Add fish support Thanks kidonng for the diff patch * Rename sucess_symbol to success_symbol
2021-03-31feat(config): allow printing default and computed config (#2521)David Knaack
* feat: allow printing default and computed config * fix custom modules * actually fix custom modules
2021-03-15refactor: replace RootModuleConfig with Default (#2458)David Knaack
2021-01-02feat(status): Convert known status code to their meaning (#1948)Hugues Morisset
User is able to choose if their want to display the meaning of known status code in place of number.
2020-09-26feat(status): add the status module (#1651)Jan Katins
* add the exit code module this allows to display more precisely the last command exit code and to configure starship to not change the last charcter of the prompt even in case of failure. It is disabled by default, because it seems a bit redundant with the character module in its default configuration. * rename exit_code module to status * Enforce a default disabled=true In the outer places, we only check for the disabled flag in the config toml file, only when this is loaded into the real config struct, we see the default. And if the default is true, we have to abort at that place. For status and hg_branch that wasn't so. I also commented the rest * fix spaces in markdown table for status module * Add a tip that status module is disabled by default Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> * Remove unrelated changes for default disabled=true Co-authored-by: Gaƫtan Lehmann <gaetan.lehmann@gmail.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>