mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-20 03:51:07 +02:00
zsh-workers/9256
This commit is contained in:
parent
66ec74ac7a
commit
e51dcf4b07
2 changed files with 11 additions and 8 deletions
15
INSTALL
15
INSTALL
|
@ -247,12 +247,15 @@ Shell functions
|
||||||
By default, the shell functions which are installed with `make install' or
|
By default, the shell functions which are installed with `make install' or
|
||||||
`make install.fns' go into the directory ${datadir}/zsh/functions, which
|
`make install.fns' go into the directory ${datadir}/zsh/functions, which
|
||||||
unless you have specified --datadir is the same as
|
unless you have specified --datadir is the same as
|
||||||
${prefix}/share/zsh/functions ($prefix itself defaults to /usr/local, as
|
${prefix}/share/zsh/functions/$ZSH_VERSION ($prefix itself defaults to
|
||||||
described below). This directory will also be compiled into the shell as
|
/usr/local, as described below). This directory will also be compiled into
|
||||||
the default directory for the variable $fpath/$FPATH. You can override it
|
the shell as the default directory for the variable $fpath/$FPATH. You can
|
||||||
with --enable-fndir=directory; --disable-fndir or --enable-fndir=no will
|
override it with --enable-fndir=directory; --disable-fndir or
|
||||||
turn off both installation of functions and the setting of a default value
|
--enable-fndir=no will turn off both installation of functions and the
|
||||||
for $fpath/$FPATH.
|
setting of a default value for $fpath/$FPATH. Note the presence of
|
||||||
|
$ZSH_VERSION (e.g. `3.1.7') to avoid clashes between versions of zsh.
|
||||||
|
If you only run one version of zsh at once, installing into a common
|
||||||
|
directory such as /usr/local/share/zsh/functions is fine.
|
||||||
|
|
||||||
You can control the functions which get installed by setting
|
You can control the functions which get installed by setting
|
||||||
FUNCTIONS_INSTALL, either when running configure (e.g.
|
FUNCTIONS_INSTALL, either when running configure (e.g.
|
||||||
|
|
|
@ -214,10 +214,10 @@ undefine([fndir])dnl
|
||||||
AC_ARG_ENABLE(fndir,
|
AC_ARG_ENABLE(fndir,
|
||||||
[ --enable-fndir=DIR where functions go (default DATADIR/zsh/functions)],
|
[ --enable-fndir=DIR where functions go (default DATADIR/zsh/functions)],
|
||||||
[if test $enableval = yes; then
|
[if test $enableval = yes; then
|
||||||
fndir=${datadir}/${tzsh_name}/functions
|
fndir=${datadir}/${tzsh_name}/functions/${VERSION}
|
||||||
else
|
else
|
||||||
fndir="$enableval"
|
fndir="$enableval"
|
||||||
fi], [fndir=${datadir}/${tzsh_name}/functions])
|
fi], [fndir=${datadir}/${tzsh_name}/functions/${VERSION}])
|
||||||
|
|
||||||
undefine([function_subdirs])
|
undefine([function_subdirs])
|
||||||
AC_ARG_ENABLE(function-subdirs,
|
AC_ARG_ENABLE(function-subdirs,
|
||||||
|
|
Loading…
Reference in a new issue