summaryrefslogtreecommitdiffstats
path: root/completions/pwck
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--completions/pwck18
1 files changed, 18 insertions, 0 deletions
diff --git a/completions/pwck b/completions/pwck
new file mode 100644
index 0000000..fa07b0e
--- /dev/null
+++ b/completions/pwck
@@ -0,0 +1,18 @@
+# pwck(8) completion -*- shell-script -*-
+
+_pwck()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ if [[ $cur == -* ]]; then
+ local opts=$(_parse_help "$1")
+ COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur"))
+ return
+ fi
+
+ _filedir
+} &&
+ complete -F _pwck pwck
+
+# ex: filetype=sh