source: postlfs/shells/zsh.xml@ 06908bf6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.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 06908bf6 was 06908bf6, checked in by Pierre Labastie <pieere@…>, 5 years ago

Add remap="doc", remap="test", or just realign them

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21946 af4574ff-66df-0310-9fd7-8a98e5e911e0

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