228c3fc89f000bdd6dcf17f4f2d75bd2f9ad716a
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1301 from bencao/master
fix rvm plugin auto complete not work problem
Diff
1diff --git a/plugins/rvm/rvm.plugin.zsh b/plugins/rvm/rvm.plugin.zsh
2index 27f29f2b338cd073d7e4315f867fe748ec81579f..1ab800b0f9c9ee12a63a823b6a4660e5bfa23618 100644
3--- a/plugins/rvm/rvm.plugin.zsh
4+++ b/plugins/rvm/rvm.plugin.zsh
5@@ -4,7 +4,7 @@ alias rubies='rvm list rubies'
6 alias gemsets='rvm gemset list'
7
8 local ruby18='ruby-1.8.7-p334'
9-local ruby19='ruby-1.9.2-p180'
10+local ruby19='ruby-1.9.3-p194'
11
12 function rb18 {
13 if [ -z "$1" ]; then
14@@ -44,3 +44,8 @@ function gems {
15 -Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
16 -Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
17 }
18+
19+function _rvm_completion {
20+ source $rvm_path"/scripts/zsh/Completion/_rvm"
21+}
22+compdef _rvm_completion rvm