mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
this commit include my theme (themes/luca.zsh-theme) and a little update of (lib/rvm.zsh)
I added ZSH_THEME_RVM_PROMPT_{PREFIX|SUFFIX} analogous to ZSH_THEME_GIT_PROMPT_{PREFIX|SUFFIX}
7 lines
214 B
Bash
7 lines
214 B
Bash
# get the name of the branch we are on
|
|
function rvm_prompt_info() {
|
|
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
|
echo "$ZSH_THEME_RVM_PROMPT_PREFIX$ruby_version$ZSH_THEME_RVM_PROMPT_SUFFIX"
|
|
}
|
|
|
|
|