source: postlfs/shells/zsh.xml@ a1f2d184

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules 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 a1f2d184 was 8f1fc267, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Update to gstreamer-1.4.1 and plugins.
Update to zsh-5.0.6.
Update to elfutils-0.160.

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

  • Property mode set to 100644
File size: 12.3 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 "http://www.zsh.org/pub/zsh-&zsh-version;.tar.bz2">
8 <!ENTITY zsh-download-ftp " ">
9 <!ENTITY zsh-md5sum "7150a6abc2aa1a79d81ed9a282594225">
10 <!ENTITY zsh-size "3.1 MB">
11 <!ENTITY zsh-buildsize "64 MB (includes installing documentation - additional 2 MB for PDF documentation)">
12 <!ENTITY zsh-time "0.9 SBU (additional less than 0.1 SBU for PDF documentation and additional 0.2 SBU for the tests)">
13
14 <!ENTITY zsh-doc-md5sum "3333759b5ae9710ceed11b02645a0049">
15 <!ENTITY zsh-doc-size "2.9 MB">
16]>
17
18<sect1 id="zsh" xreflabel="zsh-&zsh-version;">
19 <?dbhtml filename="zsh.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>zsh-&zsh-version;</title>
27
28 <indexterm zone="zsh">
29 <primary sortas="a-zsh">zsh</primary>
30 </indexterm>
31
32 <sect2 role="package">
33 <title>Introduction to zsh</title>
34
35 <para>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.</para>
40
41 &lfs75_checked;
42
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
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing="compact">
67 <listitem>
68 <para>Optional Documentation: <ulink
69 url="http://www.zsh.org/pub/zsh-&zsh-version;-doc.tar.bz2"/></para>
70 </listitem>
71 <listitem>
72 <para>Documentation MD5 sum: &zsh-doc-md5sum;</para>
73 </listitem>
74 <listitem>
75 <para>Documentation download size: &zsh-doc-size;</para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">zsh Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Optional</bridgehead>
82 <para role="optional">
83 <xref linkend="libcap-pam"/>,
84 <xref linkend="pcre"/>, and
85 <xref linkend="valgrind"/>,
86 </para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/zsh"/></para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of zsh</title>
95
96 <para>If you downloaded the optional documentation, unpack it with
97 the following command:</para>
98
99<screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
100
101<!-- <note>
102 <para>
103 Using a script to build with "su -c script" may produce a funny
104 configure error message: "no controlling tty". If this happens, add
105 the switch -\-with-tcsetpgrp to configure.
106 </para>
107 </note>
108-->
109 <para>Install <application>zsh</application> by running the following
110 commands:</para>
111
112<screen><userinput>sed -e '/attr.mdh/ d' -e '/attr.pro/ d' \
113 -e '/include &lt;sys\/xattr.h&gt;/ a\\n#include "attr.mdh"\n#include "attr.pro"' \
114 -i Src/Modules/attr.c &amp;&amp;
115
116./configure --prefix=/usr \
117 --bindir=/bin \
118 --sysconfdir=/etc/zsh \
119 --enable-etcdir=/etc/zsh &amp;&amp;
120make &amp;&amp;
121
122makeinfo Doc/zsh.texi --html -o Doc/html &amp;&amp;
123makeinfo Doc/zsh.texi --html --no-split --no-headers \
124 -o Doc/zsh.html &amp;&amp;
125makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
126
127 <para>If you have <xref linkend="texlive"/>
128 installed, you can build PDF format of the documentation by issuing
129 the following command:</para>
130
131<screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf</userinput></screen>
132
133 <para>To test the results, issue: <command>make check</command>.</para>
134
135 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>make install &amp;&amp;
138make infodir=/usr/share/info install.info
139
140install -v -m755 -d /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
141install -v -m644 Doc/html/* \
142 /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
143install -v -m644 Doc/zsh.{html,txt} \
144 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
145
146 <para>If you downloaded the optional documentation, install it by issuing
147 the following commands as the
148 <systemitem class="username">root</systemitem> user:</para>
149
150<screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &amp;&amp;
151install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
152
153 <para>If you built the PDF format of the documentation, install
154 it by issuing the following command as the
155 <systemitem class="username">root</systemitem> user:</para>
156
157<screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
158 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
159
160 </sect2>
161
162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
165 <para><command>sed ... Src/Modules/attr.c</command>: Fix
166 <application>zsh-&zsh-version;</application> to build with
167 <application>libcap-2.x</application> (x &gt; 23).</para>
168
169 <para><parameter>--sysconfdir=/etc/zsh</parameter> and
170 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
171 used so that all the <application>zsh</application> configuration files
172 are consolidated into the <filename class='directory'>/etc/zsh</filename>
173 directory. Omit these parameters if you wish to retain historical
174 compatibility by having all the files located in the
175 <filename class='directory'>/etc</filename> directory.</para>
176
177 <para><parameter>--bindir=/bin</parameter>: This parameter places the
178 <command>zsh</command> binaries into the root filesystem.</para>
179
180 <para><option>--enable-cap</option>: This option enables
181 POSIX capabilities.</para>
182
183 <para><option>--disable-gdbm</option>: This option disables the
184 use of the <application>GDBM</application> library.</para>
185
186 <para><option>--enable-pcre</option>: This option allows zsh to use
187 the <application>PCRE</application> regular expression library in shell
188 builtins.</para>
189
190 <sect3 id="mountpoints">
191 <title>Multiple partitions</title>
192
193 <para>Linking <application>zsh</application> dynamically against
194 <application>pcre</application> and/or <application>gdbm</application>
195 produces runtime dependencies on <filename class='libraryfile'>
196 libpcre.so</filename> and/or <filename class='libraryfile'>libgdbm.so
197 </filename>respectively, which both reside in
198 <filename class='directory'>/usr</filename> hierarchy. If
199 <filename class='directory'>/usr</filename> is a separate mount point
200 and <application>zsh</application> needs to be available in boot time,
201 then its supporting libraries should be in
202 <filename class='directory'>/lib</filename> too. You can move the
203 libraries as follows:</para>
204
205<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
206ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
207
208mv -v /usr/lib/libgdbm.so.* /lib &amp;&amp;
209ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so</userinput>
210</screen>
211
212 <para>Alternatively you can statically link <application>zsh</application>
213 against <application>pcre</application> and <application>gdbm</application>
214 if you modify the <filename>config.modules</filename> file (you need first
215 to run configure to generate it).</para>
216
217 </sect3>
218
219 </sect2>
220
221 <sect2 role="configuration">
222 <title>Configuring zsh</title>
223
224 <sect3 id="zsh-config">
225 <title>Config Files</title>
226
227 <para>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 <filename>zsh(1)</filename>
235 and related manual pages.</para>
236
237 <para>
238 The first time zsh is executed, you will be prompted by messages asking
239 several questions. The answers will be used to create a
240 <filename>~/.zshrc</filename> file. If you wish to run these questions
241 again, run <command>zsh
242 /usr/share/zsh/&zsh-version;/functions/zsh-newuser-install -f</command>.
243 </para>
244
245 <para>
246 There are several built-in advanced prompts. In the
247 <command>zsh</command> shell, start advanced prompt support with
248 <command>autoload -U promptinit</command>, then
249 <command>promptinit</command>. Available prompt names are listed with
250 <command>prompt -l</command>. Select a particular one with
251 <command>prompt <literal>&lt;prompt-name&gt;</literal></command>. Display all available
252 prompts with <command>prompt -p</command>. Except for the list and
253 display commands above, you can insert the other ones in
254 <filename>~/.zshrc</filename> to be automatically executed at
255 shell start, with the prompt you chose.
256 </para>
257
258 <indexterm zone="zsh zsh-config">
259 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
260 </indexterm>
261
262 <indexterm zone="zsh zsh-config">
263 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
264 </indexterm>
265
266 <indexterm zone="zsh zsh-config">
267 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
268 </indexterm>
269
270 <indexterm zone="zsh zsh-config">
271 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
272 </indexterm>
273
274 <indexterm zone="zsh zsh-config">
275 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
276 </indexterm>
277
278 </sect3>
279
280 <sect3>
281 <title>Configuration Information</title>
282
283 <para>Update <filename>/etc/shells</filename> to include the
284 <application>zsh</application> shell program names (as the
285 <systemitem class="username">root</systemitem> user):</para>
286
287<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
288<literal>/bin/zsh
289/bin/zsh-&zsh-version;</literal>
290EOF</userinput></screen>
291
292 </sect3>
293
294 </sect2>
295
296 <sect2 role="content">
297 <title>Contents</title>
298
299 <segmentedlist>
300 <segtitle>Installed Programs</segtitle>
301 <segtitle>Installed Libraries</segtitle>
302 <segtitle>Installed Directories</segtitle>
303
304 <seglistitem>
305 <seg>zsh (hardlink to zsh-&zsh-version;) and zsh-&zsh-version;</seg>
306 <seg>Numerous plugin helper modules under
307 /usr/lib/zsh/&zsh-version;/</seg>
308 <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
309 /usr/share/zsh</seg>
310 </seglistitem>
311 </segmentedlist>
312
313 <variablelist>
314 <bridgehead renderas="sect3">Short Description</bridgehead>
315 <?dbfo list-presentation="list"?>
316 <?dbhtml list-presentation="table"?>
317
318 <varlistentry id="zsh-prog">
319 <term><command>zsh</command></term>
320 <listitem>
321 <para>is a shell which has command-line editing, built-in spelling
322 correction, programmable command completion, shell functions (with
323 autoloading), a history mechanism, and a host of other features.</para>
324 <indexterm zone="zsh zsh-prog">
325 <primary sortas="b-zsh">zsh</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 </variablelist>
331
332 </sect2>
333
334</sect1>
Note: See TracBrowser for help on using the repository browser.