--- Completion/BSD/Command/_bsd_pkg.orig 2007-12-28 21:14:25.309830589 +0100 +++ Completion/BSD/Command/_bsd_pkg 2008-01-04 10:45:49.339036114 +0100 @@ -58,7 +58,23 @@ '-v[be verbose]' ) - case "$OSTYPE" in + case "$OSTYPE" in + openbsd*) + flags=( + '-u[update given pkgname(s), else all installed packages]' + '-x[disable progress-meter]' + '-r[replace existing packages]' + '-q[replace package quickly, do not bother checking md5s]' + '-a[automated package installation; not record packages as installed manually]' + '-i[interactive mode]' + '-c[delete extra configuration file in old package while replacing]' + '-P[check permissions for distribution]' + '-F[force installation]' + '-L[install a package under localbase]' + '-v[be verbose, several -v be more verbose]' + ) + ;; + freebsd*) flags=( $flags[@] @@ -155,6 +171,17 @@ '-V[show version and exit]' ) ;; + openbsd*) + flags=( + '-c[delete extra configuration file]' + '-I[if scripts exist do not execute them]' + '-i[interactive mode]' + '-n[don'\''t really deinstall packages]' + '-q[delete package quickly, don'\''t bother md5s before removing]' + '-v[be verbose, several -v be more verbose]' + '-x[disable progress-meter]' + ) + ;; esac _arguments -s \