1 # bash completion for runit sv(1)
5 local cur prev words cword commands
6 _init_completion || return
8 commands='up down status once pause cont hup alarm interrupt 1 2 term kill exit start stop restart shutdown force-stop force-reload force-restart force-shutdown'
15 COMPREPLY=( $(compgen -W "${commands}" -- ${cur}) )
19 COMPREPLY=( /var/service/* )
20 COMPREPLY=( ${COMPREPLY[@]##*/} )
21 COMPREPLY=( $(compgen -W '${COMPREPLY[@]}' -- ${cur}) )