Skip to content

Instantly share code, notes, and snippets.

@metawops
Created December 27, 2025 18:35
Show Gist options
  • Select an option

  • Save metawops/9b374604c53cb798314c1259edf13f27 to your computer and use it in GitHub Desktop.

Select an option

Save metawops/9b374604c53cb798314c1259edf13f27 to your computer and use it in GitHub Desktop.
starship prompt definition for my Arch Linus based installation of CachyOS (no glyph for CachyOS, yet)
# Starship Konfiguration - Catppuccin Mocha (P10k Style)
# Stabilisiert für Fedora 43 KDE + Ghostty -> Jetzt CachyOS
# Mit Right-Aligned Cmd Duration
add_newline = true
palette = "catppuccin_mocha"
# Die Hauptstruktur des Prompts
# $fill schiebt alles Folgende nach rechts
format = """
[](surface0)\
$os\
$username\
[](bg:peach fg:surface0)\
$directory\
[](fg:peach bg:green)\
$git_branch\
$git_status\
[](fg:green bg:surface1)\
$c\
$rust\
$nodejs\
$python\
[](fg:surface1 bg:surface0)\
$time\
$battery\
[](fg:surface0)\
$fill\
$cmd_duration\
\n$character"""
# --- MODULE SETTINGS ---
[fill]
symbol = " "
[cmd_duration]
min_time = 0 # Zeigt Zeit immer an. Setze auf 2000 für "nur wenn länger als 2s"
format = "[⏱️ $duration]($style)"
style = "fg:text bold"
[os]
disabled = false
style = "bg:surface0 fg:text"
format = "[$symbol ]($style)"
[os.symbols]
Arch = " "
CachyOS = " "
Linux = " "
Fedora = " "
Unknown = " "
[username]
show_always = true
style_user = "bg:surface0 fg:text"
style_root = "bg:surface0 fg:red"
format = "[$user]($style)"
[directory]
style = "bg:peach fg:surface0"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"
[git_branch]
symbol = " "
style = "bg:green fg:surface0"
format = "[ $symbol$branch ]($style)"
[git_status]
style = "bg:green fg:surface0"
format = "[$all_status$ahead_behind]($style)"
stashed = " 📦"
modified = "!"
untracked = "?"
staged = "+"
conflicted = "="
ahead = "⇡"
behind = "⇣"
[battery]
full_symbol = "󰁹 "
charging_symbol = "󰂄 "
discharging_symbol = "󰂃 "
format = "[ $symbol$percentage ]($style)"
[[battery.display]]
threshold = 15
style = "bg:surface0 fg:red"
[[battery.display]]
threshold = 30
style = "bg:surface0 fg:yellow"
[[battery.display]]
threshold = 100
style = "bg:surface0 fg:text"
[time]
disabled = false
time_format = "%R"
style = "bg:surface0 fg:text"
format = "[  $time ]($style)"
[c]
symbol = " "
style = "bg:surface1 fg:text"
format = "[ $symbol($version) ]($style)"
[rust]
symbol = " "
style = "bg:surface1 fg:text"
format = "[ $symbol($version) ]($style)"
[nodejs]
symbol = " "
style = "bg:surface1 fg:text"
format = "[ $symbol($version) ]($style)"
[python]
symbol = " "
style = "bg:surface1 fg:text"
format = "[ $symbol($version) ]($style)"
[character]
success_symbol = "[╰─󰄛](bold mauve) "
error_symbol = "[╰─󰄛](bold red) "
[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
mauve = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
surface1 = "#45475a"
surface0 = "#313244"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment