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
commit 3df2fe787e
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'
@ -46,3 +54,4 @@ function gems {
-Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
-Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
}