mirror of
https://github.com/starship/starship
synced 2024-07-01 07:24:22 +00:00
Compare commits
14 Commits
34acc2d541
...
601f324c26
Author | SHA1 | Date | |
---|---|---|---|
|
601f324c26 | ||
|
365c1fb21b | ||
|
3fa035b800 | ||
|
60a53d1050 | ||
|
8978790afb | ||
|
8d67d25e43 | ||
|
71618fb1d5 | ||
|
d0251fbe17 | ||
|
0130363a76 | ||
|
d1b5c26346 | ||
|
04f6c56e4f | ||
|
30b107d1e7 | ||
|
67d9564291 | ||
|
7259e18bfe |
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -2567,9 +2567,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.117"
|
||||
version = "1.0.118"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3"
|
||||
checksum = "d947f6b3163d8857ea16c4fa0dd4840d52f3041039a85decd46867eb1abef2e4"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"ryu",
|
||||
|
@ -2649,9 +2649,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "shadow-rs"
|
||||
version = "0.28.0"
|
||||
version = "0.29.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1d75516bdaee8f640543ad1f6e292448c23ce57143f812c3736ab4b0874383df"
|
||||
checksum = "0a600f795d0894cda22235b44eea4b85c2a35b405f65523645ac8e35b306817a"
|
||||
dependencies = [
|
||||
"const_format",
|
||||
"is_debug",
|
||||
|
|
|
@ -71,9 +71,9 @@ regex = { version = "1.10.5", default-features = false, features = ["perf", "std
|
|||
rust-ini = "0.21.0"
|
||||
semver = "1.0.23"
|
||||
serde = { version = "1.0.203", features = ["derive"] }
|
||||
serde_json = "1.0.117"
|
||||
serde_json = "1.0.118"
|
||||
sha1 = "0.10.6"
|
||||
shadow-rs = { version = "0.28.0", default-features = false }
|
||||
shadow-rs = { version = "0.29.0", default-features = false }
|
||||
# battery is optional (on by default) because the crate doesn't currently build for Termux
|
||||
# see: https://github.com/svartalf/rust-battery/issues/33
|
||||
starship-battery = { version = "0.8.3", optional = true }
|
||||
|
@ -117,7 +117,7 @@ features = [
|
|||
nix = { version = "0.28.0", default-features = false, features = ["feature", "fs", "user"] }
|
||||
|
||||
[build-dependencies]
|
||||
shadow-rs = { version = "0.28.0", default-features = false }
|
||||
shadow-rs = { version = "0.29.0", default-features = false }
|
||||
dunce = "1.0.4"
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
|
|
|
@ -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)
|
||||
|
||||
## [Catppuccin](./catppuccin.md)
|
||||
|
||||
This is a rewrite of the [gruvbox rainbow](./gruvbox-rainbow.md) preset with different separators and the [catppucin](https://github.com/catppuccin/catppuccin) color theme.
|
||||
|
||||
[![Screenshot of Catppuccin preset](/presets/img/catppuccin.png "Click to view Catppucin preset")](./catppuccin)
|
||||
|
|
21
docs/presets/catppuccin.md
Normal file
21
docs/presets/catppuccin.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
[Return to Presets](./#catppuccin)
|
||||
|
||||
# Catppuccin Preset
|
||||
|
||||
This is a rewrite of the [gruvbox rainbow](./gruvbox-rainbow.md) preset with different separators and the [catppucin](https://github.com/catppuccin/catppuccin) color theme.
|
||||
|
||||
![Screenshot of Catppuccin preset](/presets/img/catppuccin.png)
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- A [Nerd Font](https://www.nerdfonts.com/) installed and enabled in your terminal
|
||||
|
||||
### Configuration
|
||||
|
||||
```sh
|
||||
starship preset catppuccin -o ~/.config/starship.toml
|
||||
```
|
||||
|
||||
[Click to download TOML](/presets/toml/catppuccin.toml)
|
||||
|
||||
<<< @/public/presets/toml/catppuccin.toml
|
BIN
docs/public/presets/img/catppuccin.png
Normal file
BIN
docs/public/presets/img/catppuccin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
182
docs/public/presets/toml/catppuccin.toml
Normal file
182
docs/public/presets/toml/catppuccin.toml
Normal file
|
@ -0,0 +1,182 @@
|
|||
# Get editor completions based on the config schema
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
# Inserts a blank line between shell prompts
|
||||
add_newline = true
|
||||
|
||||
format = """
|
||||
[](surface0)\
|
||||
$os\
|
||||
$username\
|
||||
[](bg:peach fg:surface0)\
|
||||
$directory\
|
||||
[](fg:peach bg:green)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
[](fg:green bg:teal)\
|
||||
$c\
|
||||
$rust\
|
||||
$golang\
|
||||
$nodejs\
|
||||
$php\
|
||||
$java\
|
||||
$kotlin\
|
||||
$haskell\
|
||||
$python\
|
||||
[](fg:teal bg:blue)\
|
||||
$docker_context\
|
||||
[](fg:blue bg:purple)\
|
||||
$time\
|
||||
[ ](fg:purple)\
|
||||
$line_break$character"""
|
||||
|
||||
palette = 'catppuccin_mocha'
|
||||
|
||||
[palettes.catppuccin_mocha]
|
||||
rosewater = "#f5e0dc"
|
||||
flamingo = "#f2cdcd"
|
||||
pink = "#f5c2e7"
|
||||
orange = "#cba6f7"
|
||||
red = "#f38ba8"
|
||||
maroon = "#eba0ac"
|
||||
peach = "#fab387"
|
||||
yellow = "#f9e2af"
|
||||
green = "#a6e3a1"
|
||||
teal = "#94e2d5"
|
||||
sky = "#89dceb"
|
||||
sapphire = "#74c7ec"
|
||||
blue = "#89b4fa"
|
||||
lavender = "#b4befe"
|
||||
text = "#cdd6f4"
|
||||
subtext1 = "#bac2de"
|
||||
subtext0 = "#a6adc8"
|
||||
overlay2 = "#9399b2"
|
||||
overlay1 = "#7f849c"
|
||||
overlay0 = "#6c7086"
|
||||
surface2 = "#585b70"
|
||||
surface1 = "#45475a"
|
||||
surface0 = "#313244"
|
||||
base = "#1e1e2e"
|
||||
mantle = "#181825"
|
||||
crust = "#11111b"
|
||||
|
||||
[os]
|
||||
disabled = false
|
||||
style = "bg:surface0 fg:text"
|
||||
|
||||
[os.symbols]
|
||||
Windows = ""
|
||||
Ubuntu = ""
|
||||
SUSE = ""
|
||||
Raspbian = ""
|
||||
Mint = ""
|
||||
Macos = ""
|
||||
Manjaro = ""
|
||||
Linux = ""
|
||||
Gentoo = ""
|
||||
Fedora = ""
|
||||
Alpine = ""
|
||||
Amazon = ""
|
||||
Android = ""
|
||||
Arch = ""
|
||||
Artix = ""
|
||||
CentOS = ""
|
||||
Debian = ""
|
||||
Redhat = ""
|
||||
RedHatEnterprise = ""
|
||||
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bg:surface0 fg:text"
|
||||
style_root = "bg:surface0 fg:text"
|
||||
format = '[ $user ]($style)'
|
||||
|
||||
[directory]
|
||||
style = "fg:mantle bg:peach"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
|
||||
[directory.substitutions]
|
||||
"Documents" = " "
|
||||
"Downloads" = " "
|
||||
"Music" = " "
|
||||
"Pictures" = " "
|
||||
"Developer" = " "
|
||||
|
||||
[git_branch]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol $branch ](fg:base bg:green)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "bg:teal"
|
||||
format = '[[($all_status$ahead_behind )](fg:base bg:green)]($style)'
|
||||
|
||||
[nodejs]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[c]
|
||||
symbol = " "
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[rust]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[golang]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[php]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[kotlin]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[haskell]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[python]
|
||||
symbol = ""
|
||||
style = "bg:teal"
|
||||
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'
|
||||
|
||||
[docker_context]
|
||||
symbol = ""
|
||||
style = "bg:mantle"
|
||||
format = '[[ $symbol( $context) ](fg:#83a598 bg:color_bg3)]($style)'
|
||||
|
||||
[time]
|
||||
disabled = false
|
||||
time_format = "%R"
|
||||
style = "bg:peach"
|
||||
format = '[[ $time ](fg:mantle bg:purple)]($style)'
|
||||
|
||||
[line_break]
|
||||
disabled = false
|
||||
|
||||
[character]
|
||||
disabled = false
|
||||
success_symbol = '[❯](bold fg:green)'
|
||||
error_symbol = '[❯](bold fg:red)'
|
||||
vimcmd_symbol = '[❮](bold fg:creen)'
|
||||
vimcmd_replace_one_symbol = '[❮](bold fg:purple)'
|
||||
vimcmd_replace_symbol = '[❮](bold fg:purple)'
|
||||
vimcmd_visual_symbol = '[❮](bold fg:lavender)'
|
Loading…
Reference in New Issue
Block a user