From: Clint Adams <schizo@debian.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: joerg@alea.gnuu.de, zsh-workers@sunsite.dk
Subject: Re: run-help: Support for svn and git
Date: Thu, 3 Jan 2008 19:18:54 -0500 [thread overview]
Message-ID: <20080104001854.GA12122@scowler.net> (raw)
In-Reply-To: <071231130840.ZM986@torch.brasslantern.com>
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 <rob@mars.org>
+# from source written by Bart Schaefer <schaefer@brasslantern.com>,
+# and modified by Clint Adams <schizo@debian.org>.
#
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
next prev parent reply other threads:[~2008-01-04 0:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-30 19:19 Jörg Sommer
2007-12-31 4:02 ` Bart Schaefer
2007-12-31 12:10 ` Jörg Sommer
2007-12-31 16:19 ` Bart Schaefer
2007-12-31 17:26 ` Jörg Sommer
2007-12-31 21:05 ` Bart Schaefer
2007-12-31 18:24 ` Jörg Sommer
2007-12-31 21:08 ` Bart Schaefer
2008-01-04 0:18 ` Clint Adams [this message]
2008-01-04 3:21 ` Bart Schaefer
2008-01-04 4:32 ` Clint Adams
2008-01-05 18:05 ` Bart Schaefer
2008-01-09 19:07 ` Clint Adams
2008-01-13 19:01 ` Bart Schaefer
2008-01-04 12:13 ` Jörg Sommer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080104001854.GA12122@scowler.net \
--to=schizo@debian.org \
--cc=joerg@alea.gnuu.de \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).