Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 949 forks source link

Python virtualenv widget ignores colors #1351

Closed mavam closed 4 years ago

mavam commented 4 years ago

I'm having trouble with the configuration of the Python virtual env widget. Color settings seem to get ignored.

This issue describe the problem in detail: https://github.com/mavam/dotfiles/issues/8.

The actual bug seems to be that the color definitions don't work. Here's an example:

POWERLEVEL9K_PYTHON_ICON_BACKGROUND="clear"
POWERLEVEL9K_PYTHON_ICON_FOREGROUND="cyan"

Foreground and background are flipped, but flipping the two values of these variables don't have an effect.

This issue occurs with the latest version of powerlevel9k, zsh 5.7.1, and has been experienced on macOS.

romkatv commented 4 years ago

If you are using virtualenv prompt segment:

POWERLEVEL9K_VIRTUALENV_BACKGROUND="clear"
POWERLEVEL9K_VIRTUALENV_FOREGROUND="cyan"

For pyenv:

POWERLEVEL9K_PYENV_BACKGROUND="clear"
POWERLEVEL9K_PYENV_FOREGROUND="cyan"

For anaconda:

POWERLEVEL9K_ANACONDA_BACKGROUND="clear"
POWERLEVEL9K_ANACONDA_FOREGROUND="cyan"
mavam commented 4 years ago

Thanks, that works! I must have had outdated variable names.