source: postlfs/shells/zsh.xml@ 67d0ff07

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 67d0ff07 was cfd4fa8, checked in by Bruce Dubbs <bdubbs@…>, 15 months ago

Tags

  • Property mode set to 100644
File size: 10.9 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 &lfs113_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 <para condition="html" role="usernotes">User Notes:
112 <ulink url="&blfs-wiki;/zsh"/></para>
113
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of zsh</title>
118
119 <para>
120 If you downloaded the optional documentation, unpack it with
121 the following command:
122 </para>
123
124<screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.xz</userinput></screen>
125
126<!-- <note>
127 <para>
128 Using a script to build with "su -c script" may produce a funny
129 configure error message: "no controlling tty". If this happens, add
130 the switch -\-with-tcsetpgrp to configure.
131 </para>
132 </note>
133-->
134 <para>
135 Install <application>zsh</application> by running the following
136 commands:
137 </para>
138
139<screen><userinput>./configure --prefix=/usr \
140 --sysconfdir=/etc/zsh \
141 --enable-etcdir=/etc/zsh \
142 --enable-cap \
143 --enable-gdbm &amp;&amp;
144make &amp;&amp;
145
146makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt &amp;&amp;
147makeinfo Doc/zsh.texi --html -o Doc/html &amp;&amp;
148makeinfo Doc/zsh.texi --html --no-split --no-headers -o Doc/zsh.html</userinput></screen>
149
150 <para>
151 If you have <xref linkend="texlive"/>
152 installed, you can build PDF format of the documentation by issuing
153 the following command:
154 </para>
155
156<screen remap="doc"><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf</userinput></screen>
157
158 <para>
159 To test the results, issue: <command>make check</command>.
160 </para>
161
162 <para>
163 Now, as the <systemitem class="username">root</systemitem> user:
164 </para>
165
166<screen role="root"><userinput>make install &amp;&amp;
167make infodir=/usr/share/info install.info &amp;&amp;
168
169install -v -m755 -d /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
170install -v -m644 Doc/html/* /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
171install -v -m644 Doc/zsh.{html,txt} /usr/share/doc/zsh-&zsh-version;</userinput></screen>
172
173 <para>
174 If you downloaded the optional documentation, install it by issuing
175 the following commands as the
176 <systemitem class="username">root</systemitem> user:
177 </para>
178
179<screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &amp;&amp;
180install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
181
182 <para>
183 If you built the PDF format of the documentation, install
184 it by issuing the following command as the
185 <systemitem class="username">root</systemitem> user:
186 </para>
187
188<screen role="root"
189 remap="doc"><userinput>install -v -m644 Doc/zsh.pdf /usr/share/doc/zsh-&zsh-version;</userinput></screen>
190
191 </sect2>
192
193 <sect2 role="commands">
194 <title>Command Explanations</title>
195
196 <para>
197 <parameter>--sysconfdir=/etc/zsh</parameter> and
198 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
199 used so that all the <application>zsh</application> configuration files
200 are consolidated into the <filename class='directory'>/etc/zsh</filename>
201 directory. Omit these parameters if you wish to retain historical
202 compatibility by having all the files located in the
203 <filename class='directory'>/etc</filename> directory.
204 </para>
205
206 <para>
207 <parameter>--enable-cap</parameter>: This option enables
208 POSIX capabilities.
209 </para>
210
211 <para>
212 <parameter>--enable-gdbm</parameter>: This option enables the
213 use of the <application>GDBM</application> library.
214 </para>
215
216 <para>
217 <option>--enable-pcre</option>: This option allows zsh to use
218 the <application>PCRE</application> regular expression library in shell
219 builtins.
220 </para>
221 </sect2>
222
223 <sect2 role="configuration">
224 <title>Configuring zsh</title>
225
226 <sect3 id="zsh-config">
227 <title>Config Files</title>
228
229 <para>
230 There are a whole host of configuration files for
231 <application>zsh</application> including
232 <filename>/etc/zsh/zshenv</filename>,
233 <filename>/etc/zsh/zprofile</filename>,
234 <filename>/etc/zsh/zshrc</filename>,
235 <filename>/etc/zsh/zlogin</filename> and
236 <filename>/etc/zsh/zlogout</filename>.
237 You can find more information on these in the
238 <filename>zsh(1)</filename> and related manual pages.
239 </para>
240
241 <para>
242 The first time zsh is executed, you will be prompted by messages asking
243 several questions. The answers will be used to create a
244 <filename>~/.zshrc</filename> file. If you wish to run these questions
245 again, run <command>zsh
246 /usr/share/zsh/&zsh-version;/functions/zsh-newuser-install -f</command>.
247 </para>
248
249 <para>
250 There are several built-in advanced prompts. In the
251 <command>zsh</command> shell, start advanced prompt support with
252 <command>autoload -U promptinit</command>, then
253 <command>promptinit</command>. Available prompt names are listed with
254 <command>prompt -l</command>. Select a particular one with
255 <command>prompt <literal>&lt;prompt-name&gt;</literal></command>.
256 Display all available
257 prompts with <command>prompt -p</command>. Except for the list and
258 display commands above, you can insert the other ones in
259 <filename>~/.zshrc</filename> to be automatically executed at
260 shell start, with the prompt you chose.
261 </para>
262
263 <indexterm zone="zsh zsh-config">
264 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
265 </indexterm>
266
267 <indexterm zone="zsh zsh-config">
268 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
269 </indexterm>
270
271 <indexterm zone="zsh zsh-config">
272 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
273 </indexterm>
274
275 <indexterm zone="zsh zsh-config">
276 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
277 </indexterm>
278
279 <indexterm zone="zsh zsh-config">
280 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
281 </indexterm>
282
283 </sect3>
284
285 <sect3>
286 <title>Configuration Information</title>
287
288 <para>
289 Update <filename>/etc/shells</filename> to include the
290 <application>zsh</application> shell program names (as the
291 <systemitem class="username">root</systemitem> user):
292 </para>
293
294<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
295<literal>/bin/zsh</literal>
296EOF</userinput></screen>
297
298 </sect3>
299
300 </sect2>
301
302 <sect2 role="content">
303 <title>Contents</title>
304
305 <segmentedlist>
306 <segtitle>Installed Programs</segtitle>
307 <segtitle>Installed Libraries</segtitle>
308 <segtitle>Installed Directories</segtitle>
309
310 <seglistitem>
311 <seg>zsh and zsh-&zsh-version; (hardlinked to each other)</seg>
312 <seg>Numerous plugin helper modules under
313 /usr/lib/zsh/&zsh-version;/</seg>
314 <seg>/usr/{lib,share}/zsh and /usr/share/doc/zsh-&zsh-version;</seg>
315 </seglistitem>
316 </segmentedlist>
317
318 <variablelist>
319 <bridgehead renderas="sect3">Short Description</bridgehead>
320 <?dbfo list-presentation="list"?>
321 <?dbhtml list-presentation="table"?>
322
323 <varlistentry id="zsh-prog">
324 <term><command>zsh</command></term>
325 <listitem>
326 <para>
327 is a shell which has command-line editing, built-in spelling
328 correction, programmable command completion, shell functions (with
329 autoloading), a history mechanism, and a host of other features
330 </para>
331 <indexterm zone="zsh zsh-prog">
332 <primary sortas="b-zsh">zsh</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 </variablelist>
338
339 </sect2>
340
341</sect1>
Note: See TracBrowser for help on using the repository browser.