source: postlfs/shells/zsh.xml@ c67fbf64

systemd-11177
Last change on this file since c67fbf64 was c67fbf64, checked in by Krejzi <krejzi@…>, 11 years ago

Remove packages that are now in lfs systemd from blfs.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@11302 af4574ff-66df-0310-9fd7-8a98e5e911e0

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