diff options
Diffstat (limited to 'completions/pidof')
-rw-r--r-- | completions/pidof | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/completions/pidof b/completions/pidof index 12ac9a79..223e25d4 100644 --- a/completions/pidof +++ b/completions/pidof @@ -6,14 +6,22 @@ _pidof() _init_completion || return case $prev in - -o) + -h|--help|-V|--version) + return + ;; + -o|--omit-pid) _pids return ;; esac + if [[ $cur == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + return + fi + _pnames } && complete -F _pidof pidof -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |