Lines 26-33
Link Here
|
26 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
26 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
27 |
<license/> |
27 |
<license/> |
28 |
|
28 |
|
29 |
<version>1.2</version> |
29 |
<version>1.3</version> |
30 |
<date>2006-02-18</date> |
30 |
<date>2006-02-20</date> |
31 |
|
31 |
|
32 |
<chapter> |
32 |
<chapter> |
33 |
<title>Installation</title> |
33 |
<title>Installation</title> |
Lines 74-79
Link Here
|
74 |
% <i>compinit</i> |
74 |
% <i>compinit</i> |
75 |
</pre> |
75 |
</pre> |
76 |
|
76 |
|
|
|
77 |
<p> |
78 |
Default completion style is quite plain and ugly. If you want to improve |
79 |
its appearance, enter the following commands: |
80 |
</p> |
81 |
|
82 |
<pre caption="Completion style improvements"> |
83 |
% <i>zstyle ':completion:*:descriptions' format '%U%B%d%b%u'</i> |
84 |
% <i>zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'</i> |
85 |
</pre> |
86 |
|
77 |
</body> |
87 |
</body> |
78 |
</section> |
88 |
</section> |
79 |
<section> |
89 |
<section> |
Lines 107-113
Link Here
|
107 |
we can activate our favorite one: |
117 |
we can activate our favorite one: |
108 |
</p> |
118 |
</p> |
109 |
|
119 |
|
110 |
<pre caption="Chosing a sample prompt"> |
120 |
<pre caption="Choosing a sample prompt"> |
111 |
<comment>(Replace oliver with the prompt of your choice)</comment> |
121 |
<comment>(Replace oliver with the prompt of your choice)</comment> |
112 |
% <i>prompt oliver</i> |
122 |
% <i>prompt oliver</i> |
113 |
</pre> |
123 |
</pre> |
Lines 121-127
Link Here
|
121 |
[Test Prompt] > |
131 |
[Test Prompt] > |
122 |
</pre> |
132 |
</pre> |
123 |
|
133 |
|
124 |
<p>While it is good to be able to create a custom text prompt, <c>zsh</c> also provides many escape sequences that allow system information to be inserted into the prompt. Some of the escape sequences avaliable are:</p> |
134 |
<p>While it is good to be able to create a custom text prompt, <c>zsh</c> also provides many escape sequences that allow system information to be inserted into the prompt. Some of the escape sequences available are:</p> |
125 |
|
135 |
|
126 |
<table> |
136 |
<table> |
127 |
<tr><th>Sequence</th><th>Printed</th></tr> |
137 |
<tr><th>Sequence</th><th>Printed</th></tr> |
Lines 147-152
Link Here
|
147 |
|
157 |
|
148 |
</body> |
158 |
</body> |
149 |
</section> |
159 |
</section> |
|
|
160 |
|
161 |
<section> |
162 |
<title>Miscellaneous settings</title> |
163 |
<body> |
164 |
|
165 |
<p> |
166 |
You can set <c>autocd</c> option if you want to avoid tedious typing of |
167 |
<c>cd</c> command while changing current directory (for example |
168 |
<c>/etc</c> instead of <c>cd /etc</c>). |
169 |
</p> |
170 |
|
171 |
<pre caption="Setting autocd option"> |
172 |
% <i>setopt autocd</i> |
173 |
</pre> |
174 |
|
175 |
<p> |
176 |
If standard bash-like globbing does not satisfy you, <c>extendedglob</c> |
177 |
option may be set to enable extended globbing (one similar to |
178 |
regular expressions). |
179 |
</p> |
180 |
|
181 |
<pre caption="Setting extended globbing"> |
182 |
% <i>setopt extendedglob</i> |
183 |
</pre> |
184 |
|
185 |
<p> |
186 |
When option above is set, you are able to use extended globbing queries |
187 |
such as <c>cp ^*.(tar|bz2|gz)</c>. |
188 |
</p> |
189 |
|
190 |
</body> |
191 |
</section> |
192 |
|
150 |
</chapter> |
193 |
</chapter> |
151 |
<chapter> |
194 |
<chapter> |
152 |
<title>Saving settings</title> |
195 |
<title>Saving settings</title> |