From ba56a2ec0eb9a04afe947bd7e5360f19fc7d12c2 Mon Sep 17 00:00:00 2001 From: Amy Grace Date: Tue, 29 Oct 2019 12:11:25 -0600 Subject: [PATCH] Add completions for `irb` (#6260) --- CHANGELOG.md | 1 + share/completions/irb.fish | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 share/completions/irb.fish diff --git a/CHANGELOG.md b/CHANGELOG.md index 08a6ab856..d05072e29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,7 @@ - `gpg2` (#6062) - `grub-mkrescue` (#6182) - `hledger` (#6043) + - `irb` (#6260) - `iw` (#6232) - `kak` - `mariner` (#5718) diff --git a/share/completions/irb.fish b/share/completions/irb.fish new file mode 100644 index 000000000..bed177a8b --- /dev/null +++ b/share/completions/irb.fish @@ -0,0 +1,31 @@ +# irb (interactive ruby) + +complete -c irb -s f -d "Suppresses read of ~/.irbrc" +complete -c irb -s d -d "Set \$DEBUG to true" +complete -c irb -s r -f -d "Load LIB using require" +complete -c irb -s I -xa "(__fish_complete_directories)" -d "Specify \$LOAD_PATH directory" +complete -c irb -s U -d "Same as 'ruby -U'" +complete -c irb -s E -l encoding -d "Specify default text encoding" +complete -c irb -s w -d "Turn on warnings'" +complete -c irb -s W -xa '0 1 2' -d "Set warning level" +complete -c irb -l context-mode -xa '0 1 2 3' -d "Create Binding Object" +complete -c irb -l echo -d "Show result" +complete -c irb -l noecho -d "Don't show result" +complete -c irb -l inspect -d "Use 'inspect' for output" +complete -c irb -l noinspect -d "Don't use 'inspect' for output" +complete -c irb -l readline -d "Use Readline extension module" +complete -c irb -l noreadline -d "Don't use Readline extension module" +complete -c irb -l prompt -xa "default simple xmp inf-ruby" -d "Switch prompt mode" +complete -c irb -l prompt-mode -xa "default simple xmp inf-ruby" -d "Switch prompt mode" +complete -c irb -l inf-ruby-mode -d "Use prompt for emacs inf-ruby-mode" +complete -c irb -l sample-book-mode -d "Simple prompt mode" +complete -c irb -l simple-prompt -d "Simple prompt mode" +complete -c irb -l noprompt -d "No prompt mode" +complete -c irb -l single-irb -d "Share self with sub-irb" +complete -c irb -l tracer -d "Displays trace for each execution of commands" +complete -c irb -l back-trace-limit -x -d "Displays backtrace, top N and tail N" +complete -c irb -l irb_debug -x -d "Sets internal debug level to N" +complete -c irb -l verbose -d "Show details" +complete -c irb -l noverbose -d "Don't show details" +complete -c irb -s v -l version -d "Print the version of irb" +complete -c irb -s h -l help -d "Print a summary of options"