1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 21:51:42 +00:00

Merged lib/git.zsh and lib/rvm.zsh into plugins/.

This commit is contained in:
Sorin Ionescu
2011-06-01 14:14:20 -04:00
parent 94ab5e0ec8
commit 4727e12013
4 changed files with 89 additions and 88 deletions

View File

@ -1,3 +1,11 @@
# Get the name of the current branch.
function rvm_prompt_info() {
local ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null)
if [[ -n "$ruby_version" ]]; then
echo "($ruby_version)"
fi
}
alias rubies='rvm list rubies'
alias gemsets='rvm gemset list'
@ -42,3 +50,4 @@ function gems {
-Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
-Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
}