~ubuntu-branches/ubuntu/karmic/zsh/karmic

« back to all changes in this revision

Viewing changes to Doc/Zsh/prompt.yo

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-06-02 10:40:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090602104025-lg6wynxpzqi08k2i
Tags: 4.3.10-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  + debian/zshrc: Enable completions by default, unless
    skip_global_compinit is set

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
)
172
172
item(tt(%D{)var(string)tt(}))(
173
173
var(string) is formatted using the tt(strftime) function.
174
 
See manref(strftime)(3) for more details.  Three additional codes are
175
 
available:  tt(%f) prints the day of the month, like tt(%e) but
176
 
without any preceding space if the day is a single digit, and
177
 
tt(%K)/tt(%L) correspond to tt(%k)/tt(%l) for the hour of the day
178
 
(24/12 hour clock) in the same way.
 
174
See manref(strftime)(3) for more details.  Various zsh
 
175
extensions provide numbers with no leading zero or space
 
176
if the number is a single digit:
 
177
 
 
178
startsitem()
 
179
sitem(tt(%f))(a day of the month)
 
180
sitem(tt(%K))(the hour of the day on the 24-hour clock)
 
181
sitem(tt(%L))(the hour of the day on the 12-hour clock)
 
182
endsitem()
 
183
 
 
184
The GNU extension that a `tt(-)' between the tt(%) and the
 
185
format character causes a leading zero or space to be stripped
 
186
is handled directly by the shell for the format characters tt(d), tt(f),
 
187
tt(H), tt(k), tt(l), tt(m), tt(M), tt(S) and tt(y); any other format
 
188
characters are provided to tt(strftime+LPAR()RPAR()) with any leading `tt(-)',
 
189
present, so the handling is system dependent.  Further GNU
 
190
extensions are not supported at present.
179
191
)
180
192
enditem()
181
193