source: postlfs/shells/zsh.xml@ f1e103a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 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 systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f1e103a was f1e103a, checked in by Randy McMurchy <randy@…>, 13 years ago

Added new package TeX Live-20100722

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

  • Property mode set to 100644
File size: 10.6 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 "&sourceforge-repo;/zsh/zsh-&zsh-version;.tar.bz2">
8 <!ENTITY zsh-download-ftp " ">
9 <!ENTITY zsh-md5sum "74c5b275544400082a1cde806c98682a">
10 <!ENTITY zsh-size "2.7 MB">
11 <!ENTITY zsh-buildsize "49 MB (includes installing all documentation)">
12 <!ENTITY zsh-time "0.8 SBU">
13
14 <!ENTITY zsh-doc-md5sum "b3a026cf02471b66454a2b241a4d92a4">
15]>
16
17<sect1 id="zsh" xreflabel="ZSH-&zsh-version;">
18 <?dbhtml filename="zsh.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>ZSH-&zsh-version;</title>
26
27 <indexterm zone="zsh">
28 <primary sortas="a-ZSH">ZSH</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to ZSH</title>
33
34 <para>The <application>ZSH</application> package contains a command
35 interpreter (shell) usable as an interactive login shell and as
36 a shell script command processor. Of the standard shells,
37 <application>ZSH</application> most closely resembles
38 <application>KSH</application> but includes many enhancements.</para>
39
40 <note>
41 <para>This version of <application>ZSH</application> is a development
42 release. The BLFS staff has determined that it provides a stable
43 program which works properly with multibyte locales (e.g., UTF-8).
44 To find the current stable release, refer to the
45 <ulink url="http://www.zsh.org/">ZSH home page</ulink> and compile
46 <application>ZSH</application> with the same instructions.</para>
47 </note>
48
49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
52 <para>Download (HTTP): <ulink url="&zsh-download-http;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download (FTP): <ulink url="&zsh-download-ftp;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download MD5 sum: &zsh-md5sum;</para>
59 </listitem>
60 <listitem>
61 <para>Download size: &zsh-size;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated disk space required: &zsh-buildsize;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated build time: &zsh-time;</para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
72 <itemizedlist spacing="compact">
73 <listitem>
74 <para>Optional Documentation: <ulink
75 url="&sourceforge-repo;/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
76 </listitem>
77 <listitem>
78 <para>MD5 sum: &zsh-doc-md5sum;</para>
79 </listitem>
80 </itemizedlist>
81
82 <bridgehead renderas="sect3">ZSH Dependencies</bridgehead>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional"><xref linkend="pcre"/> and
86 <ulink url="http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/">libcap2</ulink>
87 </para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/zsh"/></para>
91
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of ZSH</title>
96
97 <para>If you downloaded the optional documentation, unpack it with
98 the following command:</para>
99
100<screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
101
102 <para>Install <application>ZSH</application> by running the following
103 commands:</para>
104
105<screen><userinput>./configure --prefix=/usr \
106 --bindir=/bin \
107 --sysconfdir=/etc/zsh \
108 --enable-etcdir=/etc/zsh &amp;&amp;
109make &amp;&amp;
110
111makeinfo Doc/zsh.texi --html -o Doc/html &amp;&amp;
112makeinfo Doc/zsh.texi --html --no-split --no-headers \
113 -o Doc/zsh.html &amp;&amp;
114makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
115
116 <para>If you have <xref linkend="tetex"/> or <xref linkend="texlive"/>
117 installed, you can build PDF format of the documentation by issuing
118 the following command:</para>
119
120<screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf</userinput></screen>
121
122 <para>To test the results, issue: <command>make check</command>.</para>
123
124 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
125
126<screen role="root"><userinput>make install &amp;&amp;
127make infodir=/usr/share/info install.info
128
129install -v -m755 -d /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
130install -v -m644 Doc/html/* \
131 /usr/share/doc/zsh-&zsh-version;/html &amp;&amp;
132install -v -m644 Doc/zsh.{html,txt} \
133 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
134
135 <para>If you downloaded the optional documentation, install it by issuing
136 the following commands as the
137 <systemitem class="username">root</systemitem> user:</para>
138
139<screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &amp;&amp;
140install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
141
142 <para>If you built the PDF format of the documentation, install
143 it by issuing the following command as the
144 <systemitem class="username">root</systemitem> user:</para>
145
146<screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
147 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
148
149 </sect2>
150
151 <sect2 role="commands">
152 <title>Command Explanations</title>
153
154 <para><parameter>--sysconfdir=/etc/zsh</parameter> and
155 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
156 used so that all the <application>ZSH</application> configuration files
157 are consolidated into the <filename class='directory'>/etc/zsh</filename>
158 directory. Omit these parameters if you wish to retain historical
159 compatibility by having all the files located in the
160 <filename class='directory'>/etc</filename> directory.</para>
161
162 <para><parameter>--bindir=/bin</parameter>: This parameter places the
163 <command>zsh</command> binaries into the root filesystem.</para>
164
165 <para><parameter>--enable-cap</parameter>: This parameter enables
166 POSIX capabilities.</para>
167
168 <para><parameter>--disable-gdbm</parameter>: This parameter disables the
169 use of the <application>GDBM</application> library.</para>
170
171 <para><parameter>--enable-pcre</parameter>: This parameter allows to use
172 the <application>PCRE</application> regular expression library in shell
173 builtins.</para>
174
175 <sect3 id="mountpoints">
176 <title>Multiple partitions</title>
177
178 <para>Linking <application>ZSH</application> dynamically against
179 <application>PCRE</application> and/or <application>GDBM</application>
180 produces runtime dependencies on <filename class='libraryfile'>
181 libpcre.so</filename> and/or <filename class='libraryfile'>libgdbm.so
182 </filename>respectively, which both reside in
183 <filename class='directory'>/usr</filename> hierarchy. If
184 <filename class='directory'>/usr</filename> is a separate mount point
185 and <application>ZSH</application> needs to be available in boot time,
186 then its supporting libraries should be in
187 <filename class='directory'>/lib</filename> too. You can move the
188 libraries as follows:</para>
189
190<screen role="root"><userinput>mv -v /usr/lib/libpcre.so.* /lib &amp;&amp;
191ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
192
193mv -v /usr/lib/libgdbm.so.* /lib &amp;&amp;
194ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so</userinput>
195</screen>
196
197 <para>Alternatively you can statically link <application>ZSH</application>
198 against <application>PCRE</application> and <application>GDBM</application>
199 if you modify the <filename>config.modules</filename> file (you need first
200 to run configure to generate it).</para>
201
202 </sect3>
203
204 </sect2>
205
206 <sect2 role="configuration">
207 <title>Configuring ZSH</title>
208
209 <sect3 id="zsh-config">
210 <title>Config Files</title>
211
212 <para>There are a whole host of configuration files for
213 <application>ZSH</application> including
214 <filename>/etc/zsh/zshenv</filename>,
215 <filename>/etc/zsh/zprofile</filename>,
216 <filename>/etc/zsh/zshrc</filename>,
217 <filename>/etc/zsh/zlogin</filename> and
218 <filename>/etc/zsh/zlogout</filename>.
219 You can find more information on these in the <filename>zsh(1)</filename>
220 and related manual pages.</para>
221
222 <indexterm zone="zsh zsh-config">
223 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
224 </indexterm>
225
226 <indexterm zone="zsh zsh-config">
227 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
228 </indexterm>
229
230 <indexterm zone="zsh zsh-config">
231 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
232 </indexterm>
233
234 <indexterm zone="zsh zsh-config">
235 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
236 </indexterm>
237
238 <indexterm zone="zsh zsh-config">
239 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
240 </indexterm>
241
242 </sect3>
243
244 <sect3>
245 <title>Configuration Information</title>
246
247 <para>Update <filename>/etc/shells</filename> to include the
248 <application>ZSH</application> shell program names (as the
249 <systemitem class="username">root</systemitem> user):</para>
250
251<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
252<literal>/bin/zsh
253/bin/zsh-&zsh-version;</literal>
254EOF</userinput></screen>
255
256 </sect3>
257
258 </sect2>
259
260 <sect2 role="content">
261 <title>Contents</title>
262
263 <segmentedlist>
264 <segtitle>Installed Programs</segtitle>
265 <segtitle>Installed Libraries</segtitle>
266 <segtitle>Installed Directories</segtitle>
267
268 <seglistitem>
269 <seg>zsh and zsh-&zsh-version;</seg>
270 <seg>Numerous plugin helper modules</seg>
271 <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
272 /usr/share/zsh</seg>
273 </seglistitem>
274 </segmentedlist>
275
276 <variablelist>
277 <bridgehead renderas="sect3">Short Description</bridgehead>
278 <?dbfo list-presentation="list"?>
279 <?dbhtml list-presentation="table"?>
280
281 <varlistentry id="zsh-prog">
282 <term><command>zsh</command></term>
283 <listitem>
284 <para>is a shell which has command-line editing, built-in spelling
285 correction, programmable command completion, shell functions (with
286 autoloading), a history mechanism, and a host of other features.</para>
287 <indexterm zone="zsh zsh-prog">
288 <primary sortas="b-zsh">zsh</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 </variablelist>
294
295 </sect2>
296
297</sect1>
Note: See TracBrowser for help on using the repository browser.