summaryrefslogtreecommitdiff
path: root/themes/gallois.zsh-theme
diff options
context:
space:
mode:
authorfred-o <fredrik.appelberg@gmail.com>2012-02-20 09:41:45 +0100
committerfred-o <fredrik.appelberg@gmail.com>2012-02-20 09:41:45 +0100
commit7e5dda7f434b847e4a8899beb736a7251da3d390 (patch)
tree45eccafa617e7e3ec4e7e97ff7569b157786dd6c /themes/gallois.zsh-theme
parentf5041025844a2509f42e0bb19cb8d5418340e10c (diff)
parent362927003bcd8052e294dcbdf14f061ef4f2e173 (diff)
downloadzsh-7e5dda7f434b847e4a8899beb736a7251da3d390.tar.gz
zsh-7e5dda7f434b847e4a8899beb736a7251da3d390.tar.bz2
zsh-7e5dda7f434b847e4a8899beb736a7251da3d390.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/gallois.zsh-theme')
-rw-r--r--themes/gallois.zsh-theme6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/gallois.zsh-theme b/themes/gallois.zsh-theme
index f9406dd96..3eac14867 100644
--- a/themes/gallois.zsh-theme
+++ b/themes/gallois.zsh-theme
@@ -15,7 +15,11 @@ git_custom_status() {
if [[ -s ~/.rvm/scripts/rvm ]] ; then
RPS1='$(git_custom_status)%{$fg[red]%}[`~/.rvm/bin/rvm-prompt`]%{$reset_color%} $EPS1'
else
- RPS1='$(git_custom_status) $EPS1'
+ if which rbenv &> /dev/null; then
+ RPS1='$(git_custom_status)%{$fg[red]%}[`rbenv version | sed -e "s/ (set.*$//"`]%{$reset_color%} $EPS1'
+ else
+ RPS1='$(git_custom_status) $EPS1'
+ fi
fi
PROMPT='%{$fg[cyan]%}[%~% ]%(?.%{$fg[green]%}.%{$fg[red]%})%B$%b '