1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY zsh-download-http "http://downloads.sourceforge.net/zsh/zsh-&zsh-version;.tar.bz2">
|
---|
8 | <!ENTITY zsh-download-ftp " ">
|
---|
9 | <!ENTITY zsh-md5sum "db0d4b71da8e5877fa1e29d4cea38b8c">
|
---|
10 | <!ENTITY zsh-size "2.5 MB">
|
---|
11 | <!ENTITY zsh-buildsize "49 MB (includes installing all documentation)">
|
---|
12 | <!ENTITY zsh-time "0.6 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY zsh-doc-md5sum "2edea09b823ffa7528dbd447485630c9">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="zsh" xreflabel="ZSH-&zsh-version;">
|
---|
18 | <?dbhtml filename="zsh.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>ZSH-&zsh-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="zsh">
|
---|
28 | <primary sortas="a-ZSH">ZSH</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to ZSH</title>
|
---|
33 |
|
---|
34 | <para>The <application>ZSH</application> package contains a command
|
---|
35 | interpreter (shell) usable as an interactive login shell and as
|
---|
36 | a shell script command processor. Of the standard shells,
|
---|
37 | <application>ZSH</application> most closely resembles
|
---|
38 | <application>KSH</application> but includes many enhancements.</para>
|
---|
39 |
|
---|
40 | <note>
|
---|
41 | <para>This version of <application>ZSH</application> is a development
|
---|
42 | release. The BLFS staff has determined that it provides a stable
|
---|
43 | program which works properly with multibyte locales (e.g., UTF-8).
|
---|
44 | To find the current stable release, refer to the
|
---|
45 | <ulink url="http://www.zsh.org/">ZSH home page</ulink> and compile
|
---|
46 | <application>ZSH</application> with the same instructions.</para>
|
---|
47 | </note>
|
---|
48 |
|
---|
49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
50 | <itemizedlist spacing="compact">
|
---|
51 | <listitem>
|
---|
52 | <para>Download (HTTP): <ulink url="&zsh-download-http;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download (FTP): <ulink url="&zsh-download-ftp;"/></para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download MD5 sum: &zsh-md5sum;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Download size: &zsh-size;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated disk space required: &zsh-buildsize;</para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>Estimated build time: &zsh-time;</para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
72 | <itemizedlist spacing="compact">
|
---|
73 | <listitem>
|
---|
74 | <para>Optional Documentation: <ulink
|
---|
75 | url="http://downloads.sourceforge.net/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
|
---|
76 | </listitem>
|
---|
77 | <listitem>
|
---|
78 | <para>MD5 sum: &zsh-doc-md5sum;</para>
|
---|
79 | </listitem>
|
---|
80 | </itemizedlist>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect3">ZSH Dependencies</bridgehead>
|
---|
83 |
|
---|
84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
85 | <para role="optional"><xref linkend="pcre"/> and
|
---|
86 | <ulink url="http://packages.debian.org/stable/source/libcap">libcap</ulink>
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <para condition="html" role="usernotes">User Notes:
|
---|
90 | <ulink url="&blfs-wiki;/zsh"/></para>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | <sect2 role="installation">
|
---|
95 | <title>Installation of ZSH</title>
|
---|
96 |
|
---|
97 | <para>If you downloaded the optional documentation, unpack it with
|
---|
98 | the following command:</para>
|
---|
99 |
|
---|
100 | <screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
|
---|
101 |
|
---|
102 | <para>Install <application>ZSH</application> by running the following
|
---|
103 | commands:</para>
|
---|
104 |
|
---|
105 | <screen><userinput>./configure --prefix=/usr \
|
---|
106 | --bindir=/bin \
|
---|
107 | --sysconfdir=/etc/zsh \
|
---|
108 | --enable-etcdir=/etc/zsh &&
|
---|
109 | make</userinput></screen>
|
---|
110 |
|
---|
111 | <para>If you have <xref linkend="tetex"/> installed, you can build
|
---|
112 | additional formats of the documentation by issuing any or all of
|
---|
113 | the following commands:</para>
|
---|
114 |
|
---|
115 | <screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf &&
|
---|
116 | texi2html Doc/zsh.texi --output=Doc/zsh_1file_t.html &&
|
---|
117 | makeinfo Doc/zsh.texi --html --no-split --no-headers \
|
---|
118 | -o Doc/zsh_1file_m.html &&
|
---|
119 | makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
|
---|
120 |
|
---|
121 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
122 |
|
---|
123 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
124 |
|
---|
125 | <screen role="root"><userinput>make install &&
|
---|
126 | make infodir=/usr/share/info install.info</userinput></screen>
|
---|
127 |
|
---|
128 | <para>If you downloaded the optional documentation, install it by issuing
|
---|
129 | the following commands as the
|
---|
130 | <systemitem class="username">root</systemitem> user:</para>
|
---|
131 |
|
---|
132 | <screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &&
|
---|
133 | install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
134 |
|
---|
135 | <para>If you built any additional formats of the documentation, install
|
---|
136 | them by issuing the following command as the
|
---|
137 | <systemitem class="username">root</systemitem> user:</para>
|
---|
138 |
|
---|
139 | <screen role="root"><userinput>install -v -m644 Doc/{zsh_1file*,*.{pdf,txt}} \
|
---|
140 | /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
141 |
|
---|
142 | </sect2>
|
---|
143 |
|
---|
144 | <sect2 role="commands">
|
---|
145 | <title>Command Explanations</title>
|
---|
146 |
|
---|
147 | <para><parameter>--sysconfdir=/etc/zsh</parameter> and
|
---|
148 | <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
|
---|
149 | used so that all the <application>ZSH</application> configuration files
|
---|
150 | are consolidated into the <filename class='directory'>/etc/zsh</filename>
|
---|
151 | directory. Omit these parameters if you wish to retain historical
|
---|
152 | compatibility by having all the files located in the
|
---|
153 | <filename class='directory'>/etc</filename> directory.</para>
|
---|
154 |
|
---|
155 | <para><parameter>--bindir=/bin</parameter>: This parameter places the
|
---|
156 | <command>zsh</command> binaries into the root filesystem.</para>
|
---|
157 |
|
---|
158 | <para><parameter>--enable-cap</parameter>: This parameter enables
|
---|
159 | POSIX capabilities.</para>
|
---|
160 |
|
---|
161 | <para><parameter>--enable-pcre</parameter>: This parameter allows to use
|
---|
162 | the <application>PCRE</application> regular expression library in shell
|
---|
163 | builtins. Note: Linking <application>ZSH</application> dynamically against
|
---|
164 | <application>PCRE</application>, produces a runtime dependency on
|
---|
165 | <filename class='libraryfile'>libpcre.so</filename>. If
|
---|
166 | <filename class='directory'>/usr</filename> is a separate mount point and
|
---|
167 | <command>zsh</command> needs to be available at boot time, either you
|
---|
168 | have to statically link <application>ZSH</application> against
|
---|
169 | <application>PCRE</application> (you can examine the
|
---|
170 | <filename>config.modules</filename> file on how to link statically the
|
---|
171 | module), or move the library to <filename class='directory'>/lib</filename>
|
---|
172 | as follows:</para>
|
---|
173 |
|
---|
174 | <screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib/ &&
|
---|
175 | ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
|
---|
176 |
|
---|
177 | </sect2>
|
---|
178 |
|
---|
179 | <sect2 role="configuration">
|
---|
180 | <title>Configuring ZSH</title>
|
---|
181 |
|
---|
182 | <sect3 id="zsh-config">
|
---|
183 | <title>Config Files</title>
|
---|
184 |
|
---|
185 | <para>There are a whole host of configuration files for
|
---|
186 | <application>ZSH</application> including
|
---|
187 | <filename>/etc/zsh/zshenv</filename>,
|
---|
188 | <filename>/etc/zsh/zprofile</filename>,
|
---|
189 | <filename>/etc/zsh/zshrc</filename>,
|
---|
190 | <filename>/etc/zsh/zlogin</filename> and
|
---|
191 | <filename>/etc/zsh/zlogout</filename>.
|
---|
192 | You can find more information on these in the <filename>zsh(1)</filename>
|
---|
193 | and related manual pages.</para>
|
---|
194 |
|
---|
195 | <indexterm zone="zsh zsh-config">
|
---|
196 | <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
|
---|
197 | </indexterm>
|
---|
198 |
|
---|
199 | <indexterm zone="zsh zsh-config">
|
---|
200 | <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
|
---|
201 | </indexterm>
|
---|
202 |
|
---|
203 | <indexterm zone="zsh zsh-config">
|
---|
204 | <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
|
---|
205 | </indexterm>
|
---|
206 |
|
---|
207 | <indexterm zone="zsh zsh-config">
|
---|
208 | <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
|
---|
209 | </indexterm>
|
---|
210 |
|
---|
211 | <indexterm zone="zsh zsh-config">
|
---|
212 | <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
|
---|
213 | </indexterm>
|
---|
214 |
|
---|
215 | </sect3>
|
---|
216 |
|
---|
217 | <sect3>
|
---|
218 | <title>Configuration Information</title>
|
---|
219 |
|
---|
220 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
221 | <application>ZSH</application> shell program names (as the
|
---|
222 | <systemitem class="username">root</systemitem> user):</para>
|
---|
223 |
|
---|
224 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
225 | <literal>/bin/zsh
|
---|
226 | /bin/zsh-&zsh-version;</literal>
|
---|
227 | EOF</userinput></screen>
|
---|
228 |
|
---|
229 | </sect3>
|
---|
230 |
|
---|
231 | </sect2>
|
---|
232 |
|
---|
233 | <sect2 role="content">
|
---|
234 | <title>Contents</title>
|
---|
235 |
|
---|
236 | <segmentedlist>
|
---|
237 | <segtitle>Installed Programs</segtitle>
|
---|
238 | <segtitle>Installed Libraries</segtitle>
|
---|
239 | <segtitle>Installed Directories</segtitle>
|
---|
240 |
|
---|
241 | <seglistitem>
|
---|
242 | <seg>zsh and zsh-&zsh-version;</seg>
|
---|
243 | <seg>Numerous plugin helper modules</seg>
|
---|
244 | <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
|
---|
245 | /usr/share/zsh</seg>
|
---|
246 | </seglistitem>
|
---|
247 | </segmentedlist>
|
---|
248 |
|
---|
249 | <variablelist>
|
---|
250 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
251 | <?dbfo list-presentation="list"?>
|
---|
252 | <?dbhtml list-presentation="table"?>
|
---|
253 |
|
---|
254 | <varlistentry id="zsh-prog">
|
---|
255 | <term><command>zsh</command></term>
|
---|
256 | <listitem>
|
---|
257 | <para>is a shell which has command-line editing, built-in spelling
|
---|
258 | correction, programmable command completion, shell functions (with
|
---|
259 | autoloading), a history mechanism, and a host of other features.</para>
|
---|
260 | <indexterm zone="zsh zsh-prog">
|
---|
261 | <primary sortas="b-zsh">zsh</primary>
|
---|
262 | </indexterm>
|
---|
263 | </listitem>
|
---|
264 | </varlistentry>
|
---|
265 |
|
---|
266 | </variablelist>
|
---|
267 |
|
---|
268 | </sect2>
|
---|
269 |
|
---|
270 | </sect1>
|
---|