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;
|
|
|
|
|
2007-01-16 07:25:53 +08:00
|
|
|
<!ENTITY zsh-download-http "http://downloads.sourceforge.net/zsh/zsh-&zsh-version;.tar.bz2">
|
2005-02-05 05:24:31 +08:00
|
|
|
<!ENTITY zsh-download-ftp " ">
|
2007-01-22 12:52:13 +08:00
|
|
|
<!ENTITY zsh-md5sum "2cefebf742c190cbc611baded825db64">
|
2005-02-05 11:23:15 +08:00
|
|
|
<!ENTITY zsh-size "2.0 MB">
|
2007-01-22 12:52:13 +08:00
|
|
|
<!ENTITY zsh-buildsize "41 MB (includes installing all documentation)">
|
2005-06-07 09:28:04 +08:00
|
|
|
<!ENTITY zsh-time "0.5 SBU">
|
2007-01-22 12:52:13 +08:00
|
|
|
|
|
|
|
<!ENTITY zsh-doc-md5sum "3ca3b7c199db6eb942f2a296e3fad270">
|
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>
|
|
|
|
|
2007-01-22 12:52:13 +08:00
|
|
|
<warning>
|
|
|
|
<para>This version of <application>ZSH</application> does not work
|
|
|
|
properly with multibyte locales (e.g., UTF-8). A development version
|
|
|
|
is available that addresses many, but not all, locale related issues.
|
|
|
|
You can download the development version from the <ulink
|
|
|
|
url="http://sourceforge.net/project/showfiles.php?group_id=4068">
|
|
|
|
ZSH Sourceforge Download Page</ulink> and use the following BLFS
|
|
|
|
instructions to build and install.</para>
|
|
|
|
</warning>
|
|
|
|
|
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
|
|
|
|
url="http://downloads.sourceforge.net/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
|
|
|
|
</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>
|
2005-12-08 02:47:32 +08:00
|
|
|
<para role="optional"><xref linkend="pcre"/></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-01-22 12:52:13 +08:00
|
|
|
<para>If you downloaded the optional documentation, unpack it the same
|
|
|
|
way you would the source tarball. The documentation will unpack into
|
|
|
|
the <filename class='directory'>Doc</filename> directory of the source
|
|
|
|
tree.</para>
|
|
|
|
|
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 \
|
|
|
|
--sysconfdir=/etc/zsh \
|
|
|
|
--enable-etcdir=/etc/zsh &&
|
2005-05-15 01:13:56 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2007-01-22 12:52:13 +08:00
|
|
|
<para>If you downloaded the optional documentation, and you have
|
|
|
|
<xref linkend="tetex"/> installed, you can build additional formats of the
|
|
|
|
documentation by issuing any or all of the following commands:</para>
|
|
|
|
|
|
|
|
<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 &&
|
|
|
|
install -v -m644 Doc/*.{ps,dvi} /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
|
|
|
|
|
|
|
<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>
|
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"
|
|
|
|
<literal>/usr/bin/zsh
|
2007-01-22 12:52:13 +08:00
|
|
|
/usr/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>
|