Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(preset): new preset "Pastel Rainbow" #5806

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put the img and toml files inside the right directory, docs/public/presets/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paths changed when we switched to vitepress.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
187 changes: 187 additions & 0 deletions docs/.vuepress/public/presets/toml/pastel-rainbow.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
format = """
[](color_purple)\
$os\
$username\
[](bg:color_rustyred fg:color_purple)\
$directory\
[](fg:color_rustyred bg:color_apricot)\
$git_branch\
$git_status\
[](fg:color_apricot bg:color_skyblue)\
$c\
$elixir\
$elm\
$golang\
$gradle\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
$scala\
[](fg:color_skyblue bg:color_teal)\
$docker_context\
[](fg:color_teal bg:color_steelblue)\
$time\
[ ](fg:color_steelblue)\
$line_break$character
"""

palette = 'pastel_powerline'

[palettes.pastel_powerline]
color_rustyred = '#DA627D'
color_purple = '#9A348E'
color_apricot = '#FCA17D'
color_skyblue = '#86BBD8'
color_teal = '#06969A'
color_steelblue = '#33658A'
color_green = '#98971a'
color_red = '#cc241d'
color_pink = '#b16286'
color_yellow = '#d79921'
color_aqua = '#689d6a'

# Disable the blank line at the start of the prompt
# add_newline = false

[username]
show_always = true
style_user = "bg:color_purple"
style_root = "bg:color_purple"
format = '[$user ]($style)'
disabled = false

[os]
style = "bg:color_purple"
disabled = false

[directory]
style = "bg:color_rustyred"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"

# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
"Developer" = "󰲋 "
# Keep in mind that the order matters. For example:
# "Important Documents" = " 󰈙 "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important 󰈙 " = " 󰈙 "

[os.symbols]
Windows = "󰍲"
Ubuntu = "󰕈"
SUSE = ""
Raspbian = "󰐿"
Mint = "󰣭"
Macos = "󰀵"
Manjaro = ""
Linux = "󰌽"
Gentoo = "󰣨"
Fedora = "󰣛"
Alpine = ""
Amazon = ""
Android = ""
Arch = "󰣇"
Artix = "󰣇"
CentOS = ""
Debian = "󰣚"
Redhat = "󱄛"
RedHatEnterprise = "󱄛"

[c]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[docker_context]
symbol = " "
style = "bg:color_teal"
format = '[ $symbol $context ]($style)'

[elixir]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[elm]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[git_branch]
symbol = ""
style = "bg:color_apricot"
format = '[ $symbol $branch ]($style)'

[git_status]
style = "bg:color_apricot"
format = '[$all_status$ahead_behind ]($style)'

[golang]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[gradle]
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[haskell]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[java]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[julia]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[nodejs]
symbol = ""
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[nim]
symbol = "󰆥 "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[rust]
symbol = ""
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[scala]
symbol = " "
style = "bg:color_skyblue"
format = '[ $symbol ($version) ]($style)'

[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "bg:color_steelblue"
format = '[ ♥ $time ]($style)'

[character]
disabled = false
success_symbol = '[](bold fg:color_aqua)'
error_symbol = '[](bold fg:color_red)'
vimcmd_symbol = '[](bold fg:color_green)'
vimcmd_replace_one_symbol = '[](bold fg:color_pink)'
vimcmd_replace_symbol = '[](bold fg:color_pink)'
vimcmd_visual_symbol = '[](bold fg:color_yellow)'
6 changes: 6 additions & 0 deletions docs/presets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ This preset is heavily inspired by [Pastel Powerline](./pastel-powerline.md), an
This is a pseudo minimalist preset inspired by the [geometry](https://github.com/geometry-zsh/geometry) and [spaceship](https://github.com/spaceship-prompt/spaceship-prompt) prompts.

[![Screenshot of Jetpack preset](/presets/img/jetpack.png "Click to view Jetpack preset")](./jetpack)

ecspresso marked this conversation as resolved.
Show resolved Hide resolved
## [Pastel Rainbow](./pastel-rainbow.md)

This preset is the same as [Gruvbox Rainbow](./gruvbox-rainbow.md) but with the colors of [Pastel Powerline](./pastel-powerline.md).

[![Screenshot of Gruvbox Rainbow preset](/presets/img/pastel-rainbow.png "Click to view Pastel Rainbow preset")](./pastel-rainbow)
21 changes: 21 additions & 0 deletions docs/presets/pastel-rainbow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[Return to Presets](./README.md#pastel-rainbow)

# Pastel Rainbow Preset

This preset is the same as [Gruvbox Rainbow](./gruvbox-rainbow.md) but with the colors of [Pastel Powerline](./pastel-powerline.md).

![Screenshot of Pastel Rainbow preset](/presets/img/pastel-rainbow.png)

### Prerequisites

- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal

### Configuration

```sh
starship preset pastel-rainbow -o ~/.config/starship.toml
```

[Click to download TOML](/presets/toml/pastel-rainbow.toml)

<<< @/.vuepress/public/presets/toml/pastel-rainbow.toml