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

Re: How can I make 'run-help' know zsh builtin function?

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;;
if [[ $1 = compctl ]]; then
    man compctl
elif [[  -f $zhelp/$1 ]]
     ${=page} $zhelp/$1
  man $1
# end run-help

Peter Stephenson <pws@xxxxxx>       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.

Messages sorted by: Reverse Date, Date, Thread, Author