From c5c7dc082d766dae7c63b8acd937df51256b4e0f Mon Sep 17 00:00:00 2001 From: Caio Gondim Date: Wed, 9 Jul 2014 21:53:13 +0200 Subject: [PATCH] Shows RVM info only when a gemset that is not the default one --- bullet-train.zsh-theme | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 5cc5346..48fc4c9 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -123,9 +123,13 @@ prompt_dir() { prompt_segment blue white '%1~' } +# RVM: only shows RVM info if on a gemset that is not the default one prompt_rvm() { if which rvm-prompt &> /dev/null; then - prompt_segment magenta white "♦️ `rvm-prompt i v g`" + if [[ ! -n `rvm gemset list | grep "=> (default)"` ]] + then + prompt_segment magenta white "♦️ `rvm-prompt i v g`" + fi fi }