HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //proc/thread-self/root/usr/share/bash-completion/completions/pkg_info
# bash completion for *BSD package management tools        -*- shell-script -*-

_pkg_delete()
{
    local cur prev words cword
    _init_completion || return

    local pkgdir=${PKG_DBDIR:-/var/db/pkg}/

    [[ $prev == -o || $prev == -p || $prev == -W ]] && return

    COMPREPLY=($(compgen -d -- "$pkgdir$cur"))
    ((${#COMPREPLY[@]} == 0)) || COMPREPLY=(${COMPREPLY[@]#$pkgdir})

} &&
    complete -F _pkg_delete -o dirnames pkg_delete pkg_info pkg_deinstall

# ex: filetype=sh