summaryrefslogtreecommitdiffstats
path: root/completions/pidof
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/pidof27
1 files changed, 27 insertions, 0 deletions
diff --git a/completions/pidof b/completions/pidof
new file mode 100644
index 0000000..a11b432
--- /dev/null
+++ b/completions/pidof
@@ -0,0 +1,27 @@
+# pidof(8) completion -*- shell-script -*-
+
+_pidof()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ case $prev in
+ --help | -V | --version | -!(-*)[hV]*)
+ return
+ ;;
+ --omit-pid | -!(-*)o)
+ _pids
+ return
+ ;;
+ esac
+
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ return
+ fi
+
+ _pnames
+} &&
+ complete -F _pidof pidof
+
+# ex: filetype=sh