mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2026-10-02 07:46:01 +02:00
Shows RVM info only when a gemset that is not the default one
This commit is contained in:
1 parent
7bb34de0fb
commit
c5c7dc082d
1 file changed
+4
@@ -123,10 +123,14 @@ 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
|
||||
if [[ ! -n `rvm gemset list | grep "=> (default)"` ]]
|
||||
then
|
||||
prompt_segment magenta white "♦️ `rvm-prompt i v g`"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Virtualenv: current working virtualenv
|
||||
|
||||
Reference in new issue
Block a user