mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add rvm_ruby_prompt function
Conflicts: themes/hpoydar.zsh-theme
This commit is contained in:
parent
def5cf39b4
commit
e1e4c7c5f4
1 changed files with 8 additions and 0 deletions
8
lib/rvm.zsh
Normal file
8
lib/rvm.zsh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function rvm_ruby_prompt {
|
||||
if (declare -f rvm > /dev/null) {
|
||||
if [[ -x $MY_RUBY_HOME ]]
|
||||
then ruby -v | sed 's/\([^(]*\).*/\1/'
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue