From: Bart Schaefer <schaefer@brasslantern.com>
To: Clint Adams <clint@zsh.org>
Cc: zsh-workers@sunsite.dk
Subject: Re: run-help: Support for svn and git
Date: Sat, 05 Jan 2008 10:05:18 -0800 [thread overview]
Message-ID: <080105100518.ZM7217@torch.brasslantern.com> (raw)
In-Reply-To: <20080104043250.GB675@scowler.net>
On Jan 3, 11:32pm, Clint Adams wrote:
} Subject: Re: run-help: Support for svn and git
}
} 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.
Not having a Debian install available anywhere, I'm not sure what
/usr/bin/pager does. Is there a reason you can't simply assign to
$PAGER in /etc/z* as well? With appropriate checks that it isn't
already set to something else, of course.
Then, how about this? It's not really a problem to have a default
value of HELPDIR in the function, since we check that it exists. I
suppose if someone wanted to explicitly turn OFF the use of HELPDIR,
this would be a problem ... is that worth worrying about?
Also, would /usr/share/zsh/$ZSH_VERSION/help be more appropriate?
Index: Functions/Misc/run-help
===================================================================
diff -c -r1.3 run-help
--- Functions/Misc/run-help 30 May 2007 03:36:56 -0000 1.3
+++ Functions/Misc/run-help 5 Jan 2008 17:38:35 -0000
@@ -11,13 +11,15 @@
emulate -R zsh
setopt localoptions
+local HELPDIR="${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 ]]
+ if [[ -d $HELPDIR ]]
then
echo "Here is a list of topics for which special help is available:"
echo ""
next prev parent reply other threads:[~2008-01-05 18:05 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
2008-01-04 3:21 ` Bart Schaefer
2008-01-04 4:32 ` Clint Adams
2008-01-05 18:05 ` Bart Schaefer [this message]
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=080105100518.ZM7217@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=clint@zsh.org \
--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).