docs: New preset "Bracketed Segments" (#2747)
This preset changes all the built-in formats to show their segment in brackets instead of using the default Starship wording ("via", "on", etc.).
This commit is contained in:
parent
b688356c26
commit
5556350d84
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
|
@ -86,3 +86,131 @@ symbol = " "
|
||||||
[swift]
|
[swift]
|
||||||
symbol = "ﯣ "
|
symbol = "ﯣ "
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Bracketed Segments
|
||||||
|
|
||||||
|
This preset changes the format of all the built-in modules to show their segment
|
||||||
|
in brackets instead of using the default Starship wording ("via", "on", etc.).
|
||||||
|
|
||||||
|
Before:
|
||||||
|
|
||||||
|
![Screenshot of default Starship configuration](/presets/bracketed-segments-before.png)
|
||||||
|
|
||||||
|
After:
|
||||||
|
|
||||||
|
![Screenshot of Bracketed Segments preset](/presets/bracketed-segments-after.png)
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[cmake]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
format = "[⏱ $duration]($style)"
|
||||||
|
|
||||||
|
[conda]
|
||||||
|
format = '\[[$symbol$environment]($style)\]'
|
||||||
|
|
||||||
|
[crystal]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[deno]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
format = '\[[$symbol$context]($style)\]'
|
||||||
|
|
||||||
|
[dotnet]
|
||||||
|
format = '\[[$symbol($version)(🎯 $tfm)]($style)\]'
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
format = '\[[$symbol($version \(OTP $otp_version\))]($style)\]'
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[erlang]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
format = '\[[$symbol$branch]($style)\]'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
format = '([\[$all_status$ahead_behind\]]($style))'
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[helm]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[java]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[kotlin]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[lua]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[memory_usage]
|
||||||
|
format = '\[$symbol[$ram( | $swap)]($style)\]'
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
format = '\[[$symbol$state( \($name\))]($style)\]'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[ocaml]
|
||||||
|
format = '\[[$symbol($version)(\($switch_indicator$switch_name\))]($style)\]'
|
||||||
|
|
||||||
|
[package]
|
||||||
|
format = '\[[$symbol$version]($style)\]'
|
||||||
|
|
||||||
|
[perl]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[php]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[purescript]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[python]
|
||||||
|
format = '\[[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
|
||||||
|
|
||||||
|
[red]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[ruby]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[swift]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[terraform]
|
||||||
|
format = '\[[$symbol$workspace]($style)\]'
|
||||||
|
|
||||||
|
[vagrant]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
|
||||||
|
[zig]
|
||||||
|
format = '\[[$symbol($version)]($style)\]'
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue