[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 " ">
|
---|
[ca17955] | 9 | <!ENTITY zsh-md5sum "b8f2ad691acf58b3252225746480dcad">
|
---|
[f17b2db] | 10 | <!ENTITY zsh-size "2.9 MB">
|
---|
[ca17955] | 11 | <!ENTITY zsh-buildsize "65 MB (includes installing documentation)">
|
---|
| 12 | <!ENTITY zsh-time "1.1 SBU">
|
---|
[6eff6e1] | 13 |
|
---|
[ca17955] | 14 | <!ENTITY zsh-doc-md5sum "b6818cbbea635b2f70883bb913d0a04a">
|
---|
[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 |
|
---|
[ca17955] | 40 | &lfs73_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">
|
---|
[ca17955] | 66 | <listitem>
|
---|
| 67 | <para>Required patch: <ulink
|
---|
| 68 | url="&patch-root;/zsh-&zsh-version;-makeinfo-1.patch"/></para>
|
---|
| 69 | </listitem>
|
---|
[29f80ebc] | 70 | <listitem>
|
---|
[6eff6e1] | 71 | <para>Optional Documentation: <ulink
|
---|
[fce275e] | 72 | url="&sourceforge-repo;/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
|
---|
[6eff6e1] | 73 | </listitem>
|
---|
[29f80ebc] | 74 | <listitem>
|
---|
[ca17955] | 75 | <para>Documentation MD5 sum: &zsh-doc-md5sum;</para>
|
---|
[6eff6e1] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[f17b2db] | 79 | <bridgehead renderas="sect3">zsh Dependencies</bridgehead>
|
---|
[a6a160b] | 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ca17955] | 82 | <para role="optional">
|
---|
| 83 | <xref linkend="pcre"/> and
|
---|
| 84 | <xref linkend="libcap2"/>
|
---|
[fcf4b970] | 85 | </para>
|
---|
[a6a160b] | 86 |
|
---|
[3597eb6] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
| 88 | <ulink url="&blfs-wiki;/zsh"/></para>
|
---|
| 89 |
|
---|
[a6a160b] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 role="installation">
|
---|
[f17b2db] | 93 | <title>Installation of zsh</title>
|
---|
[a6a160b] | 94 |
|
---|
[98078a63] | 95 | <para>If you downloaded the optional documentation, unpack it with
|
---|
| 96 | the following command:</para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput>tar --strip-components=1 -xvf ../zsh-&zsh-version;-doc.tar.bz2</userinput></screen>
|
---|
[6eff6e1] | 99 |
|
---|
[f17b2db] | 100 | <para>Install <application>zsh</application> by running the following
|
---|
[a6a160b] | 101 | commands:</para>
|
---|
| 102 |
|
---|
[ca17955] | 103 | <screen><userinput>patch -Np1 -i ../zsh-&zsh-version;-makeinfo-1.patch &&
|
---|
| 104 |
|
---|
| 105 | ./configure --prefix=/usr \
|
---|
| 106 | --bindir=/bin \
|
---|
[6eff6e1] | 107 | --sysconfdir=/etc/zsh \
|
---|
[ca17955] | 108 | --enable-etcdir=/etc/zsh &&
|
---|
| 109 | make &&
|
---|
[a6a160b] | 110 |
|
---|
[ca17955] | 111 | makeinfo Doc/zsh.texi --html -o Doc/html &&
|
---|
| 112 | makeinfo Doc/zsh.texi --html --no-split --no-headers \
|
---|
| 113 | -o Doc/zsh.html &&
|
---|
[6eff6e1] | 114 | makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
|
---|
| 115 |
|
---|
[8aeb474] | 116 | <para>If you have <xref linkend="texlive"/>
|
---|
[f1e103a] | 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 |
|
---|
[5ef8b741] | 122 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 123 |
|
---|
[a6a160b] | 124 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 125 |
|
---|
[5ef8b741] | 126 | <screen role="root"><userinput>make install &&
|
---|
[f1e103a] | 127 | make infodir=/usr/share/info install.info
|
---|
| 128 |
|
---|
| 129 | install -v -m755 -d /usr/share/doc/zsh-&zsh-version;/html &&
|
---|
| 130 | install -v -m644 Doc/html/* \
|
---|
| 131 | /usr/share/doc/zsh-&zsh-version;/html &&
|
---|
| 132 | install -v -m644 Doc/zsh.{html,txt} \
|
---|
| 133 | /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
[6eff6e1] | 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 &&
|
---|
[fcf4b970] | 140 | install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
[6eff6e1] | 141 |
|
---|
[f1e103a] | 142 | <para>If you built the PDF format of the documentation, install
|
---|
| 143 | it by issuing the following command as the
|
---|
[6eff6e1] | 144 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 145 |
|
---|
[f1e103a] | 146 | <screen role="root"><userinput>install -v -m644 Doc/zsh.pdf \
|
---|
[6eff6e1] | 147 | /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
[29f80ebc] | 153 |
|
---|
[6eff6e1] | 154 | <para><parameter>--sysconfdir=/etc/zsh</parameter> and
|
---|
| 155 | <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
|
---|
[f17b2db] | 156 | used so that all the <application>zsh</application> configuration files
|
---|
[6eff6e1] | 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>
|
---|
[fd7e0ed6] | 161 |
|
---|
[410e228b] | 162 | <para><parameter>--bindir=/bin</parameter>: This parameter places the
|
---|
[fcf4b970] | 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 |
|
---|
[caa0c15] | 168 | <para><parameter>--disable-gdbm</parameter>: This parameter disables the
|
---|
| 169 | use of the <application>GDBM</application> library.</para>
|
---|
| 170 |
|
---|
[fcf4b970] | 171 | <para><parameter>--enable-pcre</parameter>: This parameter allows to use
|
---|
[f17b2db] | 172 | the <application>pcre</application> regular expression library in shell
|
---|
[caa0c15] | 173 | builtins.</para>
|
---|
[a41f643] | 174 |
|
---|
[caa0c15] | 175 | <sect3 id="mountpoints">
|
---|
| 176 | <title>Multiple partitions</title>
|
---|
[a41f643] | 177 |
|
---|
[f17b2db] | 178 | <para>Linking <application>zsh</application> dynamically against
|
---|
| 179 | <application>pcre</application> and/or <application>gdbm</application>
|
---|
[caa0c15] | 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
|
---|
[f17b2db] | 185 | and <application>zsh</application> needs to be available in boot time,
|
---|
[caa0c15] | 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 &&
|
---|
| 191 | ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
|
---|
| 192 |
|
---|
| 193 | mv -v /usr/lib/libgdbm.so.* /lib &&
|
---|
| 194 | ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so</userinput>
|
---|
| 195 | </screen>
|
---|
| 196 |
|
---|
[f17b2db] | 197 | <para>Alternatively you can statically link <application>zsh</application>
|
---|
| 198 | against <application>pcre</application> and <application>gdbm</application>
|
---|
[caa0c15] | 199 | if you modify the <filename>config.modules</filename> file (you need first
|
---|
| 200 | to run configure to generate it).</para>
|
---|
| 201 |
|
---|
| 202 | </sect3>
|
---|
[b7c5379] | 203 |
|
---|
[a6a160b] | 204 | </sect2>
|
---|
| 205 |
|
---|
| 206 | <sect2 role="configuration">
|
---|
[f17b2db] | 207 | <title>Configuring zsh</title>
|
---|
[a6a160b] | 208 |
|
---|
| 209 | <sect3 id="zsh-config">
|
---|
| 210 | <title>Config Files</title>
|
---|
| 211 |
|
---|
| 212 | <para>There are a whole host of configuration files for
|
---|
[f17b2db] | 213 | <application>zsh</application> including
|
---|
[6eff6e1] | 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>.
|
---|
[a6a160b] | 219 | You can find more information on these in the <filename>zsh(1)</filename>
|
---|
[6eff6e1] | 220 | and related manual pages.</para>
|
---|
[a6a160b] | 221 |
|
---|
| 222 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 223 | <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
|
---|
[a6a160b] | 224 | </indexterm>
|
---|
| 225 |
|
---|
| 226 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 227 | <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
|
---|
[a6a160b] | 228 | </indexterm>
|
---|
| 229 |
|
---|
| 230 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 231 | <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
|
---|
[a6a160b] | 232 | </indexterm>
|
---|
| 233 |
|
---|
| 234 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 235 | <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
|
---|
[a6a160b] | 236 | </indexterm>
|
---|
| 237 |
|
---|
| 238 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 239 | <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
|
---|
[a6a160b] | 240 | </indexterm>
|
---|
| 241 |
|
---|
| 242 | </sect3>
|
---|
| 243 |
|
---|
[5ef8b741] | 244 | <sect3>
|
---|
| 245 | <title>Configuration Information</title>
|
---|
| 246 |
|
---|
| 247 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
[f17b2db] | 248 | <application>zsh</application> shell program names (as the
|
---|
[5ef8b741] | 249 | <systemitem class="username">root</systemitem> user):</para>
|
---|
| 250 |
|
---|
| 251 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
[fcf4b970] | 252 | <literal>/bin/zsh
|
---|
| 253 | /bin/zsh-&zsh-version;</literal>
|
---|
[5ef8b741] | 254 | EOF</userinput></screen>
|
---|
| 255 |
|
---|
| 256 | </sect3>
|
---|
| 257 |
|
---|
[a6a160b] | 258 | </sect2>
|
---|
| 259 |
|
---|
| 260 | <sect2 role="content">
|
---|
| 261 | <title>Contents</title>
|
---|
| 262 |
|
---|
| 263 | <segmentedlist>
|
---|
[5ef8b741] | 264 | <segtitle>Installed Programs</segtitle>
|
---|
[a6a160b] | 265 | <segtitle>Installed Libraries</segtitle>
|
---|
| 266 | <segtitle>Installed Directories</segtitle>
|
---|
| 267 |
|
---|
| 268 | <seglistitem>
|
---|
[6eff6e1] | 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>
|
---|
[a6a160b] | 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>
|
---|
[1aa3a3ca] | 292 |
|
---|
[a6a160b] | 293 | </variablelist>
|
---|
| 294 |
|
---|
| 295 | </sect2>
|
---|
| 296 |
|
---|
| 297 | </sect1>
|
---|