Using the starship prompt, how would I conditionally set the [directory]
color based on path prefix?
I was able to achieve it in classic bash prompt, and would like to replicate it with starship.
It would work a bit like the read_only
option of [directory]
works (adding a lock symbol next to the [directory]
).