Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _bsd_pkg openbsd completion
- X-seq: zsh-workers 24352
- From: Mustafa Oezkan <destruct.c@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _bsd_pkg openbsd completion
- Date: Fri, 4 Jan 2008 10:47:12 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi,
i added some openbsd specific completion to _bsd_pkg. I hope some guys
who are running OpenBSD, can do some testing and report bugs.
Thx and regarts
Mustafa Oezkan
--
There's a difference between, doing wrong and being wrong.
--- 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 \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author