mirror of
https://github.com/starship/starship.git
synced 2024-12-25 16:48:55 +01:00
1a3d51fe76
* 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>
601 B
601 B
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.
Configuration
starship preset no-empty-icons > ~/.config/starship.toml
<<< @/.vuepress/public/presets/toml/no-empty-icons.toml