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

rbenv doesn't respect POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false #1282

Closed romkatv closed 5 years ago

romkatv commented 5 years ago

This is on master.

To reproduce:

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

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

Actual behavior: rbenv segment shows 2.6.3.

bhilburn commented 5 years ago

Fixed by merge of #1284