Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Constantly updated clock in prompt
- X-seq: zsh-users 18211
- From: Samuel Laverdière <sam113101@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Constantly updated clock in prompt
- Date: Tue, 10 Dec 2013 01:10:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YLRlredUEQeucJuwyKF+fflVznUrt36K5J9NqTTXZWY=; b=XvQrK22y3zdCLeooXimMniRJUeLomBfUP/HzUzgX6FERWxHYGQ8UlvErLrc0rB7L/4 ylDbzp04IVgxnRg1HmaRiYaTBo1aieb9tye/5Ot0GedtdnRH6WEALLHAE6JuZz/w69Wu YZxfJL9bGsS6/jxvZ77/us2yp/IUKiL9Jwh0Su4CmQULppsOecAaTcYogxIH2caY5ZFq +f/6eaf0aHfWZlXgkPtIMVkNEGl6IQKhSceIT+yJmsPNv1amC8rqriHxLFFYya0SQBjg ee5MnotQ+HwjIhDXuErQuvwYvtny3unQG+mfsJ6ZtMe/9gW66pkXuyMMqrbM3yW6sEqo LDwQ==
- 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
I found a way to update the time in my prompt, but it breaks the completion
menu (items in the menu become invisible). I found the solution on the
Internet, so I know other people are looking for the same thing (updated
time in prompt), but I can't believe they all learn to live with the bugs I
have to deal with. Does it happen to anyone else? Is there a way to avoid
it?
I use something like this:
RPROMPT="%{$fg_bold[blue]%}%n@%M, %D %T%{$reset_color%}"
TMOUT=1
TRAPALRM() { zle reset-prompt }
More details here:
http://stackoverflow.com/questions/20231533/constantly-updated-clock-in-zsh-prompt-without-any-drawback
Messages sorted by:
Reverse Date,
Date,
Thread,
Author