[44f085a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[44f085a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8070ffce] | 7 | <!ENTITY zsh-download-http "http://prdownloads.sourceforge.net/zsh/zsh-&zsh-version;.tar.bz2">
|
---|
| 8 | <!ENTITY zsh-download-ftp " ">
|
---|
[5ef8b741] | 9 | <!ENTITY zsh-md5sum "e2060f743dcdf3b383e80e862a6548fe">
|
---|
[12fc0f7] | 10 | <!ENTITY zsh-size "2.0 MB">
|
---|
[5ef8b741] | 11 | <!ENTITY zsh-buildsize "24 MB">
|
---|
| 12 | <!ENTITY zsh-time "0.5 SBU">
|
---|
[44f085a] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="zsh" xreflabel="ZSH-&zsh-version;">
|
---|
[a6a160b] | 16 | <?dbhtml filename="zsh.html"?>
|
---|
[f45b1953] | 17 |
|
---|
[a6a160b] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>ZSH-&zsh-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="zsh">
|
---|
| 26 | <primary sortas="a-ZSH">ZSH</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to ZSH</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>ZSH</application> package contains a command
|
---|
| 33 | interpreter (shell) usable as an interactive login shell and as
|
---|
| 34 | a shell script command processor. Of the standard shells,
|
---|
| 35 | <application>ZSH</application> most closely resembles
|
---|
| 36 | <application>KSH</application> but includes many enhancements.</para>
|
---|
| 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&zsh-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&zsh-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &zsh-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &zsh-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &zsh-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &zsh-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">ZSH Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 63 | <para><xref linkend="pcre"/></para>
|
---|
| 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 role="installation">
|
---|
| 68 | <title>Installation of ZSH</title>
|
---|
| 69 |
|
---|
| 70 | <para>Install <application>ZSH</application> by running the following
|
---|
| 71 | commands:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 74 | make</userinput></screen>
|
---|
| 75 |
|
---|
[5ef8b741] | 76 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 77 |
|
---|
[a6a160b] | 78 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 79 |
|
---|
[5ef8b741] | 80 | <screen role="root"><userinput>make install &&
|
---|
| 81 | make install.info</userinput></screen>
|
---|
[a6a160b] | 82 |
|
---|
| 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="configuration">
|
---|
| 86 | <title>Configuring ZSH</title>
|
---|
| 87 |
|
---|
| 88 | <sect3 id="zsh-config">
|
---|
| 89 | <title>Config Files</title>
|
---|
| 90 |
|
---|
| 91 | <para>There are a whole host of configuration files for
|
---|
| 92 | <application>ZSH</application> including <filename>/etc/zshenv</filename>,
|
---|
| 93 | <filename>/etc/zprofile</filename>, <filename>/etc/zshrc</filename>,
|
---|
| 94 | <filename>/etc/zlogin</filename>, and <filename>/etc/zlogout</filename>.
|
---|
| 95 | You can find more information on these in the <filename>zsh(1)</filename>
|
---|
| 96 | and related man pages.</para>
|
---|
| 97 |
|
---|
| 98 | <indexterm zone="zsh zsh-config">
|
---|
| 99 | <primary sortas="e-etc-zshenv">/etc/zshenv</primary>
|
---|
| 100 | </indexterm>
|
---|
| 101 |
|
---|
| 102 | <indexterm zone="zsh zsh-config">
|
---|
| 103 | <primary sortas="e-etc-zprofile">/etc/zprofile</primary>
|
---|
| 104 | </indexterm>
|
---|
| 105 |
|
---|
| 106 | <indexterm zone="zsh zsh-config">
|
---|
| 107 | <primary sortas="e-etc-zshrc">/etc/zshrc</primary>
|
---|
| 108 | </indexterm>
|
---|
| 109 |
|
---|
| 110 | <indexterm zone="zsh zsh-config">
|
---|
| 111 | <primary sortas="e-etc-zlogin">/etc/zlogin</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 |
|
---|
| 114 | <indexterm zone="zsh zsh-config">
|
---|
| 115 | <primary sortas="e-etc-zlogout">/etc/zlogout</primary>
|
---|
| 116 | </indexterm>
|
---|
| 117 |
|
---|
| 118 | </sect3>
|
---|
| 119 |
|
---|
[5ef8b741] | 120 | <sect3>
|
---|
| 121 | <title>Configuration Information</title>
|
---|
| 122 |
|
---|
| 123 | <para>Update <filename>/etc/shells</filename> to include the
|
---|
| 124 | <application>ZSH</application> shell program names (as the
|
---|
| 125 | <systemitem class="username">root</systemitem> user):</para>
|
---|
| 126 |
|
---|
| 127 | <screen role="root"><userinput>cat >> /etc/shells << "EOF"
|
---|
| 128 | <literal>/usr/bin/zsh
|
---|
| 129 | /usr/bin/zsh-4.2.5</literal>
|
---|
| 130 | EOF</userinput></screen>
|
---|
| 131 |
|
---|
| 132 | </sect3>
|
---|
| 133 |
|
---|
[a6a160b] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="content">
|
---|
| 137 | <title>Contents</title>
|
---|
| 138 |
|
---|
| 139 | <segmentedlist>
|
---|
[5ef8b741] | 140 | <segtitle>Installed Programs</segtitle>
|
---|
[a6a160b] | 141 | <segtitle>Installed Libraries</segtitle>
|
---|
| 142 | <segtitle>Installed Directories</segtitle>
|
---|
| 143 |
|
---|
| 144 | <seglistitem>
|
---|
[5ef8b741] | 145 | <seg>zsh and zsh-4.2.5</seg>
|
---|
[a6a160b] | 146 | <seg>None</seg>
|
---|
[5ef8b741] | 147 | <seg>/usr/lib/zsh and /usr/share/zsh</seg>
|
---|
[a6a160b] | 148 | </seglistitem>
|
---|
| 149 | </segmentedlist>
|
---|
| 150 |
|
---|
| 151 | <variablelist>
|
---|
| 152 | <bridgehead renderas="sect3">Short Description</bridgehead>
|
---|
| 153 | <?dbfo list-presentation="list"?>
|
---|
| 154 | <?dbhtml list-presentation="table"?>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="zsh-prog">
|
---|
| 157 | <term><command>zsh</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>is a shell which has command-line editing, built-in spelling
|
---|
| 160 | correction, programmable command completion, shell functions (with
|
---|
| 161 | autoloading), a history mechanism, and a host of other features.</para>
|
---|
| 162 | <indexterm zone="zsh zsh-prog">
|
---|
| 163 | <primary sortas="b-zsh">zsh</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
[1aa3a3ca] | 167 |
|
---|
[a6a160b] | 168 | </variablelist>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | </sect1>
|
---|