fork/fish-shell

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

Fabian Boehmcompletions/rc-status: Fix missing "-d"afe7e2d27

master
1.1 KiB20 linesraw
1set -l levels '(set -l p /etc/runlevels/*; string replace /etc/runlevels "" $p)'
2
3#disable file listing
4complete -f rc-status
5complete -c rc-status -n "test (__fish_number_of_cmd_args_wo_opts) = 1" \
6    -xa "$levels"
7
8complete -c rc-status -s h -l help -d 'Display the help output'
9complete -c rc-status -s a -l all -d 'Show services from all run levels'
10complete -c rc-status -s f -l format -d 'format status to be parsable'
11complete -c rc-status -s l -l list -d 'Show list of run levels'
12complete -c rc-status -s r -l runlevel -d 'Show the name of the current runlevel'
13complete -c rc-status -s m -l manual -d 'Show manually started services'
14complete -c rc-status -s s -l servicelist -d 'Show service list'
15complete -c rc-status -s S -l supervised -d 'Show supervised services'
16complete -c rc-status -s u -l unused -d 'Show services not assigned to any runlevel'
17complete -c rc-status -s v -l version -d 'Display software version'
18complete -c rc-status -s q -l quiet -d 'Run quietly'
19complete -c rc-status -s C -l nocolor -d 'Disable color output'
20complete -c rc-status -s V -l version -d 'Display software version'