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
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
[fce275e]7 <!ENTITY zsh-download-http "&sourceforge-repo;/zsh/zsh-&zsh-version;.tar.bz2">
[8070ffce]8 <!ENTITY zsh-download-ftp " ">
[f17b2db]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">
[6eff6e1]13
[7c2c7ea0]14 <!ENTITY zsh-doc-md5sum "b3a026cf02471b66454a2b241a4d92a4">
[44f085a]15]>
16
[f17b2db]17<sect1 id="zsh" xreflabel="zsh-&zsh-version;">
[a6a160b]18 <?dbhtml filename="zsh.html"?>
[f45b1953]19
[a6a160b]20 <sect1info>
21 <othername>$LastChangedBy$</othername>
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
[f17b2db]34 <para>The <application>zsh</application> package contains a command
[a6a160b]35 interpreter (shell) usable as an interactive login shell and as
36 a shell script command processor. Of the standard shells,
[f17b2db]37 <application>zsh</application> most closely resembles
38 <application>ksh</application> but includes many enhancements.</para>
[a6a160b]39
[f17b2db]40 &lfs72_checked;
[6eff6e1]41
[a6a160b]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
[6eff6e1]64 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[29f80ebc]65 <itemizedlist spacing="compact">
66 <listitem>
[6eff6e1]67 <para>Optional Documentation: <ulink
[fce275e]68 url="&sourceforge-repo;/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
[6eff6e1]69 </listitem>
[29f80ebc]70 <listitem>
[6eff6e1]71 <para>MD5 sum: &zsh-doc-md5sum;</para>
72 </listitem>
73 </itemizedlist>
74
[f17b2db]75 <bridgehead renderas="sect3">zsh Dependencies</bridgehead>
[a6a160b]76
77 <bridgehead renderas="sect4">Optional</bridgehead>
[c67fbf64]78 <para role="optional"><xref linkend="pcre"/>
[fcf4b970]79 </para>
[a6a160b]80
[3597eb6]81 <para condition="html" role="usernotes">User Notes:
82 <ulink url="&blfs-wiki;/zsh"/></para>
83
[a6a160b]84 </sect2>
85
86 <sect2 role="installation">
[f17b2db]87 <title>Installation of zsh</title>
[a6a160b]88
[98078a6]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>
[6eff6e1]93
[f17b2db]94 <para>Install <application>zsh</application> by running the following
[a6a160b]95 commands:</para>
96
[6eff6e1]97<screen><userinput>./configure --prefix=/usr \
[fcf4b970]98 --bindir=/bin \
[6eff6e1]99 --sysconfdir=/etc/zsh \
100 --enable-etcdir=/etc/zsh &amp;&amp;
[f1e103a]101make &amp;&amp;
[a6a160b]102
[f1e103a]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;
[6eff6e1]106makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
107
[8aeb474]108 <para>If you have <xref linkend="texlive"/>
[f1e103a]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
[5ef8b741]114 <para>To test the results, issue: <command>make check</command>.</para>
115
[a6a160b]116 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
117
[5ef8b741]118<screen role="root"><userinput>make install &amp;&amp;
[f1e103a]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>
[6eff6e1]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;
[fcf4b970]132install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
[6eff6e1]133
[f1e103a]134 <para>If you built the PDF format of the documentation, install
135 it by issuing the following command as the
[6eff6e1]136 <systemitem class="username">root</systemitem> user:</para>
137
[f1e103a]138<screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
[6eff6e1]139 /usr/share/doc/zsh-&zsh-version;</userinput></screen>
140
141 </sect2>
142
143 <sect2 role="commands">
144 <title>Command Explanations</title>
[29f80ebc]145
[6eff6e1]146 <para><parameter>--sysconfdir=/etc/zsh</parameter> and
147 <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
[f17b2db]148 used so that all the <application>zsh</application> configuration files
[6eff6e1]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>
[fd7e0ed6]153
[410e228b]154 <para><parameter>--bindir=/bin</parameter>: This parameter places the
[fcf4b970]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
[caa0c15]160 <para><parameter>--disable-gdbm</parameter>: This parameter disables the
161 use of the <application>GDBM</application> library.</para>
162
[fcf4b970]163 <para><parameter>--enable-pcre</parameter>: This parameter allows to use
[f17b2db]164 the <application>pcre</application> regular expression library in shell
[caa0c15]165 builtins.</para>
[a41f643]166
[caa0c15]167 <sect3 id="mountpoints">
168 <title>Multiple partitions</title>
[a41f643]169
[f17b2db]170 <para>Linking <application>zsh</application> dynamically against
171 <application>pcre</application> and/or <application>gdbm</application>
[caa0c15]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
[f17b2db]177 and <application>zsh</application> needs to be available in boot time,
[caa0c15]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
[f17b2db]189 <para>Alternatively you can statically link <application>zsh</application>
190 against <application>pcre</application> and <application>gdbm</application>
[caa0c15]191 if you modify the <filename>config.modules</filename> file (you need first
192 to run configure to generate it).</para>
193
194 </sect3>
[b7c5379]195
[a6a160b]196 </sect2>
197
198 <sect2 role="configuration">
[f17b2db]199 <title>Configuring zsh</title>
[a6a160b]200
201 <sect3 id="zsh-config">
202 <title>Config Files</title>
203
204 <para>There are a whole host of configuration files for
[f17b2db]205 <application>zsh</application> including
[6eff6e1]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>.
[a6a160b]211 You can find more information on these in the <filename>zsh(1)</filename>
[6eff6e1]212 and related manual pages.</para>
[a6a160b]213
214 <indexterm zone="zsh zsh-config">
[6eff6e1]215 <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
[a6a160b]216 </indexterm>
217
218 <indexterm zone="zsh zsh-config">
[6eff6e1]219 <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
[a6a160b]220 </indexterm>
221
222 <indexterm zone="zsh zsh-config">
[6eff6e1]223 <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
[a6a160b]224 </indexterm>
225
226 <indexterm zone="zsh zsh-config">
[6eff6e1]227 <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
[a6a160b]228 </indexterm>
229
230 <indexterm zone="zsh zsh-config">
[6eff6e1]231 <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
[a6a160b]232 </indexterm>
233
234 </sect3>
235
[5ef8b741]236 <sect3>
237 <title>Configuration Information</title>
238
239 <para>Update <filename>/etc/shells</filename> to include the
[f17b2db]240 <application>zsh</application> shell program names (as the
[5ef8b741]241 <systemitem class="username">root</systemitem> user):</para>
242
243<screen role="root"><userinput>cat &gt;&gt; /etc/shells &lt;&lt; "EOF"
[fcf4b970]244<literal>/bin/zsh
245/bin/zsh-&zsh-version;</literal>
[5ef8b741]246EOF</userinput></screen>
247
248 </sect3>
249
[a6a160b]250 </sect2>
251
252 <sect2 role="content">
253 <title>Contents</title>
254
255 <segmentedlist>
[5ef8b741]256 <segtitle>Installed Programs</segtitle>
[a6a160b]257 <segtitle>Installed Libraries</segtitle>
258 <segtitle>Installed Directories</segtitle>
259
260 <seglistitem>
[6eff6e1]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>
[a6a160b]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>
[1aa3a3c]284
[a6a160b]285 </variablelist>
286
287 </sect2>
288
289</sect1>
Note: See TracBrowser for help on using the repository browser.