|
|
@ -38,3 +38,15 @@ function rvm-update {
|
|
|
|
function rvm-link-completion {
|
|
|
|
function rvm-link-completion {
|
|
|
|
ln -s "$rvm_path/scripts/zsh/Completion/_rvm" "$ZSH/plugins/rvm/_rvm.official"
|
|
|
|
ln -s "$rvm_path/scripts/zsh/Completion/_rvm" "$ZSH/plugins/rvm/_rvm.official"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: Make this usable w/o rvm.
|
|
|
|
|
|
|
|
function gems {
|
|
|
|
|
|
|
|
local current_ruby=`rvm-prompt i v p`
|
|
|
|
|
|
|
|
local current_gemset=`rvm-prompt g`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gem list $@ | sed \
|
|
|
|
|
|
|
|
-Ee "s/\([0-9\.]+( .+)?\)/$fg[blue]&$reset_color/g" \
|
|
|
|
|
|
|
|
-Ee "s|$(echo $rvm_path)|$fg[magenta]\$rvm_path$reset_color|g" \
|
|
|
|
|
|
|
|
-Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
|
|
|
|
|
|
|
|
-Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
|
|
|
|
|
|
|
|
}
|
|
|
|