9f34bbedc8d4843b0ed50f76d38b63e5aa48cc8b

Author
Andrew Hodges <betawaffle@gmail.com>
Committer
Andrew Hodges <betawaffle@gmail.com>
Date

Message

RVM Update Helpers

Add helper function to get rvm head. Add helper function to link zsh
completion that comes with rvm into om-my-zsh plugin directory, but don't
overwrite the completion that comes with oh-my-zsh (oh-my-zsh's completion is
better, but I want to be able to compare).

Diff

 1diff --git a/plugins/rvm/rvm.plugin.zsh b/plugins/rvm/rvm.plugin.zsh
 2index ba780c97d4bfcea1e52ab1cab1480c1e70007e7e..509dcbd986e89c577e89d3e4ac209e8c924b015b 100644
 3--- a/plugins/rvm/rvm.plugin.zsh
 4+++ b/plugins/rvm/rvm.plugin.zsh
 5@@ -29,3 +29,12 @@ function rb19 {
 6 
 7 _rb19() {compadd `ls -1 $rvm_path/gems | grep "^$ruby19@" | sed -e "s/^$ruby19@//" | awk '{print $1}'`}
 8 compdef _rb19 rb19
 9+
10+function rvm-update {
11+	rvm get head
12+	rvm reload # TODO: Reload rvm completion?
13+}
14+
15+function rvm-link-completion {
16+	ln -s "$rvm_path/scripts/zsh/Completion/_rvm" "$ZSH/plugins/rvm/_rvm.official"
17+}