source: postlfs/shells/zsh.xml@ 36e088d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 36e088d was 36e088d, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to zsh-5.0.4.

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

  • Property mode set to 100644
File size: 10.3 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 "9829fe8932c25740173a272e8959cf8c">
10 <!ENTITY zsh-size "3.0 MB">
11 <!ENTITY zsh-buildsize "61 MB (includes installing documentation -
12 additional 2 MB for PDF documentation)">
13 <!ENTITY zsh-time "0.8 SBU">
14
15 <!ENTITY zsh-doc-md5sum "2505867639d58726cd09e6884cb7863c">
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 &lfs74_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 </itemizedlist>
75
76 <bridgehead renderas="sect3">zsh Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <xref linkend="pcre"/> and
81 <xref linkend="libcap"/>
82 </para>
83
84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/zsh"/></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of zsh</title>
91
92 <para>If you downloaded the optional documentation, unpack it with
93 the following command:</para>
94
95<screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
96
97 <para>Install <application>zsh</application> by running the following
98 commands:</para>
99
100<screen><userinput>./configure --prefix=/usr \
101 --bindir=/bin \
102 --sysconfdir=/etc/zsh \
103 --enable-etcdir=/etc/zsh &amp;&amp;
104make &amp;&amp;
105
106makeinfo Doc/zsh.texi --html -o Doc/html &amp;&amp;
107makeinfo Doc/zsh.texi --html --no-split --no-headers \
108 -o Doc/zsh.html &amp;&amp;
109makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
110
111 <para>If you have <xref linkend="texlive"/>
112 installed, you can build PDF format of the documentation by issuing
113 the following command:</para>
114
115<screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf</userinput></screen>
116
117 <para>To test the results, issue: <command>make check</command>.</para>
118
119 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
120
121<screen role="root"><userinput>make install &amp;&amp;
122make infodir=/usr/share/info install.info
123
124install -v -m755 -d /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
125install -v -m644 Doc/html/* \
126 /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
127install -v -m644 Doc/zsh.{html,txt} \
128 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
129
130 <para>If you downloaded the optional documentation, install it by issuing
131 the following commands as the
132 <systemitem class="username">root</systemitem> user:</para>
133
134<screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &amp;&amp;
135install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
136
137 <para>If you built the PDF format of the documentation, install
138 it by issuing the following command as the
139 <systemitem class="username">root</systemitem> user:</para>
140
141<screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
142 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
143
144 </sect2>
145
146 <sect2 role="commands">
147 <title>Command Explanations</title>
148
149 <para><parameter>--sysconfdir=/etc/zsh</parameter> and
150 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
151 used so that all the <application>zsh</application> configuration files
152 are consolidated into the <filename class='directory'>/etc/zsh</filename>
153 directory. Omit these parameters if you wish to retain historical
154 compatibility by having all the files located in the
155 <filename class='directory'>/etc</filename> directory.</para>
156
157 <para><parameter>--bindir=/bin</parameter>: This parameter places the
158 <command>zsh</command> binaries into the root filesystem.</para>
159
160 <para><option>--enable-cap</option>: This option enables
161 POSIX capabilities.</para>
162
163 <para><option>--disable-gdbm</option>: This option disables the
164 use of the <application>GDBM</application> library.</para>
165
166 <para><option>--enable-pcre</option>: This option allows to use
167 the <application>pcre</application> regular expression library in shell
168 builtins.</para>
169
170 <sect3 id="mountpoints">
171 <title>Multiple partitions</title>
172
173 <para>Linking <application>zsh</application> dynamically against
174 <application>pcre</application> and/or <application>gdbm</application>
175 produces runtime dependencies on <filename class='libraryfile'>
176 libpcre.so</filename> and/or <filename class='libraryfile'>libgdbm.so
177 </filename>respectively, which both reside in
178 <filename class='directory'>/usr</filename> hierarchy. If
179 <filename class='directory'>/usr</filename> is a separate mount point
180 and <application>zsh</application> needs to be available in boot time,
181 then its supporting libraries should be in
182 <filename class='directory'>/lib</filename> too. You can move the
183 libraries as follows:</para>
184
185<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
186ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
187
188mv -v /usr/lib/libgdbm.so.* /lib &amp;&amp;
189ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so</userinput>
190</screen>
191
192 <para>Alternatively you can statically link <application>zsh</application>
193 against <application>pcre</application> and <application>gdbm</application>
194 if you modify the <filename>config.modules</filename> file (you need first
195 to run configure to generate it).</para>
196
197 </sect3>
198
199 </sect2>
200
201 <sect2 role="configuration">
202 <title>Configuring zsh</title>
203
204 <sect3 id="zsh-config">
205 <title>Config Files</title>
206
207 <para>There are a whole host of configuration files for
208 <application>zsh</application> including
209 <filename>/etc/zsh/zshenv</filename>,
210 <filename>/etc/zsh/zprofile</filename>,
211 <filename>/etc/zsh/zshrc</filename>,
212 <filename>/etc/zsh/zlogin</filename> and
213 <filename>/etc/zsh/zlogout</filename>.
214 You can find more information on these in the <filename>zsh(1)</filename>
215 and related manual pages.</para>
216
217 <indexterm zone="zsh zsh-config">
218 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
219 </indexterm>
220
221 <indexterm zone="zsh zsh-config">
222 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
223 </indexterm>
224
225 <indexterm zone="zsh zsh-config">
226 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
227 </indexterm>
228
229 <indexterm zone="zsh zsh-config">
230 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
231 </indexterm>
232
233 <indexterm zone="zsh zsh-config">
234 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
235 </indexterm>
236
237 </sect3>
238
239 <sect3>
240 <title>Configuration Information</title>
241
242 <para>Update <filename>/etc/shells</filename> to include the
243 <application>zsh</application> shell program names (as the
244 <systemitem class="username">root</systemitem> user):</para>
245
246<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
247<literal>/bin/zsh
248/bin/zsh-&zsh-version;</literal>
249EOF</userinput></screen>
250
251 </sect3>
252
253 </sect2>
254
255 <sect2 role="content">
256 <title>Contents</title>
257
258 <segmentedlist>
259 <segtitle>Installed Programs</segtitle>
260 <segtitle>Installed Libraries</segtitle>
261 <segtitle>Installed Directories</segtitle>
262
263 <seglistitem>
264 <seg>zsh (hardlink to zsh-&zsh-version;) and zsh-&zsh-version;</seg>
265 <seg>Numerous plugin helper modules under
266 /usr/lib/zsh/&zsh-version;/</seg>
267 <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
268 /usr/share/zsh</seg>
269 </seglistitem>
270 </segmentedlist>
271
272 <variablelist>
273 <bridgehead renderas="sect3">Short Description</bridgehead>
274 <?dbfo list-presentation="list"?>
275 <?dbhtml list-presentation="table"?>
276
277 <varlistentry id="zsh-prog">
278 <term><command>zsh</command></term>
279 <listitem>
280 <para>is a shell which has command-line editing, built-in spelling
281 correction, programmable command completion, shell functions (with
282 autoloading), a history mechanism, and a host of other features.</para>
283 <indexterm zone="zsh zsh-prog">
284 <primary sortas="b-zsh">zsh</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 </variablelist>
290
291 </sect2>
292
293</sect1>
Note: See TracBrowser for help on using the repository browser.