From 559bbadba555e9b81501ddf0ebc1c3211a845568 Mon Sep 17 00:00:00 2001 From: Andrea Date: Mon, 25 Jul 2011 15:17:32 +0200 Subject: [PATCH 1/2] prepend /usr/local/rvm to rvm prompt script --- lib/rvm.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rvm.zsh b/lib/rvm.zsh index 597be1b33..e45bb8e90 100644 --- a/lib/rvm.zsh +++ b/lib/rvm.zsh @@ -1,6 +1,6 @@ # get the name of the branch we are on function rvm_prompt_info() { - ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return + ruby_version=$($rvm_path/bin/rvm-prompt 2> /dev/null) || return echo "($ruby_version)" } From f3c5c3889f4410f7cd8457bda987543070b03b54 Mon Sep 17 00:00:00 2001 From: Andrea D'Amico Date: Fri, 28 Dec 2012 14:54:26 +0100 Subject: [PATCH 2/2] using rbenv for prompt --- themes/aussiegeek.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/aussiegeek.zsh-theme b/themes/aussiegeek.zsh-theme index c2c7f65b9..bddc9c01c 100644 --- a/themes/aussiegeek.zsh-theme +++ b/themes/aussiegeek.zsh-theme @@ -1,5 +1,5 @@ -PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue] ]$reset_color +PROMPT='$fg_bold[blue][ $fg[red]%t $fg_bold[blue]] $fg_bold[blue] [ $fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rbenv_prompt_info)$fg_bold[blue] ]$reset_color $ ' # git theming ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green]("