mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Removing hard coded parens from rvm_prompt_info
I wanted to make use of rvm_prompt_info's error checking, but the existin funciton had hard coded parens wrapping the ruby version. This made for some odd behavior when using the system ruby (i.e. empty parens in the prompt), and was not customizable. This should resolve the issue. Updated risto theme to match.
This commit is contained in:
parent
b48d3e6a0c
commit
829f267657
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# get the name of the branch we are on
|
||||
function rvm_prompt_info() {
|
||||
ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
|
||||
echo "($ruby_version)"
|
||||
echo "$ruby_version"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# Requires the svn plugin
|
||||
#
|
||||
PROMPT='%{$fg[green]%}%n@%m:%{$fg[blue]%}%2~ $(svn_prompt_info)$(git_prompt_info)%{$reset_color%}%(!.#.%%) '
|
||||
RPROMPT='%{$fg_bold[red]%}$(rvm-prompt)%{$reset_color%}%'
|
||||
RPROMPT='%{$fg_bold[red]%}$(rvm_prompt_info)%{$reset_color%}%'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[red]%}›%{$reset_color%}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue