fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMerge branch 'completions-to-use-expanded-tokens'a9618477e

master
806 B19 linesraw
1function __fish_ruby-build_needs_command
2    set -l cmd (commandline -xpc)
3    if test (count $cmd) -eq 1
4        return 0
5    end
6    return 1
7end
8
9function __fish_ruby-build_definitions
10    ruby-build --definitions
11end
12
13complete -f -c ruby-build -n __fish_ruby-build_needs_command -a '(__fish_ruby-build_definitions)' -d Definition
14
15complete -f -c ruby-build -n __fish_ruby-build_needs_command -l keep -s k -d 'Do not remove source tree after installation'
16complete -f -c ruby-build -n __fish_ruby-build_needs_command -l verbose -s v -d 'Verbose mode: print compilation status to stdout'
17complete -f -c ruby-build -n __fish_ruby-build_needs_command -l definitions -d 'List all built-in definitions'
18
19complete -f -c ruby-build -n __fish_ruby-build_needs_command -l help -s h -d 'Display help information'