19 lines
386 B
Bash

# 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