zsh-users
 help / color / mirror / code / Atom feed
* Re: How can I make 'run-help' know zsh builtin function?
       [not found] <199711070130.UAA04920@math.gatech.edu>
@ 1997-11-07  9:08 ` Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1997-11-07  9:08 UTC (permalink / raw)
  To: Zsh users list, zhouyhong

zhouyhong wrote:
> Dear Zsh users:
> 	I have just install Zsh,and I haven't root access.
> 	I want 'run-help' function know zsh builtin function and
> 	I found a file named 'Helpfiles' which can DO THIS FOR ME.
> 	BUT,it's a perl program,I haven't perl in my system
> 	Is there any other way to do this?Must I download perl to
> 	my system and compile it for just one program?

I have put a reasonably up to date set of help files on the web
at http://www.ifh.de/~pws/help.tar.gz (there's no link to it,
you must use that URL).  This is just temporary.  A function like
the one below is necessary for full functionality.

I have a newer version of helpfiles, which I'll post separately
to zsh-workers since it's not useful here.

# start run-help
typeset zhelp=~/src/zsh-3.1.2/Help   # CHANGE THIS
typeset page="${PAGER:-less}"	     # Hack to split words in $page
				     # maybe change less to more
case $1 in
   .) 1=dot;;
   :) 1=colon;;
   -) 1=dash;;
esac
if [[ $1 = compctl ]]; then
    man compctl
elif [[  -f $zhelp/$1 ]]
then
     ${=page} $zhelp/$1
else
  man $1
fi
# end run-help

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-11-07  9:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <199711070130.UAA04920@math.gatech.edu>
1997-11-07  9:08 ` How can I make 'run-help' know zsh builtin function? Peter Stephenson

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).