mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-26 11:37:32 +00:00
fix: Adjust default format strings (#2165)
* fix(dotnet): update dotnet format string * fix(dotnet): update erlang format string * fix(dotnet): update golang format string * fix(dotnet): update helm format string * fix(dotnet): update julia format string * fix(dotnet): update nim format string * fix(dotnet): update ruby format string * fix(dotnet): update rust format string * test: update formatted strings in unit tests * Use suggested format strings Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: Moritz Vetter <mv@3yourmind.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
This commit is contained in:
parent
e437a463ac
commit
527ffbaede
@ -771,7 +771,7 @@ when there is a csproj file in the current directory.
|
||||
|
||||
| Option | Default | Description |
|
||||
| ----------- | ----------------------------------------- | -------------------------------------------------------- |
|
||||
| `format` | `"[$symbol$version( 🎯 $tfm)]($style) "` | The format for the module. |
|
||||
| `format` | `"[$symbol($version )(🎯 $tfm )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"•NET "` | The symbol used before displaying the version of dotnet. |
|
||||
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
|
||||
| `style` | `"bold blue"` | The style for the module. |
|
||||
@ -926,7 +926,7 @@ The module will be shown if any of the following conditions are met:
|
||||
| ---------- | ---------------------------------- | -------------------------------------------------------- |
|
||||
| `symbol` | `" "` | The symbol used before displaying the version of erlang. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `disabled` | `false` | Disables the `erlang` module. |
|
||||
|
||||
### Variables
|
||||
@ -1229,7 +1229,7 @@ The module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ---------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"🐹 "` | A format string representing the symbol of Go. |
|
||||
| `style` | `"bold cyan"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `golang` module. |
|
||||
@ -1265,7 +1265,7 @@ The module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ------------------------------------------------ |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"⎈ "` | A format string representing the symbol of Helm. |
|
||||
| `style` | `"bold white"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `helm` module. |
|
||||
@ -1410,7 +1410,7 @@ The module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ------------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"ஃ "` | A format string representing the symbol of Julia. |
|
||||
| `style` | `"bold purple"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `julia` module. |
|
||||
@ -1681,7 +1681,7 @@ The module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ----------------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module |
|
||||
| `symbol` | `"👑 "` | The symbol used before displaying the version of Nim. |
|
||||
| `style` | `"bold yellow"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `nim` module. |
|
||||
@ -2119,7 +2119,7 @@ The module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ------------------------------------------------ |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"💎 "` | A format string representing the symbol of Ruby. |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `ruby` module. |
|
||||
@ -2155,7 +2155,7 @@ The module will be shown if any of the following conditions are met:
|
||||
|
||||
| Option | Default | Description |
|
||||
| ---------- | ---------------------------------- | ----------------------------------------------- |
|
||||
| `format` | `"via [$symbol$version]($style) "` | The format for the module. |
|
||||
| `format` | `"via [$symbol($version )]($style)"` | The format for the module. |
|
||||
| `symbol` | `"🦀 "` | A format string representing the symbol of Rust |
|
||||
| `style` | `"bold red"` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `rust` module. |
|
||||
|
@ -14,7 +14,7 @@ pub struct DotnetConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for DotnetConfig<'a> {
|
||||
fn new() -> Self {
|
||||
DotnetConfig {
|
||||
format: "[$symbol$version( 🎯 $tfm)]($style) ",
|
||||
format: "[$symbol($version )(🎯 $tfm )]($style)",
|
||||
symbol: "•NET ",
|
||||
style: "blue bold",
|
||||
heuristic: true,
|
||||
|
@ -13,7 +13,7 @@ pub struct ErlangConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for ErlangConfig<'a> {
|
||||
fn new() -> Self {
|
||||
ErlangConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: " ",
|
||||
style: "bold red",
|
||||
disabled: false,
|
||||
|
@ -13,7 +13,7 @@ pub struct GoConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for GoConfig<'a> {
|
||||
fn new() -> Self {
|
||||
GoConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: "🐹 ",
|
||||
style: "bold cyan",
|
||||
disabled: false,
|
||||
|
@ -13,7 +13,7 @@ pub struct HelmConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for HelmConfig<'a> {
|
||||
fn new() -> Self {
|
||||
HelmConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: "⎈ ",
|
||||
style: "bold white",
|
||||
disabled: false,
|
||||
|
@ -13,7 +13,7 @@ pub struct JuliaConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for JuliaConfig<'a> {
|
||||
fn new() -> Self {
|
||||
JuliaConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: "ஃ ",
|
||||
style: "bold purple",
|
||||
disabled: false,
|
||||
|
@ -13,7 +13,7 @@ pub struct NimConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for NimConfig<'a> {
|
||||
fn new() -> Self {
|
||||
NimConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: "👑 ",
|
||||
style: "yellow bold",
|
||||
disabled: false,
|
||||
|
@ -13,7 +13,7 @@ pub struct RubyConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for RubyConfig<'a> {
|
||||
fn new() -> Self {
|
||||
RubyConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: "💎 ",
|
||||
style: "bold red",
|
||||
disabled: false,
|
||||
|
@ -13,7 +13,7 @@ pub struct RustConfig<'a> {
|
||||
impl<'a> RootModuleConfig<'a> for RustConfig<'a> {
|
||||
fn new() -> Self {
|
||||
RustConfig {
|
||||
format: "via [$symbol$version]($style) ",
|
||||
format: "via [$symbol($version )]($style)",
|
||||
symbol: "🦀 ",
|
||||
style: "bold red",
|
||||
disabled: false,
|
||||
|
Loading…
Reference in New Issue
Block a user