source: postlfs/shells/zsh.xml@ 768cf97c

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 768cf97c was 36357196, checked in by Xi Ruoyao <xry111@…>, 2 years ago

zsh: remove an extra comma

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