source: postlfs/shells/zsh.xml@ bffe904

10.0 10.1 11.0 11.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind krejzi/svn lazarus nosym perl-modules qt5new trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since bffe904 was bffe904, checked in by Fernando de Oliveira <fernando@…>, 8 years ago

Update to zsh-5.0.7.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@14554 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.9 KB
Line 
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://www.zsh.org/pub/zsh-&zsh-version;.tar.bz2">
8 <!ENTITY zsh-download-ftp " ">
9 <!ENTITY zsh-md5sum "1cd396ce17952de50b8a89980d617f0a">
10 <!ENTITY zsh-size "3.1 MB">
11 <!ENTITY zsh-buildsize "63 MB (includes installing documentation - additional 1 MB for PDF documentation)">
12 <!ENTITY zsh-time "0.9 SBU (additional less than 0.1 SBU for PDF documentation and additional 0.2 SBU for the tests)">
13
14 <!ENTITY zsh-doc-md5sum "ec04d46211a20281778ddbbde9aa680f">
15 <!ENTITY zsh-doc-size "2.9 MB">
16]>
17
18<sect1 id="zsh" xreflabel="zsh-&zsh-version;">
19 <?dbhtml filename="zsh.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>zsh-&zsh-version;</title>
27
28 <indexterm zone="zsh">
29 <primary sortas="a-zsh">zsh</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to zsh</title>
34
35 <para>The <application>zsh</application> package contains a command
36 interpreter (shell) usable as an interactive login shell and as
37 a shell script command processor. Of the standard shells,
38 <application>zsh</application> most closely resembles
39 <application>ksh</application> but includes many enhancements.</para>
40
41 &lfs76_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&zsh-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&zsh-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &zsh-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &zsh-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &zsh-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &zsh-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing="compact">
67 <listitem>
68 <para>Optional Documentation: <ulink
69 url="http://www.zsh.org/pub/zsh-&zsh-version;-doc.tar.bz2"/></para>
70 </listitem>
71 <listitem>
72 <para>Documentation MD5 sum: &zsh-doc-md5sum;</para>
73 </listitem>
74 <listitem>
75 <para>Documentation download size: &zsh-doc-size;</para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">zsh Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Optional</bridgehead>
82 <para role="optional">
83 <xref linkend="libcap-pam"/>,
84 <xref linkend="pcre"/>, and
85 <xref linkend="valgrind"/>,
86 </para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/zsh"/></para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of zsh</title>
95
96 <para>If you downloaded the optional documentation, unpack it with
97 the following command:</para>
98
99<screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
100
101<!-- <note>
102 <para>
103 Using a script to build with "su -c script" may produce a funny
104 configure error message: "no controlling tty". If this happens, add
105 the switch -\-with-tcsetpgrp to configure.
106 </para>
107 </note>
108-->
109 <para>Install <application>zsh</application> by running the following
110 commands:</para>
111
112<screen><userinput>./configure --prefix=/usr \
113 --bindir=/bin \
114 --sysconfdir=/etc/zsh \
115 --enable-etcdir=/etc/zsh &amp;&amp;
116make &amp;&amp;
117
118makeinfo Doc/zsh.texi --html -o Doc/html &amp;&amp;
119makeinfo Doc/zsh.texi --html --no-split --no-headers \
120 -o Doc/zsh.html &amp;&amp;
121makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
122
123 <para>If you have <xref linkend="texlive"/>
124 installed, you can build PDF format of the documentation by issuing
125 the following command:</para>
126
127<screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf</userinput></screen>
128
129 <para>To test the results, issue: <command>make check</command>.</para>
130
131 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
132
133<screen role="root"><userinput>make install &amp;&amp;
134make infodir=/usr/share/info install.info
135
136install -v -m755 -d /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
137install -v -m644 Doc/html/* \
138 /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
139install -v -m644 Doc/zsh.{html,txt} \
140 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
141
142 <para>If you downloaded the optional documentation, install it by issuing
143 the following commands as the
144 <systemitem class="username">root</systemitem> user:</para>
145
146<screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &amp;&amp;
147install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
148
149 <para>If you built the PDF format of the documentation, install
150 it by issuing the following command as the
151 <systemitem class="username">root</systemitem> user:</para>
152
153<screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
154 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
155
156 </sect2>
157
158 <sect2 role="commands">
159 <title>Command Explanations</title>
160
161 <para><parameter>--sysconfdir=/etc/zsh</parameter> and
162 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
163 used so that all the <application>zsh</application> configuration files
164 are consolidated into the <filename class='directory'>/etc/zsh</filename>
165 directory. Omit these parameters if you wish to retain historical
166 compatibility by having all the files located in the
167 <filename class='directory'>/etc</filename> directory.</para>
168
169 <para><parameter>--bindir=/bin</parameter>: This parameter places the
170 <command>zsh</command> binaries into the root filesystem.</para>
171
172 <para><option>--enable-cap</option>: This option enables
173 POSIX capabilities.</para>
174
175 <para><option>--disable-gdbm</option>: This option disables the
176 use of the <application>GDBM</application> library.</para>
177
178 <para><option>--enable-pcre</option>: This option allows zsh to use
179 the <application>PCRE</application> regular expression library in shell
180 builtins.</para>
181
182 <sect3 id="mountpoints">
183 <title>Multiple partitions</title>
184
185 <para>Linking <application>zsh</application> dynamically against
186 <application>pcre</application> and/or <application>gdbm</application>
187 produces runtime dependencies on <filename class='libraryfile'>
188 libpcre.so</filename> and/or <filename class='libraryfile'>libgdbm.so
189 </filename>respectively, which both reside in
190 <filename class='directory'>/usr</filename> hierarchy. If
191 <filename class='directory'>/usr</filename> is a separate mount point
192 and <application>zsh</application> needs to be available in boot time,
193 then its supporting libraries should be in
194 <filename class='directory'>/lib</filename> too. You can move the
195 libraries as follows:</para>
196
197<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
198ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
199
200mv -v /usr/lib/libgdbm.so.* /lib &amp;&amp;
201ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so</userinput>
202</screen>
203
204 <para>Alternatively you can statically link <application>zsh</application>
205 against <application>pcre</application> and <application>gdbm</application>
206 if you modify the <filename>config.modules</filename> file (you need first
207 to run configure to generate it).</para>
208
209 </sect3>
210
211 </sect2>
212
213 <sect2 role="configuration">
214 <title>Configuring zsh</title>
215
216 <sect3 id="zsh-config">
217 <title>Config Files</title>
218
219 <para>There are a whole host of configuration files for
220 <application>zsh</application> including
221 <filename>/etc/zsh/zshenv</filename>,
222 <filename>/etc/zsh/zprofile</filename>,
223 <filename>/etc/zsh/zshrc</filename>,
224 <filename>/etc/zsh/zlogin</filename> and
225 <filename>/etc/zsh/zlogout</filename>.
226 You can find more information on these in the <filename>zsh(1)</filename>
227 and related manual pages.</para>
228
229 <para>
230 The first time zsh is executed, you will be prompted by messages asking
231 several questions. The answers will be used to create a
232 <filename>~/.zshrc</filename> file. If you wish to run these questions
233 again, run <command>zsh
234 /usr/share/zsh/&zsh-version;/functions/zsh-newuser-install -f</command>.
235 </para>
236
237 <para>
238 There are several built-in advanced prompts. In the
239 <command>zsh</command> shell, start advanced prompt support with
240 <command>autoload -U promptinit</command>, then
241 <command>promptinit</command>. Available prompt names are listed with
242 <command>prompt -l</command>. Select a particular one with
243 <command>prompt <literal>&lt;prompt-name&gt;</literal></command>. Display all available
244 prompts with <command>prompt -p</command>. Except for the list and
245 display commands above, you can insert the other ones in
246 <filename>~/.zshrc</filename> to be automatically executed at
247 shell start, with the prompt you chose.
248 </para>
249
250 <indexterm zone="zsh zsh-config">
251 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
252 </indexterm>
253
254 <indexterm zone="zsh zsh-config">
255 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
256 </indexterm>
257
258 <indexterm zone="zsh zsh-config">
259 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
260 </indexterm>
261
262 <indexterm zone="zsh zsh-config">
263 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
264 </indexterm>
265
266 <indexterm zone="zsh zsh-config">
267 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
268 </indexterm>
269
270 </sect3>
271
272 <sect3>
273 <title>Configuration Information</title>
274
275 <para>Update <filename>/etc/shells</filename> to include the
276 <application>zsh</application> shell program names (as the
277 <systemitem class="username">root</systemitem> user):</para>
278
279<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
280<literal>/bin/zsh
281/bin/zsh-&zsh-version;</literal>
282EOF</userinput></screen>
283
284 </sect3>
285
286 </sect2>
287
288 <sect2 role="content">
289 <title>Contents</title>
290
291 <segmentedlist>
292 <segtitle>Installed Programs</segtitle>
293 <segtitle>Installed Libraries</segtitle>
294 <segtitle>Installed Directories</segtitle>
295
296 <seglistitem>
297 <seg>zsh (hardlink to zsh-&zsh-version;) and zsh-&zsh-version;</seg>
298 <seg>Numerous plugin helper modules under
299 /usr/lib/zsh/&zsh-version;/</seg>
300 <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
301 /usr/share/zsh</seg>
302 </seglistitem>
303 </segmentedlist>
304
305 <variablelist>
306 <bridgehead renderas="sect3">Short Description</bridgehead>
307 <?dbfo list-presentation="list"?>
308 <?dbhtml list-presentation="table"?>
309
310 <varlistentry id="zsh-prog">
311 <term><command>zsh</command></term>
312 <listitem>
313 <para>is a shell which has command-line editing, built-in spelling
314 correction, programmable command completion, shell functions (with
315 autoloading), a history mechanism, and a host of other features.</para>
316 <indexterm zone="zsh zsh-prog">
317 <primary sortas="b-zsh">zsh</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 </variablelist>
323
324 </sect2>
325
326</sect1>
Note: See TracBrowser for help on using the repository browser.