source: postlfs/shells/zsh.xml@ f0bce38

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f0bce38 was f0bce38, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to unbound-1.9.0.
Update to libdvdread-6.0.1.
Update to zsh-5.7.1.

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

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