Date: Sun, 14 Jan 2001 08:40:06 -0800 (PST) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/sysctl sysctl.c Message-ID: <200101141640.f0EGe6w52156@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2001/01/14 08:40:06 PST
Modified files:
sbin/sysctl sysctl.c
Log:
Add a -N option that makes sysctl(8) print out just the variable names.
Zsh users can add the following to their .zshrc for sysctl completion:
function listsysctls {
case $1 in
*.*) set -A reply $(sysctl -AN ${1%.*}) ;;
*) set -A reply $(sysctl -AN) ;;
esac
}
compctl -K listsysctls sysctl
While I'm here, brucify the getopt() switch.
Revision Changes Path
1.30 +32 -11 src/sbin/sysctl/sysctl.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101141640.f0EGe6w52156>
