summaryrefslogtreecommitdiff
path: root/completions/pidof
diff options
context:
space:
mode:
Diffstat (limited to 'completions/pidof')
-rw-r--r--completions/pidof19
1 files changed, 19 insertions, 0 deletions
diff --git a/completions/pidof b/completions/pidof
new file mode 100644
index 00000000..12ac9a79
--- /dev/null
+++ b/completions/pidof
@@ -0,0 +1,19 @@
+# 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