zsh-users
 help / color / mirror / code / Atom feed
From: Alexander Skwar <alexanders.mailinglists+nospam@gmail.com>
To: zsh-users@zsh.org
Subject: Time in prompt not shown, when %P used (promptinit)
Date: Thu, 29 Oct 2015 09:09:26 +0100	[thread overview]
Message-ID: <CADn-QaMCg6PGv5hLy8+-1NrWVOP1FWigi2PvU0z2RDuX0okJMQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]

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@gmail.com <==

             reply	other threads:[~2015-10-29  8:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29  8:09 Alexander Skwar [this message]
2015-10-29 23:15 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADn-QaMCg6PGv5hLy8+-1NrWVOP1FWigi2PvU0z2RDuX0okJMQ@mail.gmail.com \
    --to=alexanders.mailinglists+nospam@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).