source: postlfs/shells/zsh.xml@ 19023c19

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 19023c19 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
RevLine 
[44f085a]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[44f085a]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[4938dadc]7 <!ENTITY zsh-download-http "http://www.zsh.org/pub/zsh-&zsh-version;.tar.bz2">
[8070ffce]8 <!ENTITY zsh-download-ftp " ">
[36e088d]9 <!ENTITY zsh-md5sum "9829fe8932c25740173a272e8959cf8c">
[4938dadc]10 <!ENTITY zsh-size "3.0 MB">
[36e088d]11 <!ENTITY zsh-buildsize "61 MB (includes installing documentation -
12 additional 2 MB for PDF documentation)">
13 <!ENTITY zsh-time "0.8 SBU">
[6eff6e1]14
[36e088d]15 <!ENTITY zsh-doc-md5sum "2505867639d58726cd09e6884cb7863c">
[44f085a]16]>
17
[f17b2db]18<sect1 id="zsh" xreflabel="zsh-&zsh-version;">
[a6a160b]19 <?dbhtml filename="zsh.html"?>
[f45b1953]20
[a6a160b]21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
[f17b2db]26 <title>zsh-&zsh-version;</title>
[a6a160b]27
28 <indexterm zone="zsh">
[f17b2db]29 <primary sortas="a-zsh">zsh</primary>
[a6a160b]30 </indexterm>
31
32 <sect2 role="package">
[f17b2db]33 <title>Introduction to zsh</title>
[a6a160b]34
[f17b2db]35 <para>The <application>zsh</application> package contains a command
[a6a160b]36 interpreter (shell) usable as an interactive login shell and as
37 a shell script command processor. Of the standard shells,
[f17b2db]38 <application>zsh</application> most closely resembles
39 <application>ksh</application> but includes many enhancements.</para>
[a6a160b]40
[a8f0cdf]41 &lfs74_checked;
[6eff6e1]42
[a6a160b]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
[6eff6e1]65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[29f80ebc]66 <itemizedlist spacing="compact">
67 <listitem>
[6eff6e1]68 <para>Optional Documentation: <ulink
[4938dadc]69 url="http://www.zsh.org/pub/zsh-&zsh-version;-doc.tar.bz2"/></para>
[6eff6e1]70 </listitem>
[29f80ebc]71 <listitem>
[ca17955]72 <para>Documentation MD5 sum: &zsh-doc-md5sum;</para>
[6eff6e1]73 </listitem>
74 </itemizedlist>
75
[f17b2db]76 <bridgehead renderas="sect3">zsh Dependencies</bridgehead>
[a6a160b]77
78 <bridgehead renderas="sect4">Optional</bridgehead>
[ca17955]79 <para role="optional">
80 <xref linkend="pcre"/> and
[68876b7]81 <xref linkend="libcap"/>
[fcf4b970]82 </para>
[a6a160b]83
[3597eb6]84 <para condition="html" role="usernotes">User Notes:
85 <ulink url="&blfs-wiki;/zsh"/></para>
86
[a6a160b]87 </sect2>
88
89 <sect2 role="installation">
[f17b2db]90 <title>Installation of zsh</title>
[a6a160b]91
[98078a6]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>
[6eff6e1]96
[f17b2db]97 <para>Install <application>zsh</application> by running the following
[a6a160b]98 commands:</para>
99
[4938dadc]100<screen><userinput>./configure --prefix=/usr \
[ca17955]101 --bindir=/bin \
[6eff6e1]102 --sysconfdir=/etc/zsh \
[ca17955]103 --enable-etcdir=/etc/zsh &amp;&amp;
104make &amp;&amp;
[a6a160b]105
[ca17955]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;
[6eff6e1]109makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
110
[8aeb474]111 <para>If you have <xref linkend="texlive"/>
[f1e103a]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
[5ef8b741]117 <para>To test the results, issue: <command>make check</command>.</para>
118
[a6a160b]119 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
120
[5ef8b741]121<screen role="root"><userinput>make install &amp;&amp;
[f1e103a]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>
[6eff6e1]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;
[fcf4b970]135install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
[6eff6e1]136
[f1e103a]137 <para>If you built the PDF format of the documentation, install
138 it by issuing the following command as the
[6eff6e1]139 <systemitem class="username">root</systemitem> user:</para>
140
[f1e103a]141<screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
[6eff6e1]142 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
143
144 </sect2>
145
146 <sect2 role="commands">
147 <title>Command Explanations</title>
[29f80ebc]148
[6eff6e1]149 <para><parameter>--sysconfdir=/etc/zsh</parameter> and
150 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
[f17b2db]151 used so that all the <application>zsh</application> configuration files
[6eff6e1]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>
[fd7e0ed6]156
[410e228b]157 <para><parameter>--bindir=/bin</parameter>: This parameter places the
[fcf4b970]158 <command>zsh</command> binaries into the root filesystem.</para>
159
[4938dadc]160 <para><option>--enable-cap</option>: This option enables
[fcf4b970]161 POSIX capabilities.</para>
162
[4938dadc]163 <para><option>--disable-gdbm</option>: This option disables the
[caa0c15]164 use of the <application>GDBM</application> library.</para>
165
[4938dadc]166 <para><option>--enable-pcre</option>: This option allows to use
[f17b2db]167 the <application>pcre</application> regular expression library in shell
[caa0c15]168 builtins.</para>
[a41f643]169
[caa0c15]170 <sect3 id="mountpoints">
171 <title>Multiple partitions</title>
[a41f643]172
[f17b2db]173 <para>Linking <application>zsh</application> dynamically against
174 <application>pcre</application> and/or <application>gdbm</application>
[caa0c15]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
[f17b2db]180 and <application>zsh</application> needs to be available in boot time,
[caa0c15]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
[f17b2db]192 <para>Alternatively you can statically link <application>zsh</application>
193 against <application>pcre</application> and <application>gdbm</application>
[caa0c15]194 if you modify the <filename>config.modules</filename> file (you need first
195 to run configure to generate it).</para>
196
197 </sect3>
[b7c5379]198
[a6a160b]199 </sect2>
200
201 <sect2 role="configuration">
[f17b2db]202 <title>Configuring zsh</title>
[a6a160b]203
204 <sect3 id="zsh-config">
205 <title>Config Files</title>
206
207 <para>There are a whole host of configuration files for
[f17b2db]208 <application>zsh</application> including
[6eff6e1]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>.
[a6a160b]214 You can find more information on these in the <filename>zsh(1)</filename>
[6eff6e1]215 and related manual pages.</para>
[a6a160b]216
217 <indexterm zone="zsh zsh-config">
[6eff6e1]218 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
[a6a160b]219 </indexterm>
220
221 <indexterm zone="zsh zsh-config">
[6eff6e1]222 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
[a6a160b]223 </indexterm>
224
225 <indexterm zone="zsh zsh-config">
[6eff6e1]226 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
[a6a160b]227 </indexterm>
228
229 <indexterm zone="zsh zsh-config">
[6eff6e1]230 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
[a6a160b]231 </indexterm>
232
233 <indexterm zone="zsh zsh-config">
[6eff6e1]234 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
[a6a160b]235 </indexterm>
236
237 </sect3>
238
[5ef8b741]239 <sect3>
240 <title>Configuration Information</title>
241
242 <para>Update <filename>/etc/shells</filename> to include the
[f17b2db]243 <application>zsh</application> shell program names (as the
[5ef8b741]244 <systemitem class="username">root</systemitem> user):</para>
245
246<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
[fcf4b970]247<literal>/bin/zsh
248/bin/zsh-&zsh-version;</literal>
[5ef8b741]249EOF</userinput></screen>
250
251 </sect3>
252
[a6a160b]253 </sect2>
254
255 <sect2 role="content">
256 <title>Contents</title>
257
258 <segmentedlist>
[5ef8b741]259 <segtitle>Installed Programs</segtitle>
[a6a160b]260 <segtitle>Installed Libraries</segtitle>
261 <segtitle>Installed Directories</segtitle>
262
263 <seglistitem>
[36e088d]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>
[6eff6e1]267 <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
268 /usr/share/zsh</seg>
[a6a160b]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>
[1aa3a3c]288
[a6a160b]289 </variablelist>
290
291 </sect2>
292
293</sect1>
Note: See TracBrowser for help on using the repository browser.