summaryrefslogtreecommitdiffstats
path: root/src/segment.rs
AgeCommit message (Collapse)Author
2020-08-16chore: remove unused name from Segment and remove some of the misleading ↵Tilmann Meyer
underscores (#1584) * chore: Remove unused name from Segment and remove some of the misleading underscores * chore: Access members of `Segment` directly
2020-04-10fix: Fix variable styles in string formatter (#1069)Zhenhui Xie
* fix: Fix styling in variables * fix: Fix clippy * fix: Allow passing styles down to segments with no style * fix: Fix clippy
2020-04-06improvement: add parser for format strings (#1021)Zhenhui Xie
This PR implements the parser of format strings described in #624.
2020-01-01feat: Add the `starship explain` command (#699)Jon Grythe Stødle
This adds the explain argument to Starship, which explains what the printed modules in the prompt are.
2019-10-04refactor: Go from Rust workspaces to a package with nested packages (#480)Matan Kushner
2019-09-30refactor: Refactoring config (#383)Zhenhui Xie
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-16fix: Update Module::is_empty to check value of segments (#332)Neil Kistner
Previously, a set of empty segments would cause the module to print. This changes the logic of Module::is_empty to check that all the segments are empty instead.
2019-09-14perf: Lazy load files from directory (#335)Nick Young
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-08-05fix: Address longstanding linter errorsMatan Kushner
2019-06-10Add support for prompt configuration (#62)Matan Kushner
- Create `Config` struct that is added to `Context` when initialized - Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`) - `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-05-01Refactor segments into modules (#40)Matan Kushner
2019-04-15Fix bug in path truncationMatan Kushner
Paths with 3 components would truncate to 2 despite the truncation length begin set to 3.
2019-04-13Add fish_promptMatan Kushner
2019-04-12Add some documentation for segmentMatan Kushner
2019-04-12Make segments optionalsMatan Kushner
2019-04-12Remove unnecessary lifetimesMatan Kushner
2019-04-12Use copy to return segmentMatan Kushner
2019-04-12Use builder pattern in char sectionMatan Kushner
2019-04-12Add builder pattern for segmentMatan Kushner