From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24226 invoked from network); 4 Jan 2008 00:19:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Jan 2008 00:19:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 3741 invoked from network); 4 Jan 2008 00:19:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Jan 2008 00:19:02 -0000 Received: (qmail 20379 invoked by alias); 4 Jan 2008 00:18:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24344 Received: (qmail 20362 invoked from network); 4 Jan 2008 00:18:57 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 Jan 2008 00:18:57 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 78C428058FF2 for ; Fri, 4 Jan 2008 01:18:56 +0100 (CET) Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Fri, 4 Jan 2008 01:18:56 +0100 (CET) Received: by acolyte.scowler.net (Postfix, from userid 1000) id 23C085D0C8; Thu, 3 Jan 2008 19:18:53 -0500 (EST) Date: Thu, 3 Jan 2008 19:18:54 -0500 From: Clint Adams To: Bart Schaefer Cc: joerg@alea.gnuu.de, zsh-workers@sunsite.dk Subject: Re: run-help: Support for svn and git Message-ID: <20080104001854.GA12122@scowler.net> Mail-Followup-To: Bart Schaefer , joerg@alea.gnuu.de, zsh-workers@sunsite.dk References: <071230200204.ZM32486@torch.brasslantern.com> <071231130840.ZM986@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <071231130840.ZM986@torch.brasslantern.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: ClamAV using ClamSMTP On Mon, Dec 31, 2007 at 01:08:40PM -0800, Bart Schaefer wrote: > There must be something in the /etc/z* files installed with the Debian > zsh package that removes the alias and loads the function instead. Right, the tail end of the global zshrc unaliases and autoloads it. The function is also modified slightly; I'm not sure how to make it more generic without doing a build-time replacement. --- Functions/Misc/run-help 2007-12-17 14:52:56.000000000 -0500 +++ debian/run-help 2008-01-03 19:15:30.000000000 -0500 @@ -2,19 +2,19 @@ # # Figure out where to get the best help, and get it. # -# Install this function by placing it in your FPATH and then -# adding to your .zshrc the lines: -# unalias run-help -# autoload run-help +# This version adapted for Debian GNU/Linux by Robert Leslie +# from source written by Bart Schaefer , +# and modified by Clint Adams . # emulate -R zsh setopt localoptions +: ${HELPDIR:=/usr/share/zsh/help} + [[ $1 == "." ]] && 1="dot" [[ $1 == ":" ]] && 1="colon" -# Check whether Util/helpfiles has been used to generate zsh help if [[ $# == 0 || $1 == "-l" ]] then if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]] @@ -28,7 +28,7 @@ return 0 elif [[ -n "${HELPDIR:-}" && -r $HELPDIR/$1 && $1 != compctl ]] then - ${=PAGER:-more} $HELPDIR/$1 + ${=PAGER:-/usr/bin/pager} $HELPDIR/$1 return $? fi @@ -61,7 +61,7 @@ case ${what[(w)1]} in (comp*) man zshcompsys;; (zf*) man zshftpsys;; - (*) builtin functions ${what[(w)1]} | ${=PAGER:-more};; + (*) builtin functions ${what[(w)1]} | ${=PAGER:-/usr/bin/pager};; esac;; (*( is a * builtin)) case ${what[(w)1]} in