Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Rbenv prompt option always displays #777 #795

Merged
merged 2 commits into from Apr 14, 2018
Merged

Rbenv prompt option always displays #777 #795

merged 2 commits into from Apr 14, 2018

Conversation

ghost
Copy link

@ghost ghost commented Apr 3, 2018

  • Add environment variable POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW to set the rbenv prompt segment to show if the local Ruby version is the same as the global Ruby version.
  • This also includes a small bugfix where $(which rbenv) would return the actual function, so $(command which rbenv) returns the result of calling the function.
  • Update Readme with description for setting POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW

@ghost ghost mentioned this pull request Apr 3, 2018
@bhilburn
Copy link
Member

Well done, @RyanDav! Thanks so much for implementing this enhancement, documenting it, and submitting the PR! I'm happy to have this upstreamed. Congrats on your first PR, and welcome to P9k! =)

@bhilburn bhilburn merged commit 13b0e38 into Powerlevel9k:master Apr 14, 2018
@ghost
Copy link
Author

ghost commented Apr 14, 2018

Woo! Really pleased to be involved with Powerlevel9k, and having my first PR merged :) It's great to have done a small service for rubyists and P9k users

@ghost ghost deleted the rbenv-prompt-option-always-displays-#777 branch April 14, 2018 10:05
dritter added a commit to dritter/powerlevel9k that referenced this pull request Jun 6, 2018
Conflicts were:
- README.md: Two commits targeted the brightness table. Powerlevel9k#781 from
14. April 2018 on master and Powerlevel9k#684 from 05. December 2017 on next.
- powerlevel9k.zsh-theme: Two commits targeted the rbenv segment. Both
achieve the same thing: To show the Ruby version number always. Powerlevel9k#795 on
next from 14. April 2018 and Powerlevel9k#610 on master from 28. September 2017. I
went with Powerlevel9k#795 here as this - although being newer - is the one on
master, and that should be more stable.
dritter added a commit to dritter/powerlevel9k that referenced this pull request Jun 6, 2018
Conflicts were:
- README.md: Two commits targeted the brightness table. Powerlevel9k#781 from
14. April 2018 on master and Powerlevel9k#684 from 05. December 2017 on next.
- powerlevel9k.zsh-theme: Two commits targeted the rbenv segment. Both
achieve the same thing: To show the Ruby version number always. Powerlevel9k#795 on
next from 14. April 2018 and Powerlevel9k#610 on master from 28. September 2017. I
went with Powerlevel9k#795 here as this - although being newer - is the one on
master, and that should be more stable.
@dritter dritter mentioned this pull request Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants