Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: run-help: Support for svn and git
- X-seq: zsh-workers 24349
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: run-help: Support for svn and git
- Date: Thu, 3 Jan 2008 23:32:50 -0500
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <080103192134.ZM5704@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <slrnfnfrql.cgh.joerg@xxxxxxxxxxxx> <071230200204.ZM32486@xxxxxxxxxxxxxxxxxxxxxx> <slrnfnicut.cgh.joerg@xxxxxxxxxxxx> <071231130840.ZM986@xxxxxxxxxxxxxxxxxxxxxx> <20080104001854.GA12122@xxxxxxxxxxx> <080103192134.ZM5704@xxxxxxxxxxxxxxxxxxxxxx>
On Thu, Jan 03, 2008 at 07:21:34PM -0800, Bart Schaefer wrote:
> Wow, I don't remember if I'm really the original author of run-help.
> I see that I sent it to zsh-workers back in August 1996, so I guess I
> must be. However, Jeorg Sommer ought to get some credit for the idea
> behind the run-help-$1 part.
I'd be happier to ditch the fork, attributions and all.
With this I can just
sed 's,^# HELPDIR should be.*,: ${HELPDIR:=/usr/share/zsh/help},;s,:-more,:-/usr/bin/pager,' Functions/Misc/run-help
Better ideas are welcome.
Index: Functions/Misc/run-help
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/run-help,v
retrieving revision 1.8
diff -u -r1.8 run-help
--- Functions/Misc/run-help 31 Dec 2007 22:13:47 -0000 1.8
+++ Functions/Misc/run-help 4 Jan 2008 04:26:18 -0000
@@ -11,6 +11,8 @@
emulate -R zsh
setopt localoptions
+# HELPDIR should be set to the location of the help files
+
[[ $1 == "." ]] && 1="dot"
[[ $1 == ":" ]] && 1="colon"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author