Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let the each color of shellder be configurable #18

Open
simnalamburt opened this issue Nov 9, 2016 · 5 comments
Open

Let the each color of shellder be configurable #18

simnalamburt opened this issue Nov 9, 2016 · 5 comments

Comments

@simnalamburt
Copy link
Owner

I want the all colors which compose shellder to be fully configurable.

@jemag
Copy link

jemag commented Feb 24, 2019

Is there any chance of this still happening?

@simnalamburt
Copy link
Owner Author

@jemag Actually, if you're using ZSH, you can configure it

SHELLDER_CONTEXT_BG=${SHELLDER_CONTEXT_BG:-238}
SHELLDER_CONTEXT_FG=${SHELLDER_CONTEXT_FG:-250}
SHELLDER_DIRECTORY_BG=${SHELLDER_DIRECTORY_BG:-234}
SHELLDER_DIRECTORY_FG=${SHELLDER_DIRECTORY_FG:-231}
SHELLDER_GIT_CLEAN_BG=${SHELLDER_GIT_CLEAN_BG:-'green'}
SHELLDER_GIT_CLEAN_FG=${SHELLDER_GIT_CLEAN_FG:-'black'}
SHELLDER_GIT_DIRTY_BG=${SHELLDER_GIT_DIRTY_BG:-202}
SHELLDER_GIT_DIRTY_FG=${SHELLDER_GIT_DIRTY_FG:-'black'}
SHELLDER_VIRTUALENV_BG=${SHELLDER_VIRTUALENV_BG:-'blue'}
SHELLDER_VIRTUALENV_FG=${SHELLDER_VIRTUALENV_FG:-'black'}
SHELLDER_STATUS_BG=${SHELLDER_STATUS_BG:-'black'}
SHELLDER_STATUS_FG=${SHELLDER_STATUS_FG:-'default'}

If you're using fish, it's still hard-coded.

@jemag
Copy link

jemag commented Feb 24, 2019

thanks for the info. Unfortunately I am using fish. I can replace the colors within your theme but as soon as I update with fisher it will all be lost.

I guess I could just add your theme without fisher.

@simnalamburt
Copy link
Owner Author

It's been a while since I stopped using fish, but as far as I remember it is possible. Just try to overwrite ~/.config/fish/functions/fish_prompt.fish with https://github.com/simnalamburt/shellder/blob/master/fish_prompt.fish

Of course, the best practice is to refactor fish_prompt.fish to use environment variables. PR is always welcomed.

@jemag
Copy link

jemag commented Feb 24, 2019

Thanks for the info. I actually just started using fish yesterday and your plugin seemed like the best lightweight equivalent of what I had on zsh.

Maybe once I get more familiar with the whole fish customization I will look into the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants