๐ Prompt โ full referenceโ
A 3-line cobalt + magenta starship prompt with right-aligned battery + clock. Every segment is contextual: it only shows when it has something useful to say.


Anatomyโ
# Line 1 (left format) + right_format
โญโ ~/Code/dotfiles on main !8 ?15 ๐ณ [bat] [time]
โ โ โ โ โ โ
โ โ โ โ โ โโ time
โ โ โ โ โโ battery
โ โ โ โโ colima (๐ณ if running)
โ โ โโ git_branch + status
โ โโ "on" literal
โโ directory
# Line 2
โ โ docker-desktop (default) 3.12.1 (venv) took 4s
โ โ โ โ
โ โ โ โโ cmd_duration
โ โ โโ python
โ โโ kubernetes
# Line 3
โฐโโฏ
โโ character
Segment reference & togglesโ
โ Active segmentsโ
| Segment | Trigger | Visual | Disable |
|---|---|---|---|
directory |
always | cobalt path, truncated to 4 components | remove $directory from format |
git_branch |
inside any git repo | magenta <branch> |
[git_branch] disabled = true |
git_status |
dirty repo | !N modified, +N staged, ?N untracked, โกN/โฃN ahead/behind |
[git_status] disabled = true |
kubernetes |
dir contains k8s/ or Chart.yaml |
cyan โ <ctx> (<ns>) |
[kubernetes] disabled = true |
azure |
logged into az cli | bold cobalt ๓ฐ
<subscription> |
[azure] disabled = true |
python |
python project markers | green <ver> (<venv>) |
[python] disabled = true |
cmd_duration |
last cmd > 2s | amber took 4s |
[cmd_duration] min_time = 99999999 |
character |
always | cobalt โฏ / magenta โ โฏ / green โฎ (vim) |
always required |
battery |
macOS / laptops | colour-coded percent | [battery] disabled = true |
time |
always | grey HH:MM |
[time] disabled = true |
custom.colima |
colima VM running | green ๐ณ |
[custom.colima] disabled = true |
๐ก Pre-configured but dormant (flip disabled and add to format)โ
nodejs ยท golang ยท terraform ยท username ยท hostname
๐ด Off-by-defaultโ
aws ยท gcloud ยท docker_context ยท package ยท jobs ยท memory_usage ยท os ยท shell ยท 50+ language modules
Full list: https://starship.rs/config/
Adding / removing segmentsโ
The format field in zsh/starship.toml controls what renders and where:
format = """
[โญโ](grey) $directory$git_branch$git_status${custom.colima}
[โ ](grey)$kubernetes$azure$python$cmd_duration
[โฐโ](grey)$character"""
right_format = """$battery$time"""
Add a segment by inserting $<name> (or ${custom.<name>} for custom modules)
in the desired position. Remove by deleting it. Changes take effect on next shell.
Recipesโ
Hide the time / battery
Make it a one-line prompt
Always show full directory (no truncation)
Show k8s context everywhere (not just in k8s dirs)
Add AWS profile / region
[aws]
disabled = false
format = "[ $symbol($profile)(@$region)]($style) "
symbol = " "
style = "bold amber"
[โ ](grey)$kubernetes$azure$aws$python$cmd_duration in format.
Make slow commands warn loudly
Disable starship entirely (back to oh-my-zsh)
Comment out eval "$(starship init zsh)" in ~/.zshrc.