Skip to content

More reusable rvm_prompt_info in lib/rvm.zsh #526

Closed
wants to merge 1 commit into from

2 participants

@stevenharman

By removing the wrapping parens this function can be reused and the output more easily customized by the consumer.

For example, in my prompt, want to combine my RVM + Git info like:

machine-name: ~/path/here [ruby-1.9.2-p290@my_project | master]

However, the existing wrapping parenthesis force me to either roll my own, or strip the parens before outputting the info to the prompt.

@stevenharman

Looking around, I see that Pull Request #352 adds per-theme customization for the rvm_prompt_info, which is better than my hack. If that pull request (or at least that functionality) makes it in, I'll close this as a dup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.