mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
1da25fd916
`rc-status` is part of OpenRC
20 lines
1.1 KiB
Fish
20 lines
1.1 KiB
Fish
set -l levels '(set -l p /etc/runlevels/*; string replace /etc/runlevels "" $p)'
|
|
|
|
#disable file listing
|
|
complete -f rc-status
|
|
complete -c rc-status -n "test (__fish_number_of_cmd_args_wo_opts) = 1" \
|
|
-xa "$levels"
|
|
|
|
complete -c rc-status -s h -l help -d 'Display the help output'
|
|
complete -c rc-status -s a -l all -d 'Show services from all run levels'
|
|
complete -c rc-status -s f -l format -d 'format status to be parsable'
|
|
complete -c rc-status -s l -l list -d 'Show list of run levels'
|
|
complete -c rc-status -s r -l runlevel -d 'Show the name of the current runlevel'
|
|
complete -c rc-status -s m -l manual -d 'Show manually started services'
|
|
complete -c rc-status -s s -l servicelist 'Show service list'
|
|
complete -c rc-status -s S -l supervised 'Show supervised services'
|
|
complete -c rc-status -s u -l unused 'Show services not assigned to any runlevel'
|
|
complete -c rc-status -s v -l version 'Display software version'
|
|
complete -c rc-status -s q -l quiet 'Run quietly'
|
|
complete -c rc-status -s C -l nocolor 'Disable color output'
|
|
complete -c rc-status -s V -l version 'Display software version'
|