mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
Shows RVM info only when a gemset that is not the default one
This commit is contained in:
@@ -123,9 +123,13 @@ prompt_dir() {
|
|||||||
prompt_segment blue white '%1~'
|
prompt_segment blue white '%1~'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# RVM: only shows RVM info if on a gemset that is not the default one
|
||||||
prompt_rvm() {
|
prompt_rvm() {
|
||||||
if which rvm-prompt &> /dev/null; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user