Skip to content

Instantly share code, notes, and snippets.

@morningreis
Created August 23, 2025 01:15
Show Gist options
  • Save morningreis/53c1da1ccc3d80b29020c7347a7353c7 to your computer and use it in GitHub Desktop.
Save morningreis/53c1da1ccc3d80b29020c7347a7353c7 to your computer and use it in GitHub Desktop.
Starship Config
# SOURCES
# https://starship.rs/config
# https://starship.rs/presets/nerd-font.html#configuration
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# DEBUG via:
# starship explain
# STARSHIP_LOG=trace
# Timeout for commands executed by starship (ms)
command_timeout = 1000
# newline between commands
add_newline = true
# ! opt-in for individual modules (e.g., aws, docker, gcloud, nodejs, python)
# standalone format to get os glyph on ps1 line,
# prompt character below
#    
#⟡❖󱐋
palette = 'yuzu'
format = """\
[](fg:color1)\
$os(bg:color1 fg:color2)\
[](fg:color1 bg:color2)\
$sudo$username$hostname\
$memory_usage\
[](fg:color2 bg:color1)$git_branch$git_status$git_commit(fg:color2 bg:color1)\
[](fg:color1)$fill[$python$time](fg:color1)
$container$jobs\
$directory$character\
"""
[fill]
symbol = ' '
# Replace the "❯"
[character]
success_symbol = '[ ❯ ](fg:color4)'
error_symbol = '[ ❯ ](fg:#FF5555)'
format ='$symbol'
[time] #󱑍
disabled = false
time_format = "%R" # Hour:Minute Format
#style = "fg:color1"
format = '$time'
[username]
disabled = false
style_user = "fg:color1 bg:color2"
style_root = "fg:color1 bg:color2"
format = '[ $user]($style)'
show_always = true
[hostname]
disabled = false
ssh_only = true
ssh_symbol = "  "
format = '[$ssh_symbol$hostname](fg:color1 bg:color2)'
# truncation length works backwards (i.e., cwd > parent > parent ...)
[directory]
truncation_length = 10
truncation_symbol = "…/"
truncate_to_repo = true
format = '[$read_only]($read_only_style)[ $path]($style)'
read_only = ' '
read_only_style = "fg:color3"
style = "fg:color3"
[git_branch]
#truncation_length = 4
truncation_symbol = ''
#ignore_branches = ['master', 'main']
format = '[ $symbol$branch(:$remote_branch) ]($style)'
symbol = ' '
style = "fg:color3 bg:color1"
[git_status]
ahead = '⇡${count} '
diverged = '⇕⇡${ahead_count}⇣${behind_count} '
behind = '⇣${count} '
staged = '\[++$count\]'
modified = ' '
deleted = ' '
untracked = '\[? $count\]'
format = '[$all_status]($style)'
style = "fg:color2 bg:color1"
[git_metrics]
disabled = false
format = '([+$added]($added_style))[]($added_style)'
added_style = "fg:color2 bg:color1"
deleted_style = "fg:bright-red bg:235"
[git_commit]
commit_hash_length = 4
[cmd_duration]
disabled = false
min_time = 0
show_milliseconds = true
format = ' [$duration]($style)'
style = "italic fg:color1"
[memory_usage]
disabled = true
threshold = -1
symbol = '󰍛'
format = '[$symbol ${ram_pct}]($style)' #ram, ram_pct, swap, swap_pct
style = "fg:color1 bg:color2"
[container]
disabled = false
symbol = '󱃲'
format = '[$symbol]($style) '
style = "color3"
[jobs]
disabled = false
symbol_threshold = 1
symbol = '✦'
style = "color3"
format = '[$symbol]($style) '
[localip]
disabled = true
ssh_only = false
format = '@[$localipv4]($style) '
style = "color3"
[sudo]
style = 'fg:color4 bg:color2'
symbol = ' 󱐋'
format = '[$symbol]($style)'
disabled = false
[env_var.SHELL]
variable = "SHELL"
default = "unknown shell"
disabled = true
# Show python version starting with venv
[python]
python_binary = ["./venv/bin/python", "python3", "python", "python2"]
#style = "fg:color1"
symbol = ' '
format = 'via ${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )'
[rust]
disabled = false
detect_extensions = ['rs']
detect_files = ['Cargo.toml']
format = 'via [⚙️ $version](red bold)'
[c]
disabled = false
detect_extensions = ['c', 'h']
format = 'via [$name $version]($style)'
[aws]
disabled = true
[docker_context]
disabled = true
[gcloud]
disabled = true
[nodejs]
disabled = true
[os]
format = '[$symbol](bg:color1 fg:color2)'
disabled = false
[os.symbols]
Alpaquita = " "
Alpine = " "
Amazon = " "
Android = " "
Arch = " "
Artix = " "
CentOS = " "
Debian = " "
DragonFly = " "
Emscripten = " "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = "󰛓 "
Gentoo = " "
HardenedBSD = "󰞌 "
Illumos = "󰈸 "
Linux = " "
Mabox = " "
Macos = " "
Manjaro = " "
Mariner = " "
MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
OpenBSD = "󰈺 "
openSUSE = " "
OracleLinux = "󰌷 "
Pop = " "
Raspbian = " "
Redhat = " "
RedHatEnterprise = " "
Redox = "󰀘 "
Solus = "󰠳 "
SUSE = " "
Ubuntu = " "
Unknown = " "
Windows = "󰍲 "
[palettes.mint]
color1 = "#c4ced4"
color2 = "#25271f"
color3 = "#ffffff"
color4 = "#9cffc7"
[palettes.keylime]
color1 = "#c3d4c6"
color2 = "#261f1e"
color3 = "#ffffff"
color4 = "#e8ff9c"
[palettes.lilac]
color1 = "#d4c3cd"
color2 = "#1e2426"
color3 = "#ffffff"
color4 = "#ca9cff"
[palettes.yuzu]
color1 = "#c6d4c2"
color2 = "#261e21"
color3 = "#ffffff"
color4 = "#ffee9c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment