fork/fish-shell

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

Aaron Gyescompletions: --description -> -d68527ff20

master
1.1 KiB20 linesraw
1# First argument is the names of the service, i.e. a file in /etc/init.d
2complete -c rc-service -n "test (__fish_number_of_cmd_args_wo_opts) = 1" \
3    -xa "(__fish_print_service_names)" -d "Service name"
4
5# The second argument is what action to take with the service
6complete -c rc-service -n "test (__fish_number_of_cmd_args_wo_opts) -gt 1" \
7    -xa "start stop restart"
8
9# Complete rc-service the options
10complete -c rc-service -s e -l exists -d 'Tests if the service exists or not'
11complete -c rc-service -s i -l ifexists \
12    -d 'If the service exists, then run the command'
13complete -c rc-service -s l -l list -d 'List all available services'
14complete -c rc-service -s r -l resolve \
15    -d 'Resolve the service name to an init script'
16complete -c rc-service -s h -l help -d 'Display the help output'
17complete -c rc-service -s C -l nocolor -d 'Disable color output'
18complete -c rc-service -s V -l version -d 'Display software version'
19complete -c rc-service -s v -l verbose -d 'Run verbosely'
20complete -c rc-service -s q -l quiet -d 'Run quietly (Does not affect errors)'