mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
24364: local assignment to HELPDIR with a default location.
This commit is contained in:
parent
298eb1a82c
commit
7a678d803c
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
emulate -R zsh
|
emulate -R zsh
|
||||||
setopt localoptions
|
setopt localoptions
|
||||||
|
|
||||||
# HELPDIR should be set to the location of the help files
|
local HELPDIR="${HELPDIR:-/usr/share/zsh/$ZSH_VERSION/help}"
|
||||||
|
|
||||||
[[ $1 == "." ]] && 1="dot"
|
[[ $1 == "." ]] && 1="dot"
|
||||||
[[ $1 == ":" ]] && 1="colon"
|
[[ $1 == ":" ]] && 1="colon"
|
||||||
|
|
@ -19,7 +19,7 @@ setopt localoptions
|
||||||
# Check whether Util/helpfiles has been used to generate zsh help
|
# Check whether Util/helpfiles has been used to generate zsh help
|
||||||
if [[ $# == 0 || $1 == "-l" ]]
|
if [[ $# == 0 || $1 == "-l" ]]
|
||||||
then
|
then
|
||||||
if [[ -n "${HELPDIR:-}" && -d $HELPDIR ]]
|
if [[ -d $HELPDIR ]]
|
||||||
then
|
then
|
||||||
echo "Here is a list of topics for which special help is available:"
|
echo "Here is a list of topics for which special help is available:"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue