1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-09-22 10:49:02 +00:00
starship/docs/presets/no-empty-icons.md
Jan Klass 1a3d51fe76
feat(preset): Add No Empty Icons preset (#4518)
* feat(preset): Add No Empty Icons preset

When toolset files are identified by the Starship module, the default format displays the toolset icon, and additional information.

When the toolset executables are not available, the additional information (like version number) is missing. Only the toolset icon is displayed.

The No Empty Icons preset changes the format configuration to not show the toolset icons if the variables are empty - presumably because the toolset is not installed or found.

Closes #3070
Related #3248

* Remove non-version-related modules from preset

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Add new module opa to preset

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Drop unnecessary inner conditional from format

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Remove commit_hash_length setting from preset

* Remove undesired modules

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-11-06 22:39:04 +01:00

601 B

Return to Presets

No Empty Icons Preset

If toolset files are identified the toolset icon is displayed. If the toolset is not found to determine its version number, it is not displayed. This preset changes the behavior to display the icon only if the toolset information can be determined.

Screenshot of No Empty Icons preset

Configuration

starship preset no-empty-icons > ~/.config/starship.toml

Click to download TOML

<<< @/.vuepress/public/presets/toml/no-empty-icons.toml