Merge pull request #100 from aschrab/rvm-patch
Complete argument for rvm --patch option
This commit is contained in:
commit
fd7749f79f
9
src/_rvm
9
src/_rvm
|
@ -23,12 +23,13 @@ _arguments -C \
|
|||
'--bin[path for binaries to be placed (~/.rvm/bin/)]:path:_files' \
|
||||
'--source[src directory to use (~/.rvm/src/)]:path:_files' \
|
||||
'--archives[directory for downladed files (~/.rvm/archives/)]:path:_files' \
|
||||
'-n[Name for new ruby install]:name:' \
|
||||
'-S[Specify a script file to attempt to load and run (rubydo)]:file:_files' \
|
||||
'-e[Execute code from the command line]:code' \
|
||||
'-G[root gem path to use]:path:_files' \
|
||||
'--gems[Used to set the gems_flag, use with remove to remove gems]' \
|
||||
'--archive[Used to set the archive_flag, use with remove to remove archive]' \
|
||||
'--patch[With MRI Rubies you may specify one or more full paths to patches]' \
|
||||
'--patch[With MRI Rubies you may specify one or more full paths to patches]:paths:->patches' \
|
||||
'(-C --configure)'{-C,--configure}'=[custom configure options]' \
|
||||
'--nice[process niceness (for slow computers, default 0)]:number' \
|
||||
'--ree-options[Options passed directly to ree ./installer on the command line]:options' \
|
||||
|
@ -48,6 +49,12 @@ _arguments -C \
|
|||
|
||||
case $state in
|
||||
|
||||
patches)
|
||||
compset -P '*,'
|
||||
compset -S ',*'
|
||||
_files -q -S ,
|
||||
;;
|
||||
|
||||
cmds)
|
||||
|
||||
cmds=( ${(f)"$(_call_program commands rvm help 2> /dev/null | sed -e '/^== Action/,/^== Implementation/!d; / \(::\|-\) /!d; s/^[ *]*\([^ *]*\)[ *]*\(::\|-\) *\(.*\)/\1:\3/')"} )
|
||||
|
|
Loading…
Reference in New Issue