diff --git a/docs/.vuepress/public/presets/img/jetpack.png b/docs/.vuepress/public/presets/img/jetpack.png new file mode 100644 index 00000000..f5c61829 Binary files /dev/null and b/docs/.vuepress/public/presets/img/jetpack.png differ diff --git a/docs/.vuepress/public/presets/toml/jetpack.toml b/docs/.vuepress/public/presets/toml/jetpack.toml new file mode 100644 index 00000000..28d3ea94 --- /dev/null +++ b/docs/.vuepress/public/presets/toml/jetpack.toml @@ -0,0 +1,284 @@ +format = """ +$cmd_duration\ +$hostname\ +$localip\ +$shlvl\ +$shell\ +$env_var\ +$username\ +$sudo\ +$character\ +""" + +right_format = """ +$singularity\ +$kubernetes\ +$directory\ +$vcsh\ +$fossil_branch\ +$git_branch\ +$git_commit\ +$git_state\ +$git_metrics\ +$git_status\ +$hg_branch\ +$pijul_channel\ +$docker_context\ +$package\ +$c\ +$cmake\ +$cobol\ +$daml\ +$dart\ +$deno\ +$dotnet\ +$elixir\ +$elm\ +$erlang\ +$fennel\ +$golang\ +$guix_shell\ +$haskell\ +$haxe\ +$helm\ +$java\ +$julia\ +$kotlin\ +$gradle\ +$lua\ +$nim\ +$nodejs\ +$ocaml\ +$opa\ +$perl\ +$php\ +$pulumi\ +$purescript\ +$python\ +$raku\ +$rlang\ +$red\ +$ruby\ +$rust\ +$scala\ +$solidity\ +$swift\ +$terraform\ +$vlang\ +$vagrant\ +$zig\ +$buf\ +$nix_shell\ +$conda\ +$meson\ +$spack\ +$memory_usage\ +$aws\ +$gcloud\ +$openstack\ +$azure\ +$crystal\ +$custom\ +$jobs\ +$status\ +$os\ +$container\ +$battery\ +$time\ +""" + +add_newline = true + +[character] +format = "$symbol " +success_symbol = "[◉](bold italic bright-yellow)" +error_symbol = "[⊘](italic purple)" + +[env_var.VIMSHELL] # vim subshell +format = "[$env_value]($style)" +style = 'green italic' + +[sudo] +format = "[$symbol]($style)" +style = "italic bright-purple" +symbol = "◇┈" +disabled = false + +[username] +style_user = "yellow bold" +style_root = "purple bold italic" +format = "[$user]($style) ▻ " +disabled = false + +[directory] +home_symbol = "⌂" +truncation_length = 2 +truncation_symbol = "▦ " +read_only = " ■" +style = "italic blue" +format = ' [$path]($style)[$read_only]($read_only_style)' + +[cmd_duration] +min_time = 500 +format = "[$duration ](italic bright-yellow)" + +[jobs] +format = "[ $symbol$number]($style)" +style = "white" +symbol = "[▶ ](blue italic)" + +[localip] +ssh_only = true +format = " ◯[$localipv4](bold magenta)" +disabled = false + +[time] +disabled = false +format = "[ $time]($style)" +time_format = "%R" +utc_time_offset = "local" +style = "dimmed white" + +[battery] +format = "[ $percentage $symbol]($style)" +full_symbol = "[█](italic green)" +charging_symbol = "[↑](italic green)" +discharging_symbol = "[↓](italic)" +unknown_symbol = "[░](italic)" +empty_symbol = "[▃](italic red)" + +[[battery.display]] +threshold = 40 +style = "dimmed yellow" + +[[battery.display]] +threshold = 70 +style = "dimmed white" + +[git_branch] +format = "[ $symbol $branch(:$remote_branch)]($style)" +symbol = "[◬](bold bright-blue)" +style = "bold italic bright-blue" + +[git_status] +style = "italic bright-blue" +format = """([⎪$ahead_behind$staged$modified$untracked$renamed$deleted$conflicted$stashed⎥]($style))""" +conflicted = "[◪◦](italic bright-magenta)" +ahead = "[▲│[${count}](bold white)│](italic green)" +behind = "[▽│[${count}](bold white)│](italic red)" +diverged = "[◇ ▲┤[${ahead_count}](regular white)│▽┤[${behind_count}](regular white)│](italic bright-magenta)" +untracked = "[◌◦](italic bright-yellow)" +stashed = "[◦◫◦](italic white)" +modified = "[●◦](italic yellow)" +staged = "[■┤[$count](bold white)│](italic bright-cyan)" +renamed = "[◎◦](italic bright-blue)" +deleted = "[✕](italic red)" + +[deno] +format = " deno [∫ $version](blue italic)" +version_format = "${major}.${minor}" + +[lua] +format = " lua [${symbol}${version}]($style)" +symbol = "⨀ " +style = "italic bright-yellow" + +[nodejs] +format = " node [◫ ($version)](italic bright-green)" +detect_files = ["package-lock.json", "yarn.lock"] +version_format = "${major}.${minor}" + +[python] +format = " py [${symbol}${version}]($style)" +symbol = "[⌉](italic bright-blue)⌊ " +version_format = "${major}.${minor}" +style = "italic bright-yellow" + +[ruby] +format = " rb [${symbol}${version}]($style)" +symbol = "◆ " +version_format = "${major}.${minor}" +style = "italic red" + +[rust] +format = " rs [$symbol$version]($style)" +symbol = "⊃ " +version_format = "${major}.${minor}" +style = "italic red" + +[package] +format = " pkg [$symbol$version]($style)" +version_format = "${major}.${minor}" +symbol = "◫ " +style = "bright-yellow italic" + +[swift] +format = " sw [${symbol}${version}]($style)" +symbol = "◁ " +style = "italic bright-red" +version_format = "${major}.${minor}" + +[aws] +format = " aws [$symbol $profile $region]($style)" +style = "italic blue" +symbol = "▲ " + +[buf] +symbol = "■ " +format = " buf [$symbol $version $buf_version]($style)" + +[c] +symbol = "∁ " +format = " c [$symbol($version(-$name))]($style)" + +[conda] +symbol = "◯ " +format = " conda [$symbol$environment]($style)" + +[dart] +symbol = "◁◅ " +format = " dart [$symbol($version )]($style)" + +[docker_context] +symbol = "◧ " +format = " docker [$symbol$context]($style)" + +[elixir] +symbol = "△ " +format = " exs [$symbol $version OTP $otp_version ]($style)" + +[elm] +symbol = "◩ " +format = " elm [$symbol($version )]($style)" + +[golang] +symbol = "∩ " +format = " go [$symbol($version )]($style)" + +[haskell] +symbol = "❯λ " +format = " hs [$symbol($version )]($style)" + +[java] +symbol = "∪ " +format = " java [${symbol}(${version} )]($style)" + +[julia] +symbol = "◎ " +format = " jl [$symbol($version )]($style)" + +[memory_usage] +symbol = "▪▫▪ " +format = " mem [${ram}( ${swap})]($style)" + +[nim] +symbol = "▴▲▴ " +format = " nim [$symbol($version )]($style)" + +[nix_shell] +symbol = "⊛ " +format = " nix [$symbol$state $name]($style)" + +[spack] +symbol = "◇ " +format = " spack [$symbol$environment]($style)" diff --git a/docs/presets/jetpack.md b/docs/presets/jetpack.md new file mode 100644 index 00000000..0f52a9a9 --- /dev/null +++ b/docs/presets/jetpack.md @@ -0,0 +1,24 @@ +[Return to Presets](./README.md#jetpack) + +# Jetpack Preset + +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. + +> Jetpack uses the terminal's color theme. + +![Screenshot of Jetpack preset](/presets/img/jetpack.png) + +### Prerequisite + +- Requires a shell with [`right-prompt`](https://starship.rs/advanced-config/#enable-right-prompt) support. +- [Jetbrains Mono](https://www.jetbrains.com/lp/mono/) is recommended. + +### Configuration + +```sh +starship preset jetpack -o ~/.config/starship.toml +``` + +[Click to download TOML](/presets/toml/jetpack.toml) + +<<< @/.vuepress/public/presets/toml/jetpack.toml