chore: update starship config

This commit is contained in:
Jeremie Fraeys 2026-02-07 21:03:45 -05:00
parent 619581228c
commit e8d6d399af

View file

@ -1,14 +1,13 @@
# Get editor completions based on the config schema # ── General Settings ──
"$schema" = 'https://starship.rs/config-schema.json' "$schema" = 'https://starship.rs/config-schema.json'
add_newline = false add_newline = false
palette = "solarized_light" palette = "monokai_pro"
command_timeout = 5000 command_timeout = 5000
# Customize your prompt to ensure everything is on a single line # ── Prompt Layout ──
format = """\ format = """\
${custom.context}\ ${custom.context}\
$character\ $status\
$directory\ $directory\
$direnv\ $direnv\
$docker_context\ $docker_context\
@ -19,8 +18,8 @@ $rust\
$c\ $c\
$python\ $python\
$package\ $package\
$line_break\
$jobs\ $jobs\
$character\
""" """
right_format = """\ right_format = """\
@ -30,116 +29,111 @@ $git_status\
$git_metrics\ $git_metrics\
""" """
# Git branch configuration # ── Exit Status (last command) ──
[status]
format = "([$status]($style)) "
style = "bold red"
disabled = false
map_symbol = true
success_symbol = "" # hide when exit code = 0
# ── Character ──
[character]
success_symbol = "[](bold green)"
error_symbol = "[✗](bold red)"
vimcmd_symbol = "[V](bold green)"
# ── Directory ──
[directory]
format = "[$path ]($style)[$read_only]($read_only_style)"
style = "bright-cyan"
truncation_length = 3
truncation_symbol = "…/"
use_logical_path = true
fish_style_pwd_dir_length = 1
[directory.substitutions]
"~/.dotfiles" = "dot"
"~/Documents/dev" = "dev"
"~/.config" = "config"
"~/.local" = "local"
"~/Library/CloudStorage/GoogleDrive-*" = "GDrive"
# ── Git ──
[git_branch] [git_branch]
format = "[$branch(:$remote_branch)]($style) " format = "[$branch(:$remote_branch)]($style) "
style = "bold red" style = "bold red"
# Git status configuration
[git_status] [git_status]
format = '[$all_status]($style) ' format = '[$all_status]($style) '
style = "bold green" style = "bold green"
# Git metric configuration
[git_metrics] [git_metrics]
format = '([$added]($added_style))([$deleted]($deleted_style)) ' format = '([$added]($added_style))([$deleted]($deleted_style)) '
added_style = "green" added_style = "green"
deleted_style = "red" deleted_style = "red"
disabled = true disabled = true
# Configure the overall look of the prompt # ── Jobs ──
[character]
success_symbol = "[](bold green)"
error_symbol = "[✗](bold red)"
vimcmd_symbol = "[V](bold green)"
# Directory
[directory]
format = "[$path ]($style)[$read_only]($read_only_style)"
style = "bright-cyan"
truncation_length = 3
truncation_symbol = "…/"
use_logical_path = true # speeds up when working with symlinks (optional)
fish_style_pwd_dir_length = 1 # makes truncation lighter and faster
[line_break]
disabled = true
[jobs] [jobs]
format = '[$symbol$count]($style) ' format = '[$symbol$count]($style) '
number_threshold = 4 number_threshold = 4
# ── Command Duration ──
[cmd_duration] [cmd_duration]
format = "[$duration ]($style) " format = "[$duration ]($style) "
style = "yellow" style = "yellow"
# ── Direnv ──
[direnv] [direnv]
format = '[$symbol$loaded/$allowed]($style) ' format = '[$symbol$loaded/$allowed]($style) '
disabled = false disabled = false
# Container # ── Docker / Container ──
[container] [container]
format = '[$symbol \[$name\]]($style) ' format = '[$symbol \[$name\]]($style) '
style = "orange" style = "orange"
# Docker
[docker_context] [docker_context]
format = '[$symbol$container]($style) ' format = '[$symbol$container]($style) '
style = "blue" style = "blue"
# C # ── Language Modules ──
[c] [c]
format = "[$symbol($version(-$name))]($style) " format = "[$symbol($version(-$name))]($style) "
style = "bold green" style = "bold green"
detect_files = ["Makefile"] detect_files = ["Makefile"]
# Conda
[conda] [conda]
format = "[$environment]($style) " format = "[$environment]($style) "
style = "dimmed green" style = "dimmed green"
disabled = false disabled = false
# Python
[python] [python]
format = "[${symbol}(${version})(\\($virtualenv\\))]($style) " format = "[${symbol}(${version})(\\($virtualenv\\))]($style) "
# pyenv_version_name = true
style = "blue" style = "blue"
detect_files = ["Pipfile", "pyproject.toml", "poetry.lock", "requirements.txt"] detect_files = ["Pipfile", "pyproject.toml", "poetry.lock", "requirements.txt"]
# Golang
[golang] [golang]
format = "[$symbol($version)($mod_version)]($style) " format = "[$symbol($version)($mod_version)]($style) "
style = "blue" style = "blue"
# Rust
[rust] [rust]
format = "[$symbol$version]($style) " format = "[$symbol$version]($style) "
style = "purple" style = "purple"
# Lua
[lua] [lua]
format = "[$symbol$version]($style) " format = "[$symbol$version]($style) "
style = "purple" style = "purple"
# Package
[package] [package]
format = "[$symbol$version]($style) " format = "[$symbol$version]($style) "
style = "208 bold" style = "208 bold"
# Directory substitutions # ── Custom Context (WSL / Codespaces / Remote) ──
[directory.substitutions]
"~/Documents/dev" = "dev"
"~/.config" = "config"
"~/.dotfiles" = "dot"
"~/.local" = "local"
"~/Library/CloudStorage/GoogleDrive-*" = "GDrive"
# ── Context-Aware Session Tag ──
[custom.context] [custom.context]
command = ''' command = '''
case "$(uname -r)" in [ -n "$WSL_DISTRO_NAME" ] && echo "WSL"
*microsoft*) echo "WSL" ;;
esac
[ -n "$CODESPACES" ] && echo "Codespaces" [ -n "$CODESPACES" ] && echo "Codespaces"
[ -n "$SSH_CONNECTION" ] && echo "Remote" [ -n "$SSH_CONNECTION" ] && echo "Remote"
''' '''
@ -148,7 +142,35 @@ shell = ['sh']
style = 'bold yellow' style = 'bold yellow'
format = '[$output]($style)' format = '[$output]($style)'
# Monokai Pro palette # ── Color Palettes ──
[palettes.solarized_light]
rosewater = "#fdf6e3"
flamingo = "#d33682"
pink = "#d33682"
mauve = "#6c71c4"
red = "#dc322f"
maroon = "#cb4b16"
peach = "#cb4b16"
yellow = "#b58900"
green = "#859900"
teal = "#2aa198"
sky = "#268bd2"
sapphire = "#268bd2"
blue = "#268bd2"
lavender = "#6c71c4"
text = "#002b36"
subtext1 = "#073642"
subtext0 = "#586e75"
overlay2 = "#657b83"
overlay1 = "#839496"
overlay0 = "#93a1a1"
surface2 = "#eee8d5"
surface1 = "#fdf6e3"
surface0 = "#fdf6e3"
base = "#fdf6e3"
mantle = "#fdf6e3"
crust = "#fdf6e3"
[palettes.monokai_pro] [palettes.monokai_pro]
rosewater = "#f1ebeb" rosewater = "#f1ebeb"
flamingo = "#dc2566" flamingo = "#dc2566"
@ -176,32 +198,3 @@ surface0 = "#272822"
base = "#272822" base = "#272822"
mantle = "#272822" mantle = "#272822"
crust = "#272822" crust = "#272822"
# Solarized light palette
[palettes.solarized_light]
rosewater = "#fdf6e3"
flamingo = "#dc322f"
pink = "#dc322f"
mauve = "#6c71c4"
red = "#dc322f"
maroon = "#b58900"
peach = "#b58900"
yellow = "#b58900"
green = "#859900"
teal = "#2aa198"
sky = "#268bd2"
sapphire = "#268bd2"
blue = "#268bd2"
lavender = "#6c71c4"
text = "#586e75"
subtext1 = "#657b83"
subtext0 = "#93a1a1"
overlay2 = "#93a1a1"
overlay1 = "#657b83"
overlay0 = "#002b36"
surface2 = "#fdf6e3"
surface1 = "#fdf6e3"
surface0 = "#fdf6e3"
base = "#fdf6e3"
mantle = "#fdf6e3"
crust = "#fdf6e3"