19 lines
360 B
Bash

# pwdx(1) completion -*- shell-script -*-
_pwdx()
{
local cur prev words cword
_init_completion || return
[[ $prev == -V ]] && return
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-V' -- "$cur" ) )
else
_pids
fi
} &&
complete -F _pwdx pwdx
# ex: ts=4 sw=4 et filetype=sh