1
# bash completion for FreeBSD base package management tools
3
[ $UNAME = FreeBSD ] &&
10
pkgdir=${PKG_DBDIR:-/var/db/pkg}/
11
_get_comp_words_by_ref cur prev
13
[[ "$prev" == -o || "$prev" == -p || "$prev" == -W ]] && return 0
15
COMPREPLY=( $( compgen -d "$pkgdir$cur" ) )
16
COMPREPLY=( ${COMPREPLY[@]#$pkgdir} )
20
complete -F _pkg_delete -o dirnames pkg_delete pkg_info
27
# sh-indent-comment: t
28
# indent-tabs-mode: nil
30
# ex: ts=4 sw=4 et filetype=sh