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 948 forks source link

pyenv doesn't respect POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false #1280

Open romkatv opened 5 years ago

romkatv commented 5 years ago

This is on master.

To reproduce:

  1. Install pyenv.
  2. Use master branch of Powerlevel9k with pyenv as one of the prompt segments.
  3. Set POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false (this is also the default).
  4. Type these commands:
pyenv global system
pyenv shell system

Expected behavior: pyenv segment not shown because current pyenv version is equal to the global pyenv version (both are system).

Actual behavior: pyenv segment shows system.

Syphdias commented 5 years ago

Thanks for reporting it. Found another bug trying to reproduce it. Should be fixed with #1283