2004-06-11 15:06:47 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-11 15:06:47 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2008-10-13 22:49:44 +08:00
|
|
|
<!ENTITY zsh-download-http "&sourceforge-repo;/zsh/zsh-&zsh-version;.tar.bz2">
|
2005-02-05 05:24:31 +08:00
|
|
|
<!ENTITY zsh-download-ftp " ">
|
2009-07-11 20:55:06 +08:00
|
|
|
<!ENTITY zsh-md5sum "74c5b275544400082a1cde806c98682a">
|
|
|
|
<!ENTITY zsh-size "2.7 MB">
|
2008-03-06 01:19:23 +08:00
|
|
|
<!ENTITY zsh-buildsize "49 MB (includes installing all documentation)">
|
2008-04-07 04:09:17 +08:00
|
|
|
<!ENTITY zsh-time "0.8 SBU">
|
2007-01-22 12:52:13 +08:00
|
|
|
|
2008-12-20 16:05:24 +08:00
|
|
|
<!ENTITY zsh-doc-md5sum "b3a026cf02471b66454a2b241a4d92a4">
|
2004-06-11 15:06:47 +08:00
|
|
|
]>
|
|
|
|
|
2005-01-26 03:21:25 +08:00
|
|
|
<sect1 id="zsh" xreflabel="ZSH-&zsh-version;">
|
2005-05-15 01:13:56 +08:00
|
|
|
<?dbhtml filename="zsh.html"?>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>ZSH-&zsh-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="zsh">
|
|
|
|
<primary sortas="a-ZSH">ZSH</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to ZSH</title>
|
|
|
|
|
|
|
|
<para>The <application>ZSH</application> package contains a command
|
|
|
|
interpreter (shell) usable as an interactive login shell and as
|
|
|
|
a shell script command processor. Of the standard shells,
|
|
|
|
<application>ZSH</application> most closely resembles
|
|
|
|
<application>KSH</application> but includes many enhancements.</para>
|
|
|
|
|
2008-03-06 01:19:23 +08:00
|
|
|
<note>
|
|
|
|
<para>This version of <application>ZSH</application> is a development
|
|
|
|
release. The BLFS staff has determined that it provides a stable
|
|
|
|
program which works properly with multibyte locales (e.g., UTF-8).
|
2008-03-07 03:05:45 +08:00
|
|
|
To find the current stable release, refer to the
|
2008-03-06 01:19:23 +08:00
|
|
|
<ulink url="http://www.zsh.org/">ZSH home page</ulink> and compile
|
|
|
|
<application>ZSH</application> with the same instructions.</para>
|
|
|
|
</note>
|
2007-01-22 12:52:13 +08:00
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&zsh-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&zsh-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &zsh-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &zsh-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &zsh-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &zsh-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2007-01-22 12:52:13 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
2007-01-31 04:24:11 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2007-01-22 12:52:13 +08:00
|
|
|
<para>Optional Documentation: <ulink
|
2008-10-13 22:49:44 +08:00
|
|
|
url="&sourceforge-repo;/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
|
2007-01-22 12:52:13 +08:00
|
|
|
</listitem>
|
2007-01-31 04:24:11 +08:00
|
|
|
<listitem>
|
2007-01-22 12:52:13 +08:00
|
|
|
<para>MD5 sum: &zsh-doc-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
<bridgehead renderas="sect3">ZSH Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2008-03-06 01:19:23 +08:00
|
|
|
<para role="optional"><xref linkend="pcre"/> and
|
2010-03-24 21:34:56 +08:00
|
|
|
<ulink url="http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/">libcap2</ulink>
|
2008-03-06 01:19:23 +08:00
|
|
|
</para>
|
2005-05-15 01:13:56 +08:00
|
|
|
|
2006-04-11 02:38:22 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/zsh"/></para>
|
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of ZSH</title>
|
|
|
|
|
2007-10-16 19:56:37 +08:00
|
|
|
<para>If you downloaded the optional documentation, unpack it with
|
|
|
|
the following command:</para>
|
|
|
|
|
|
|
|
<screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
|
2007-01-22 12:52:13 +08:00
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
<para>Install <application>ZSH</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
2007-01-22 12:52:13 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2008-03-06 01:19:23 +08:00
|
|
|
--bindir=/bin \
|
2007-01-22 12:52:13 +08:00
|
|
|
--sysconfdir=/etc/zsh \
|
|
|
|
--enable-etcdir=/etc/zsh &&
|
2005-05-15 01:13:56 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2008-05-09 21:00:42 +08:00
|
|
|
<para>If you have <xref linkend="tetex"/> installed, you can build
|
|
|
|
additional formats of the documentation by issuing any or all of
|
|
|
|
the following commands:</para>
|
2007-01-22 12:52:13 +08:00
|
|
|
|
|
|
|
<screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf &&
|
|
|
|
texi2html Doc/zsh.texi --output=Doc/zsh_1file_t.html &&
|
|
|
|
makeinfo Doc/zsh.texi --html --no-split --no-headers \
|
|
|
|
-o Doc/zsh_1file_m.html &&
|
|
|
|
makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
|
|
|
|
|
2005-06-07 09:28:04 +08:00
|
|
|
<para>To test the results, issue: <command>make check</command>.</para>
|
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2005-06-07 09:28:04 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2007-01-22 12:52:13 +08:00
|
|
|
make infodir=/usr/share/info install.info</userinput></screen>
|
|
|
|
|
|
|
|
<para>If you downloaded the optional documentation, install it by issuing
|
|
|
|
the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &&
|
2008-03-06 01:19:23 +08:00
|
|
|
install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
2007-01-22 12:52:13 +08:00
|
|
|
|
|
|
|
<para>If you built any additional formats of the documentation, install
|
|
|
|
them by issuing the following command as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m644 Doc/{zsh_1file*,*.{pdf,txt}} \
|
|
|
|
/usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2007-01-31 04:24:11 +08:00
|
|
|
|
2007-01-22 12:52:13 +08:00
|
|
|
<para><parameter>--sysconfdir=/etc/zsh</parameter> and
|
|
|
|
<parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
|
|
|
|
used so that all the <application>ZSH</application> configuration files
|
|
|
|
are consolidated into the <filename class='directory'>/etc/zsh</filename>
|
|
|
|
directory. Omit these parameters if you wish to retain historical
|
|
|
|
compatibility by having all the files located in the
|
|
|
|
<filename class='directory'>/etc</filename> directory.</para>
|
2008-05-09 20:42:27 +08:00
|
|
|
|
2008-05-09 21:00:42 +08:00
|
|
|
<para><parameter>--bindir=/bin</parameter>: This parameter places the
|
2008-03-06 01:19:23 +08:00
|
|
|
<command>zsh</command> binaries into the root filesystem.</para>
|
|
|
|
|
|
|
|
<para><parameter>--enable-cap</parameter>: This parameter enables
|
|
|
|
POSIX capabilities.</para>
|
|
|
|
|
2009-06-28 21:49:33 +08:00
|
|
|
<para><parameter>--disable-gdbm</parameter>: This parameter disables the
|
|
|
|
use of the <application>GDBM</application> library.</para>
|
|
|
|
|
2008-03-06 01:19:23 +08:00
|
|
|
<para><parameter>--enable-pcre</parameter>: This parameter allows to use
|
|
|
|
the <application>PCRE</application> regular expression library in shell
|
2009-06-28 21:49:33 +08:00
|
|
|
builtins.</para>
|
2010-04-22 03:10:06 +08:00
|
|
|
|
2009-06-28 21:49:33 +08:00
|
|
|
<sect3 id="mountpoints">
|
|
|
|
<title>Multiple partitions</title>
|
2010-04-22 03:10:06 +08:00
|
|
|
|
2009-06-28 21:49:33 +08:00
|
|
|
<para>Linking <application>ZSH</application> dynamically against
|
|
|
|
<application>PCRE</application> and/or <application>GDBM</application>
|
|
|
|
produces runtime dependencies on <filename class='libraryfile'>
|
|
|
|
libpcre.so</filename> and/or <filename class='libraryfile'>libgdbm.so
|
|
|
|
</filename>respectively, which both reside in
|
|
|
|
<filename class='directory'>/usr</filename> hierarchy. If
|
|
|
|
<filename class='directory'>/usr</filename> is a separate mount point
|
|
|
|
and <application>ZSH</application> needs to be available in boot time,
|
|
|
|
then its supporting libraries should be in
|
|
|
|
<filename class='directory'>/lib</filename> too. You can move the
|
|
|
|
libraries as follows:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib &&
|
|
|
|
ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
|
|
|
|
|
|
|
|
mv -v /usr/lib/libgdbm.so.* /lib &&
|
|
|
|
ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so</userinput>
|
|
|
|
</screen>
|
|
|
|
|
2010-04-22 03:10:06 +08:00
|
|
|
<para>Alternatively you can statically link <application>ZSH</application>
|
2009-06-28 21:49:33 +08:00
|
|
|
against <application>PCRE</application> and <application>GDBM</application>
|
|
|
|
if you modify the <filename>config.modules</filename> file (you need first
|
|
|
|
to run configure to generate it).</para>
|
|
|
|
|
|
|
|
</sect3>
|
2009-06-28 14:56:02 +08:00
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring ZSH</title>
|
|
|
|
|
|
|
|
<sect3 id="zsh-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
|
|
|
<para>There are a whole host of configuration files for
|
2007-01-22 12:52:13 +08:00
|
|
|
<application>ZSH</application> including
|
|
|
|
<filename>/etc/zsh/zshenv</filename>,
|
|
|
|
<filename>/etc/zsh/zprofile</filename>,
|
|
|
|
<filename>/etc/zsh/zshrc</filename>,
|
|
|
|
<filename>/etc/zsh/zlogin</filename> and
|
|
|
|
<filename>/etc/zsh/zlogout</filename>.
|
2005-05-15 01:13:56 +08:00
|
|
|
You can find more information on these in the <filename>zsh(1)</filename>
|
2007-01-22 12:52:13 +08:00
|
|
|
and related manual pages.</para>
|
2005-05-15 01:13:56 +08:00
|
|
|
|
|
|
|
<indexterm zone="zsh zsh-config">
|
2007-01-22 12:52:13 +08:00
|
|
|
<primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
|
2005-05-15 01:13:56 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="zsh zsh-config">
|
2007-01-22 12:52:13 +08:00
|
|
|
<primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
|
2005-05-15 01:13:56 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="zsh zsh-config">
|
2007-01-22 12:52:13 +08:00
|
|
|
<primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
|
2005-05-15 01:13:56 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="zsh zsh-config">
|
2007-01-22 12:52:13 +08:00
|
|
|
<primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
|
2005-05-15 01:13:56 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="zsh zsh-config">
|
2007-01-22 12:52:13 +08:00
|
|
|
<primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
|
2005-05-15 01:13:56 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2005-06-07 09:28:04 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>Update <filename>/etc/shells</filename> to include the
|
|
|
|
<application>ZSH</application> shell program names (as the
|
|
|
|
<systemitem class="username">root</systemitem> user):</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
2008-03-06 01:19:23 +08:00
|
|
|
<literal>/bin/zsh
|
|
|
|
/bin/zsh-&zsh-version;</literal>
|
2005-06-07 09:28:04 +08:00
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2005-06-07 09:28:04 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
2005-05-15 01:13:56 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2007-01-22 12:52:13 +08:00
|
|
|
<seg>zsh and zsh-&zsh-version;</seg>
|
|
|
|
<seg>Numerous plugin helper modules</seg>
|
|
|
|
<seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
|
|
|
|
/usr/share/zsh</seg>
|
2005-05-15 01:13:56 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Description</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="zsh-prog">
|
|
|
|
<term><command>zsh</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a shell which has command-line editing, built-in spelling
|
|
|
|
correction, programmable command completion, shell functions (with
|
|
|
|
autoloading), a history mechanism, and a host of other features.</para>
|
|
|
|
<indexterm zone="zsh zsh-prog">
|
|
|
|
<primary sortas="b-zsh">zsh</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2002-07-15 05:23:10 +08:00
|
|
|
|
2005-05-15 01:13:56 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|