mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-27 03:42:39 +00:00
c8a5adb412
* Add starship preset command * Use ValueEnum for preset command * Generate ValueEnum struct in build.rs * Use absolute paths and refactor codegen * Use dunce to canonicalize path * Use raw string literal in include_bytes! * Use .cloned() * Apply fixes * Fix path escaping * Removed error message if stdout is unavailable Co-authored-by: David Knaack <davidkna@users.noreply.github.com> Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
19 lines
540 B
Markdown
19 lines
540 B
Markdown
[Return to Presets](./README.md#bracketed-segments)
|
|
|
|
# Bracketed Segments Preset
|
|
|
|
This preset changes the format of all the built-in modules to show their segment
|
|
in brackets instead of using the default Starship wording ("via", "on", etc.).
|
|
|
|
![Screenshot of Bracketed Segments preset](/presets/img/bracketed-segments.png)
|
|
|
|
### Configuration
|
|
|
|
```sh
|
|
starship preset bracketed-segments > ~/.config/starship.toml
|
|
```
|
|
|
|
[Click to download TOML](/presets/toml/bracketed-segments.toml)
|
|
|
|
<<< @/.vuepress/public/presets/toml/bracketed-segments.toml
|