diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-06 21:26:56 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-06 21:26:56 +0000 |
commit | e51dcf4b07a4bb8b79769e7dc898a63ef730d16f (patch) | |
tree | 153a23e66d1fc91a53d9edba393b3bb80c4324e5 | |
parent | 66ec74ac7ac79680a55d6aa6a348970c93d2bffc (diff) | |
download | zsh-e51dcf4b07a4bb8b79769e7dc898a63ef730d16f.tar.gz zsh-e51dcf4b07a4bb8b79769e7dc898a63ef730d16f.tar.xz zsh-e51dcf4b07a4bb8b79769e7dc898a63ef730d16f.zip |
zsh-workers/9256
-rw-r--r-- | INSTALL | 15 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 11 insertions, 8 deletions
diff --git a/INSTALL b/INSTALL index d2741ffdd..6f6a6108c 100644 --- a/INSTALL +++ b/INSTALL @@ -247,12 +247,15 @@ Shell functions By default, the shell functions which are installed with `make install' or `make install.fns' go into the directory ${datadir}/zsh/functions, which unless you have specified --datadir is the same as -${prefix}/share/zsh/functions ($prefix itself defaults to /usr/local, as -described below). This directory will also be compiled into the shell as -the default directory for the variable $fpath/$FPATH. You can override it -with --enable-fndir=directory; --disable-fndir or --enable-fndir=no will -turn off both installation of functions and the setting of a default value -for $fpath/$FPATH. +${prefix}/share/zsh/functions/$ZSH_VERSION ($prefix itself defaults to +/usr/local, as described below). This directory will also be compiled into +the shell as the default directory for the variable $fpath/$FPATH. You can +override it with --enable-fndir=directory; --disable-fndir or +--enable-fndir=no will turn off both installation of functions and the +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 FUNCTIONS_INSTALL, either when running configure (e.g. diff --git a/configure.in b/configure.in index 1b9293440..5b9a330d2 100644 --- a/configure.in +++ b/configure.in @@ -214,10 +214,10 @@ undefine([fndir])dnl AC_ARG_ENABLE(fndir, [ --enable-fndir=DIR where functions go (default DATADIR/zsh/functions)], [if test $enableval = yes; then - fndir=${datadir}/${tzsh_name}/functions + fndir=${datadir}/${tzsh_name}/functions/${VERSION} else fndir="$enableval" -fi], [fndir=${datadir}/${tzsh_name}/functions]) +fi], [fndir=${datadir}/${tzsh_name}/functions/${VERSION}]) undefine([function_subdirs]) AC_ARG_ENABLE(function-subdirs, |