[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 |
|
---|
[15b3bc29] | 7 | <!ENTITY zsh-download-http "http://downloads.sourceforge.net/zsh/zsh-&zsh-version;.tar.bz2">
|
---|
[8070ffce] | 8 | <!ENTITY zsh-download-ftp " ">
|
---|
[6eff6e1] | 9 | <!ENTITY zsh-md5sum "2cefebf742c190cbc611baded825db64">
|
---|
[12fc0f7] | 10 | <!ENTITY zsh-size "2.0 MB">
|
---|
[6eff6e1] | 11 | <!ENTITY zsh-buildsize "41 MB (includes installing all documentation)">
|
---|
[5ef8b741] | 12 | <!ENTITY zsh-time "0.5 SBU">
|
---|
[6eff6e1] | 13 |
|
---|
| 14 | <!ENTITY zsh-doc-md5sum "3ca3b7c199db6eb942f2a296e3fad270">
|
---|
[44f085a] | 15 | ]>
|
---|
| 16 |
|
---|
[0b5a693] | 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 |
|
---|
| 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 |
|
---|
[6eff6e1] | 40 | <warning>
|
---|
| 41 | <para>This version of <application>ZSH</application> does not work
|
---|
| 42 | properly with multibyte locales (e.g., UTF-8). A development version
|
---|
| 43 | is available that addresses many, but not all, locale related issues.
|
---|
| 44 | You can download the development version from the <ulink
|
---|
| 45 | url="http://sourceforge.net/project/showfiles.php?group_id=4068">
|
---|
| 46 | ZSH Sourceforge Download Page</ulink> and use the following BLFS
|
---|
| 47 | instructions to build and install.</para>
|
---|
| 48 | </warning>
|
---|
| 49 |
|
---|
[a6a160b] | 50 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 51 | <itemizedlist spacing="compact">
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download (HTTP): <ulink url="&zsh-download-http;"/></para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download (FTP): <ulink url="&zsh-download-ftp;"/></para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download MD5 sum: &zsh-md5sum;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download size: &zsh-size;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Estimated disk space required: &zsh-buildsize;</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Estimated build time: &zsh-time;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
[6eff6e1] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[29f80ebc] | 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
[6eff6e1] | 75 | <para>Optional Documentation: <ulink
|
---|
| 76 | url="http://downloads.sourceforge.net/zsh/zsh-&zsh-version;-doc.tar.bz2"/></para>
|
---|
| 77 | </listitem>
|
---|
[29f80ebc] | 78 | <listitem>
|
---|
[6eff6e1] | 79 | <para>MD5 sum: &zsh-doc-md5sum;</para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
[a6a160b] | 83 | <bridgehead renderas="sect3">ZSH Dependencies</bridgehead>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e19ad480] | 86 | <para role="optional"><xref linkend="pcre"/></para>
|
---|
[a6a160b] | 87 |
|
---|
[3597eb6] | 88 | <para condition="html" role="usernotes">User Notes:
|
---|
| 89 | <ulink url="&blfs-wiki;/zsh"/></para>
|
---|
| 90 |
|
---|
[a6a160b] | 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of ZSH</title>
|
---|
| 95 |
|
---|
[6eff6e1] | 96 | <para>If you downloaded the optional documentation, unpack it the same
|
---|
| 97 | way you would the source tarball. The documentation will unpack into
|
---|
| 98 | the <filename class='directory'>Doc</filename> directory of the source
|
---|
| 99 | tree.</para>
|
---|
| 100 |
|
---|
[a6a160b] | 101 | <para>Install <application>ZSH</application> by running the following
|
---|
| 102 | commands:</para>
|
---|
| 103 |
|
---|
[6eff6e1] | 104 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 105 | --sysconfdir=/etc/zsh \
|
---|
| 106 | --enable-etcdir=/etc/zsh &&
|
---|
[a6a160b] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[6eff6e1] | 109 | <para>If you downloaded the optional documentation, and you have
|
---|
| 110 | <xref linkend="tetex"/> installed, you can build additional formats of the
|
---|
| 111 | documentation by issuing any or all of the following commands:</para>
|
---|
| 112 |
|
---|
| 113 | <screen><userinput>texi2pdf Doc/zsh.texi -o Doc/zsh.pdf &&
|
---|
| 114 | texi2html Doc/zsh.texi --output=Doc/zsh_1file_t.html &&
|
---|
| 115 | makeinfo Doc/zsh.texi --html --no-split --no-headers \
|
---|
| 116 | -o Doc/zsh_1file_m.html &&
|
---|
| 117 | makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt</userinput></screen>
|
---|
| 118 |
|
---|
[5ef8b741] | 119 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 120 |
|
---|
[a6a160b] | 121 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 122 |
|
---|
[5ef8b741] | 123 | <screen role="root"><userinput>make install &&
|
---|
[6eff6e1] | 124 | make infodir=/usr/share/info install.info</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | <para>If you downloaded the optional documentation, install it by issuing
|
---|
| 127 | the following commands as the
|
---|
| 128 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 129 |
|
---|
| 130 | <screen role="root"><userinput>make htmldir=/usr/share/doc/zsh-&zsh-version;/html install.html &&
|
---|
| 131 | install -v -m644 Doc/*.{ps,dvi} /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
| 132 |
|
---|
| 133 | <para>If you built any additional formats of the documentation, install
|
---|
| 134 | them by issuing the following command as the
|
---|
| 135 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 136 |
|
---|
| 137 | <screen role="root"><userinput>install -v -m644 Doc/{zsh_1file*,*.{pdf,txt}} \
|
---|
| 138 | /usr/share/doc/zsh-&zsh-version;</userinput></screen>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2 role="commands">
|
---|
| 143 | <title>Command Explanations</title>
|
---|
[29f80ebc] | 144 |
|
---|
[6eff6e1] | 145 | <para><parameter>--sysconfdir=/etc/zsh</parameter> and
|
---|
| 146 | <parameter>--enable-etcdir=/etc/zsh</parameter>: These parameters are
|
---|
| 147 | used so that all the <application>ZSH</application> configuration files
|
---|
| 148 | are consolidated into the <filename class='directory'>/etc/zsh</filename>
|
---|
| 149 | directory. Omit these parameters if you wish to retain historical
|
---|
| 150 | compatibility by having all the files located in the
|
---|
| 151 | <filename class='directory'>/etc</filename> directory.</para>
|
---|
[a6a160b] | 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | <sect2 role="configuration">
|
---|
| 156 | <title>Configuring ZSH</title>
|
---|
| 157 |
|
---|
| 158 | <sect3 id="zsh-config">
|
---|
| 159 | <title>Config Files</title>
|
---|
| 160 |
|
---|
| 161 | <para>There are a whole host of configuration files for
|
---|
[6eff6e1] | 162 | <application>ZSH</application> including
|
---|
| 163 | <filename>/etc/zsh/zshenv</filename>,
|
---|
| 164 | <filename>/etc/zsh/zprofile</filename>,
|
---|
| 165 | <filename>/etc/zsh/zshrc</filename>,
|
---|
| 166 | <filename>/etc/zsh/zlogin</filename> and
|
---|
| 167 | <filename>/etc/zsh/zlogout</filename>.
|
---|
[a6a160b] | 168 | You can find more information on these in the <filename>zsh(1)</filename>
|
---|
[6eff6e1] | 169 | and related manual pages.</para>
|
---|
[a6a160b] | 170 |
|
---|
| 171 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 172 | <primary sortas="e-etc-zsh-zshenv">/etc/zsh/zshenv</primary>
|
---|
[a6a160b] | 173 | </indexterm>
|
---|
| 174 |
|
---|
| 175 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 176 | <primary sortas="e-etc-zsh-zprofile">/etc/zsh/zprofile</primary>
|
---|
[a6a160b] | 177 | </indexterm>
|
---|
| 178 |
|
---|
| 179 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 180 | <primary sortas="e-etc-zsh-zshrc">/etc/zsh/zshrc</primary>
|
---|
[a6a160b] | 181 | </indexterm>
|
---|
| 182 |
|
---|
| 183 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 184 | <primary sortas="e-etc-zsh-zlogin">/etc/zsh/zlogin</primary>
|
---|
[a6a160b] | 185 | </indexterm>
|
---|
| 186 |
|
---|
| 187 | <indexterm zone="zsh zsh-config">
|
---|
[6eff6e1] | 188 | <primary sortas="e-etc-zsh-zlogout">/etc/zsh/zlogout</primary>
|
---|
[a6a160b] | 189 | </indexterm>
|
---|
| 190 |
|
---|
| 191 | </sect3>
|
---|
| 192 |
|
---|
[5ef8b741] | 193 | <sect3>
|
---|
| 194 | <title>Configuration Information</title>
|
---|
| 195 |
|
---|
| 196 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
| 197 | <application>ZSH</application> shell program names (as the
|
---|
| 198 | <systemitem class="username">root</systemitem> user):</para>
|
---|
| 199 |
|
---|
| 200 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 201 | <literal>/usr/bin/zsh
|
---|
[6eff6e1] | 202 | /usr/bin/zsh-&zsh-version;</literal>
|
---|
[5ef8b741] | 203 | EOF</userinput></screen>
|
---|
| 204 |
|
---|
| 205 | </sect3>
|
---|
| 206 |
|
---|
[a6a160b] | 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | <sect2 role="content">
|
---|
| 210 | <title>Contents</title>
|
---|
| 211 |
|
---|
| 212 | <segmentedlist>
|
---|
[5ef8b741] | 213 | <segtitle>Installed Programs</segtitle>
|
---|
[a6a160b] | 214 | <segtitle>Installed Libraries</segtitle>
|
---|
| 215 | <segtitle>Installed Directories</segtitle>
|
---|
| 216 |
|
---|
| 217 | <seglistitem>
|
---|
[6eff6e1] | 218 | <seg>zsh and zsh-&zsh-version;</seg>
|
---|
| 219 | <seg>Numerous plugin helper modules</seg>
|
---|
| 220 | <seg>/etc/zsh, /usr/lib/zsh, /usr/share/doc/zsh-&zsh-version; and
|
---|
| 221 | /usr/share/zsh</seg>
|
---|
[a6a160b] | 222 | </seglistitem>
|
---|
| 223 | </segmentedlist>
|
---|
| 224 |
|
---|
| 225 | <variablelist>
|
---|
| 226 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 227 | <?dbfo list-presentation="list"?>
|
---|
| 228 | <?dbhtml list-presentation="table"?>
|
---|
| 229 |
|
---|
| 230 | <varlistentry id="zsh-prog">
|
---|
| 231 | <term><command>zsh</command></term>
|
---|
| 232 | <listitem>
|
---|
| 233 | <para>is a shell which has command-line editing, built-in spelling
|
---|
| 234 | correction, programmable command completion, shell functions (with
|
---|
| 235 | autoloading), a history mechanism, and a host of other features.</para>
|
---|
| 236 | <indexterm zone="zsh zsh-prog">
|
---|
| 237 | <primary sortas="b-zsh">zsh</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
[1aa3a3c] | 241 |
|
---|
[a6a160b] | 242 | </variablelist>
|
---|
| 243 |
|
---|
| 244 | </sect2>
|
---|
| 245 |
|
---|
| 246 | </sect1>
|
---|