source: postlfs/shells/zsh.xml@ 7ca69c6a

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 7ca69c6a was 7ca69c6a, checked in by Xi Ruoyao <xry111@…>, 6 months ago

zsh: Remove unused entities

I forgot them when cleaning up the instructions.

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