Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: run-help: Support for svn and git



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