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