aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Terje Larsen <terlar@gmail.com>2013-03-13 23:19:03 +0100
committerGravatar Terje Larsen <terlar@gmail.com>2013-03-13 23:19:03 +0100
commit7e9652787b96dfd148ba775fc5702192c7192bda (patch)
tree0b55e08b28bdbcc62a4073abffa287bb626eed52 /share
parent3b00d06a62ead75883873068e2cb9754290f2e40 (diff)
Add completion for ruby-build
Diffstat (limited to 'share')
-rw-r--r--share/completions/ruby-build.fish19
1 files changed, 19 insertions, 0 deletions
diff --git a/share/completions/ruby-build.fish b/share/completions/ruby-build.fish
new file mode 100644
index 00000000..3941df84
--- /dev/null
+++ b/share/completions/ruby-build.fish
@@ -0,0 +1,19 @@
+function __fish_ruby-build_needs_command
+ set cmd (commandline -opc)
+ if [ (count $cmd) -eq 1 -a $cmd[1] = 'ruby-build' ]
+ return 0
+ end
+ return 1
+end
+
+function __fish_ruby-build_definitions
+ ruby-build --definitions
+end
+
+complete -f -c ruby-build -n '__fish_ruby-build_needs_command' -a '(__fish_ruby-build_definitions)' -d 'Definition'
+
+complete -f -c ruby-build -n '__fish_ruby-build_needs_command' -l keep -s k -d 'Do not remove source tree after installation'
+complete -f -c ruby-build -n '__fish_ruby-build_needs_command' -l verbose -s v -d 'Verbose mode: print compilation status to stdout'
+complete -f -c ruby-build -n '__fish_ruby-build_needs_command' -l definitions -d 'List all built-in definitions'
+
+complete -f -c ruby-build -n '__fish_ruby-build_needs_command' -l help -s h -d 'Display help information'