zsh-users
 help / color / mirror / code / Atom feed
* make the clock to tick
@ 2016-03-31 15:08 sergio
  2016-03-31 15:28 ` sergio
  0 siblings, 1 reply; 2+ messages in thread
From: sergio @ 2016-03-31 15:08 UTC (permalink / raw)
  To: zsh-users


I'd like to update prompt every second.

When I change the terminal window size, prompt redraws and the clock (%*
in the prompt) ticks.

Is it possible to send an update event to zsh every second to
make the clock to tick?


-- 
sergio


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: make the clock to tick
  2016-03-31 15:08 make the clock to tick sergio
@ 2016-03-31 15:28 ` sergio
  0 siblings, 0 replies; 2+ messages in thread
From: sergio @ 2016-03-31 15:28 UTC (permalink / raw)
  To: zsh-users

On 31/03/16 18:08, sergio wrote:

> I'd like to update prompt every second.

Sorry. This question was solved quite ten years ago.
Looks like I've poorly googled it.


http://www.zsh.org/mla/users/2007/msg00946.html
https://stackoverflow.com/questions/2187829/constantly-updated-clock-in-zsh-prompt


-- 
sergio


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-31 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-31 15:08 make the clock to tick sergio
2016-03-31 15:28 ` sergio

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).