mirror of
https://github.com/starship/starship.git
synced 2024-12-15 20:00:45 +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>
18 lines
601 B
Markdown
18 lines
601 B
Markdown
[Return to Presets](./README.md#no-empty-icons)
|
|
|
|
# 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](/presets/img/no-empty-icons.png)
|
|
|
|
### Configuration
|
|
|
|
```sh
|
|
starship preset no-empty-icons > ~/.config/starship.toml
|
|
```
|
|
|
|
[Click to download TOML](/presets/toml/no-empty-icons.toml)
|
|
|
|
<<< @/.vuepress/public/presets/toml/no-empty-icons.toml
|