source: postlfs/shells/zsh.xml@ bd58604

11.0 11.1 11.2 11.3 12.0 12.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 bd58604 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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