Constantly updated clock in zsh prompt? -
I know that I command date
command in my zsh prompt but it is old shows time; To see the current time, call me
and hit the current time with a new signal.
Is there a way to configure zsh prompts to continuously update themselves every second?
This is a standard zsh prompt (or bash, or other shells).
I suggest that you will be better off using the GNU screen.
The screen can be the position line that can show the time to scroll the sample "I will scroll to the Red Hat Magazine A Guide to GNU Screen" (I will reproduce it here) When running, the current time will be shown in the lower right corner of the terminal:
~ /. Screenrc
hardstatus alwayslastline string '% {= kG} [% {G}% H% { G}] [% =% {= kw}%?% - LW%?% {R} (% {W}% n *% f% t%? (% U)%?% {R})% {w} }%?% + LW%?%?% =% {G}] [% {B}% Y-% m-% d% {W}% c% {g}] '#Default Screen Scr ScreenTable Shell 1 0 Screen -T Shell2 1
Comments
Post a Comment