Igor Murzov 9ab064fb17 pidof: Don't check OS type (Alioth #311403)
Also drop non-existent option arguments completion.

Reviewed-by: Ville Skyttä <ville.skytta@iki.fi>
2011-11-16 01:56:07 +03:00

20 lines
321 B
Bash

# pidof(8) completion -*- shell-script -*-
_pidof()
{
local cur prev words cword
_init_completion || return
case $prev in
-o)
_pids
return
;;
esac
_pnames
} &&
complete -F _pidof pidof
# ex: ts=4 sw=4 et filetype=sh