fish-shell/share/completions/ruby-build.fish

20 lines
802 B
Fish
Raw Normal View History

2013-03-14 06:19:03 +08:00
function __fish_ruby-build_needs_command
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 ]
return 0
end
return 1
2013-03-14 06:19:03 +08:00
end
function __fish_ruby-build_definitions
ruby-build --definitions
2013-03-14 06:19:03 +08:00
end
complete -f -c ruby-build -n __fish_ruby-build_needs_command -a '(__fish_ruby-build_definitions)' -d Definition
2013-03-14 06:19:03 +08:00
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'
2013-03-14 06:19:03 +08:00
complete -f -c ruby-build -n __fish_ruby-build_needs_command -l help -s h -d 'Display help information'