From 1a3d51fe76c5a62d53533f5d14ceb4425d5a33a5 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Sun, 6 Nov 2022 22:39:04 +0100 Subject: [PATCH] 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 * Add new module opa to preset Co-authored-by: David Knaack * Drop unnecessary inner conditional from format Co-authored-by: David Knaack * Remove commit_hash_length setting from preset * Remove undesired modules Co-authored-by: David Knaack Co-authored-by: David Knaack --- .../public/presets/img/no-empty-icons.png | Bin 0 -> 13487 bytes .../public/presets/toml/no-empty-icons.toml | 115 ++++++++++++++++++ docs/presets/README.md | 6 + docs/presets/no-empty-icons.md | 17 +++ 4 files changed, 138 insertions(+) create mode 100644 docs/.vuepress/public/presets/img/no-empty-icons.png create mode 100644 docs/.vuepress/public/presets/toml/no-empty-icons.toml create mode 100644 docs/presets/no-empty-icons.md diff --git a/docs/.vuepress/public/presets/img/no-empty-icons.png b/docs/.vuepress/public/presets/img/no-empty-icons.png new file mode 100644 index 0000000000000000000000000000000000000000..3f664f90a49ad1b51e2ae3a1cbaee1720988abff GIT binary patch literal 13487 zcmeI3RZtw?x9@R+B@hC^Ap{BT?iL(^yE}vXAR$Qb;2JbY(1D->g9i()fgl3}7zjG} z;GD_-NZq=1?s>R%AMV3%sz$nduU$R6Yjv;hXRQ_cPD7CZmjV|B1%*IaNnRTT1&spv zyXpxR@^k-SI}rJW>aDFPi&8s5wTs-qaF9`#K|!fc!n?D=L~i4FC>eR9pgisS`$ipd zudqcy;g?sIm(dL{KZN20kigooj}co8%y>A-kz{C*->_w*-^j+(#T02PR9lmxots z9v|~oHsOO*p{IS<^~BgvYcM=`G=YtWr`|jU`J$&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ciEOMW`j4&?0xD=Q-@pxSFQ0XZS=E8C*5EI)zJCL7shI;s5BsuC-F!3 zIscR+-oMHYG|Unm@{!FpL?8d7O-8N1UE}YVxdGDuvBBnVRl^ga>(Ih?-hTx9Ltw}z PBNSx?4f$GG%kX~#+~{o} literal 0 HcmV?d00001 diff --git a/docs/.vuepress/public/presets/toml/no-empty-icons.toml b/docs/.vuepress/public/presets/toml/no-empty-icons.toml new file mode 100644 index 00000000..5b98fb7f --- /dev/null +++ b/docs/.vuepress/public/presets/toml/no-empty-icons.toml @@ -0,0 +1,115 @@ +[buf] +format = '(with [$symbol$version ]($style))' + +[bun] +format = '(via [$symbol($version )]($style))' + +[c] +format = '(via [$symbol($version(-$name) )]($style))' + +[cmake] +format = '(via [$symbol($version )]($style))' + +[cobol] +format = '(via [$symbol($version )]($style))' + +[crystal] +format = '(via [$symbol($version )]($style))' + +[daml] +format = '(via [$symbol($version )]($style))' + +[dart] +format = '(via [$symbol($version )]($style))' + +[deno] +format = '(via [$symbol($version )]($style))' + +[dotnet] +format = '(via [$symbol($version )(🎯 $tfm )]($style))' + +[elixir] +format = '(via [$symbol($version \(OTP $otp_version\) )]($style))' + +[elm] +format = '(via [$symbol($version )]($style))' + +[erlang] +format = '(via [$symbol($version )]($style))' + +[golang] +format = '(via [$symbol($version )]($style))' + +[haskell] +format = '(via [$symbol($version )]($style))' + +[helm] +format = '(via [$symbol($version )]($style))' + +[java] +format = '(via [$symbol($version )]($style))' + +[julia] +format = '(via [$symbol($version )]($style))' + +[kotlin] +format = '(via [$symbol($version )]($style))' + +[lua] +format = '(via [$symbol($version )]($style))' + +[nim] +format = '(via [$symbol($version )]($style))' + +[nodejs] +format = '(via [$symbol($version )]($style))' + +[ocaml] +format = '(via [$symbol($version )(\($switch_indicator$switch_name\) )]($style))' + +[opa] +format = '(via [$symbo($version ]($style))"' +[package] +format = '(is [$symbol$version]($style) )' + +[perl] +format = '(via [$symbol($version )]($style))' + +[php] +format = '(via [$symbol($version )]($style))' + +[purescript] +format = '(via [$symbol($version )]($style))' + +[python] +format = '(via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style))' + +[raku] +format = '(via [$symbol($version-$vm_version )]($style))' + +[red] +format = '(via [$symbol($version )]($style))' + +[rlang] +format = '(via [$symbol($version )]($style))' + +[ruby] +format = '(via [$symbol($version )]($style))' + +[rust] +format = '(via [$symbol($version )]($style))' + +[scala] +format = '(via [$symbol($version )]($style))' + +[swift] +format = '(via [$symbol($version )]($style))' + +[vagrant] +format = '(via [$symbol($version )]($style))' + +[vlang] +format = '(via [$symbol($version )]($style))' + +[zig] +format = '(via [$symbol($version )]($style))' diff --git a/docs/presets/README.md b/docs/presets/README.md index b003069f..da1ae9c9 100644 --- a/docs/presets/README.md +++ b/docs/presets/README.md @@ -42,6 +42,12 @@ This preset hides the version of language runtimes. If you work in containers or [![Screenshot of Hide Runtime Versions preset](/presets/img/no-runtime-versions.png "Click to view No Runtime Versions preset")](./no-runtimes) +## [No Empty Icons](./no-empty-icons.md) + +This preset does not show icons if the toolset is not found. + +[![Screenshot of No Empty Icons preset](/presets/img/no-empty-icons.png "Click to view No Runtime Versions preset")](./no-empty-icons.md) + ## [Pure Prompt](./pure-preset.md) This preset emulates the look and behavior of [Pure](https://github.com/sindresorhus/pure). diff --git a/docs/presets/no-empty-icons.md b/docs/presets/no-empty-icons.md new file mode 100644 index 00000000..7be6867d --- /dev/null +++ b/docs/presets/no-empty-icons.md @@ -0,0 +1,17 @@ +[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