From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6167 invoked by alias); 29 Oct 2015 08:09:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20851 Received: (qmail 11682 invoked from network); 29 Oct 2015 08:09:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY,HTML_MESSAGE,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 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== X-Received: by 10.60.16.170 with SMTP id h10mr178689oed.83.1446106186305; Thu, 29 Oct 2015 01:09:46 -0700 (PDT) MIME-Version: 1.0 Sender: a.skwar@gmail.com From: Alexander Skwar Date: Thu, 29 Oct 2015 09:09:26 +0100 X-Google-Sender-Auth: _vfIuYMGawOLeeiJonzt3Pmp9uE Message-ID: Subject: Time in prompt not shown, when %P used (promptinit) To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=089e013a18a28ad872052339d52d --089e013a18a28ad872052339d52d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: =E2=96=88=E2=96=93=E2=96=92=E2=96=91ask@ewzw032=E2=96=91=E2=96=92=E2=96=93= =E2=96=88=E2=96=88=E2=96=93=E2=96=92=E2=96=91 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=E2=80=A6 :/ Variables: PS1: %B%F{yellow}%K{yellow}%{=E2=96=88=E2=96=93=E2=96=92=E2=96=91%}%B%F{white}%K= {yellow}%n@%m%b%F{red}%K{yellow}%{=E2=96=91=E2=96=92=E2=96=93=E2=96=88%}%b%= F{red}%K{black}%{=E2=96=88=E2=96=93=E2=96=92=E2=96=91%}%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}%{=E2=96=88=E2=96=93=E2=96=92=E2=96=91%}%B%F{white}%K= {yellow}%n@%m%b%F{red}%K{yellow}%{=E2=96=91=E2=96=92=E2=96=93=E2=96=88%}%b%= F{red}%K{black}%{=E2=96=88=E2=96=93=E2=96=92=E2=96=91%}%B%F{white}%K{black} %D{%a %b %d} %D{%I:%M:%S%P} %}%B%F{yellow}%K{black}%~/%b%f%k RPOMPT: (empty) =E2=80=8BThe time should've been produced by: " %D{%I:%M:%S%P} =E2=80=8B" I noticed, that even a simple 'PROMPT=3D %D{%I:%M:%S%P} =E2=80=8B =E2=80=8B =E2=80=8B$ ' doesn't show the time. But as soon as I remove the %P, it's wo= rking again. I suppose, it somehow has to do with, that the time definition here in Switzerland (German) is 24hours. There's no AM/PM.=E2=80=8B =E2=80=8BI think, that this =E2=80=8Bis in a sense a bug of zsh and/or prom= ptinit, as it doesn't check if the locale has am/pm. Best =E2=80=8BRegards,=E2=80=8B Alexander --=20 =3D> *Google+* =3D> http://plus.skwar.me <=3D=3D =3D> *Chat* (Jabber/Google Talk) =3D> a.skwar@gmail.com <=3D=3D --089e013a18a28ad872052339d52d--