My Starship Prompt

Date:

I’ve used the Starship prompt for a while now, and really like the extensive info it provides out of the box. However, I was missing the layout I had when I used the Tide prompt. So I did spend some time configuring and I’m fairly happy with the result.

image of prompt

Next step is to get it more Powerline‘y, but that will have to wait for another day.

The config is as follows:

palette = "catppuccin_macchiato"

format = """╭─ $username\
$hostname\
$kubernetes\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
${custom.jj}\
$hg_branch\
$hg_state\
$pijul_channel\
$docker_context\
$package\
$c\
$dart\
$fennel\
$gleam\
$golang\
$guix_shell\
$haskell\
$haxe\
$helm\
$java\
$kotlin\
$gradle\
$lua\
$nim\
$nodejs\
$perl\
$php\
$pulumi\
$python\
$rlang\
$ruby\
$rust\
$terraform\
$typst\
$vagrant\
$nats\
$direnv\
$env_var\
$mise\
$custom\
$sudo\
$jobs\
$battery\
$status\
$os\
$container\
$netns $fill $cmd_duration $time
╰─$character"""


[custom.jj]
command = "prompt"
format = "$output"
ignore_timeout = true
shell = ["starship-jj", "--ignore-working-copy", "starship"]
use_stdin = false
when = true

[fill]
symbol = '─'

[directory]
truncate_to_repo = false
truncation_symbol = "…/"

[direnv]
disabled=false
[time]
disabled=false
[kubernetes]
disabled=false
[sudo]
disabled=false
[mise]
disabled=false

[palettes.catppuccin_macchiato]
rosewater = "#f4dbd6"
flamingo = "#f0c6c6"
pink = "#f5bde6"
mauve = "#c6a0f6"
red = "#ed8796"
maroon = "#ee99a0"
peach = "#f5a97f"
yellow = "#eed49f"
green = "#a6da95"
teal = "#8bd5ca"
sky = "#91d7e3"
sapphire = "#7dc4e4"
blue = "#8aadf4"
lavender = "#b7bdf8"
text = "#cad3f5"
subtext1 = "#b8c0e0"
subtext0 = "#a5adcb"
overlay2 = "#939ab7"
overlay1 = "#8087a2"
overlay0 = "#6e738d"
surface2 = "#5b6078"
surface1 = "#494d64"
surface0 = "#363a4f"
base = "#24273a"
mantle = "#1e2030"
crust = "#181926"