source: postlfs/shells/zsh.xml@ fbd04125

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since fbd04125 was fbd04125, checked in by Bruce Dubbs <bdubbs@…>, 10 months ago

Tag all of postlfs except gedit and kate

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