Spaceship-prompt: Color slashes in directory

Created on 15 Nov 2018  路  6Comments  路  Source: denysdovhan/spaceship-prompt

Describe the solution you'd like

I would like the slashes within the dir display to have configurable color. The default color should be the dir color (ie don't color the slashes differently).

This post seems relevant.

Describe alternatives you've considered

I don't see any obvious alternatives.

Documentation, adoption

They'd just configure a variable called SPACESHIP_DIR_SLASH_COLOR.

wontfix

Most helpful comment

Not sure I agree that being in a nested subdirectory is an extremely rare edge case, but I respect your decision to keep things simple.

All 6 comments

To clarify, do you expect spaceship to handle logic such as "red color when root, blue color when in git repo", or you just want a configurable color and you are planning to write your own scripts to change the color in certain situations?

Just want to be able to specify a color that will always be used for slashes within the dir prompt, regardless of root / git repo / whatever. Rereading my original comment, I think that the git / root comment was confusing, so I updated to remove. Does this make sense?

So the directory would look something like this:
image

This looks like an extremely rare edge-case.

I don't think we are going to implement this, because it would increase the complexity of dir section without any explicit benefits except stylings.

@pokey if you need something like you described, we encourage you to write your own custom dir section.

Our API docs are available here: https://github.com/denysdovhan/spaceship-prompt/blob/master/docs/API.md
The original code of dir section is here: https://github.com/denysdovhan/spaceship-prompt/blob/master/sections/dir.zsh

Not sure I agree that being in a nested subdirectory is an extremely rare edge case, but I respect your decision to keep things simple.

@pokey thanks for understanding 馃檹

Was this page helpful?
0 / 5 - 0 ratings

Related issues

salmanulfarzy picture salmanulfarzy  路  3Comments

xhaythemx picture xhaythemx  路  3Comments

martincartledge picture martincartledge  路  4Comments

janjur picture janjur  路  3Comments

conradwt picture conradwt  路  3Comments