Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Time in prompt not shown, when %P used (promptinit)
- X-seq: zsh-users 20851
- From: Alexander Skwar <alexanders.mailinglists+nospam@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Time in prompt not shown, when %P used (promptinit)
- Date: Thu, 29 Oct 2015 09:09:26 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=l0XtN0sl+yWQUkOJ5hoiZkCgOjawdtW4Pur2YW4YdOs=; b=G1uAN80Urnz9lV8bBQnL9GG7CymbcI0MJJT/zYsBMo69QdRck81rr5W0O9eM+kqojI 2j4ULWwHopX8+FGVyFtKGw+2mCR+fAnNRSDGyq+3Y6RShVGHsrUIXbZxmEhY74BuIIZr V1+qwQTjB8YrM3tZKjLYDxz2HNdAAUA9lSkl7gSky/hD6SvIC4IGeARGPllI8Fz/vYEM 8oTrtluYVMH+ueF7XAxIIehlCUiVS1eWecOXUtQEnW5YhYkImEhUP0bl6/bh6T4Ojg96 DFDrNJB4/StV0V9QKlsLrcD0pA17i7vaUQR+jOJ7XHJeQJwzOHR/MSNlqlNMbmVmEpQZ thpQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Sender: a.skwar@xxxxxxxxx
Hello
I'm using zsh 5.1.1-1ubuntu1 on Ubuntu 15.10. With the prompt command (from
promptinit), I set the prompt to "fire", which results in the following
prompt:
█▓▒░ask@ewzw032░▒▓██▓▒░ Don Okt 29
~/
Before Ubuntu 15.10, I had 14.04 and after the date ("Don Okt 29"), there
used to be the time. The time is now missing… :/
Variables:
PS1:
%B%F{yellow}%K{yellow}%{█▓▒░%}%B%F{white}%K{yellow}%n@%m%b%F{red}%K{yellow}%{░▒▓█%}%b%F{red}%K{black}%{█▓▒░%}%B%F{white}%K{black}
%D{%a %b %d} %D{%I:%M:%S%P}
%}%B%F{yellow}%K{black}%~/%b%f%k
PROMPT:
%B%F{yellow}%K{yellow}%{█▓▒░%}%B%F{white}%K{yellow}%n@%m%b%F{red}%K{yellow}%{░▒▓█%}%b%F{red}%K{black}%{█▓▒░%}%B%F{white}%K{black}
%D{%a %b %d} %D{%I:%M:%S%P}
%}%B%F{yellow}%K{black}%~/%b%f%k
RPOMPT:
(empty)
The time should've been produced by: "
%D{%I:%M:%S%P}
"
I noticed, that even a simple 'PROMPT=
%D{%I:%M:%S%P}
$ ' doesn't show the time. But as soon as I remove the %P, it's working again.
I suppose, it somehow has to do with, that the time definition here in
Switzerland (German) is 24hours. There's no AM/PM.
I think, that this is in a sense a bug of zsh and/or promptinit, as
it doesn't check if the locale has am/pm.
Best Regards,
Alexander
--
=> *Google+* => http://plus.skwar.me <==
=> *Chat* (Jabber/Google Talk) => a.skwar@xxxxxxxxx <==
Messages sorted by:
Reverse Date,
Date,
Thread,
Author