mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 11:50:38 +01:00
Shows RVM info only when a gemset that is not the default one
This commit is contained in:
@@ -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