-
-
Save qnighy/185756 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef irb | |
typeset -A opt_args | |
local context state line | |
_arguments -s -S \ | |
"-f[suppress read ~/.irbrc]" \ | |
"-m[bc mode (fraction or matrix are available)]" \ | |
"-d[set \$DEBUG to true (same as \`ruby -d']" \ | |
"-r+[same as \`ruby -r']:load-module:_files -/" \ | |
"(--noinspect)--inspect[uses \`inspect' for output (the default except bc mode)]" \ | |
"(--inspect)--noinspect[doesn't uses inspect for output]" \ | |
"(--noreadline --inf-ruby-mode)--readline[uses Readline extension module]" \ | |
"(--readline --inf-ruby-mode)--noreadline[doesn't use Readline extension module]" \ | |
"(--prompt-mode --prompt --inf-ruby-mode --simple-prompt --noprompt)"{--prompt,--prompt-mode}"+[switches prompt mode. Pre-defined prompt modes are \`default', \`simple', \`xmp' and \'inf-ruby']:prompt-mode:(default simple xmp inf-ruby)" \ | |
"(--prompt-mode --prompt --inf-ruby-mode --simple-prompt --noprompt --readline --noreadline)--inf-ruby-mode[uses prompt appreciate for inf-ruby-mode on emacs. Suppresses --readline.]" \ | |
"(--prompt-mode --prompt --inf-ruby-mode --simple-prompt --noprompt)--simple-prompt[simple prompt mode]" \ | |
"(--prompt-mode --prompt --inf-ruby-mode --simple-prompt --noprompt)--noprompt[no prompt]" \ | |
"--tracer[display trace for each execution of commands.]" \ | |
"--back-trace-limit+[displayes backtrace top n and tail n. The default value is 16.]:n:" \ | |
"(-v --version)"{-v,--version}"[prints the version of irb]" \ | |
&& return 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment