You are not logged in.

#21 2017-05-20 19:31:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Show Two Clocks / Kernel Upgrade

Head_on_a_Stick wrote:
Sector11 wrote:

a way to get that into the bash prompt.

[empty@Xanadu ~]$ export PS1="$(TZ=America/Chicago date '+%H:%M in Chicago'): "
12:03 in Chicago: date
Sat 20 May 18:03:37 BST 2017
12:03 in Chicago:

wink

Well, I spent a lot of time startpaging that yesterday and you pop in here like

"snap" Here ya go!

Wish I had your neurons!  big_smile

 export PS1=" \n \$(date +%d) \$(date +%h) \$(date +%y) $light_cyan@ $light_cyan\$(date +%T) $no_color\w\n $(TZ=America/Chicago date '+%H:%M in Chicago') $light_cyan\\$ $no_color"

2017-05-20_162454_Scrot11.png
Since I don't need Chicago, I gotta play with that.  wink

Thank you HoaS

EDIT: A just for fun tweak:
2017-05-20_165131_Scrot11.png

 export PS1=" \n \$(date +%d) \$(date +%h) \$(date +%y) $light_cyan@ $light_cyan\$(date +%T) $no_color\w\n $(TZ=NZ-CHAT date '+%d %h %y @ %H:%M in NZ')\n  $light_cyan\\$ $no_color"

Last edited by Sector11 (2017-05-20 20:11:14)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#22 2017-05-20 20:01:57

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Show Two Clocks / Kernel Upgrade

Gracias ector1935

I've been using TZ stuff for years.  Check out the image of the world time zone/weather conky in my post above.  It was a stumbling block getting it into the bash prompt that I had a problem with.  HoaS to the rescue.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#23 2017-05-20 20:07:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: Show Two Clocks / Kernel Upgrade

datetck wrote:

finally i have made it with tint2 and it work

thank's for your replies all

Please edit your first post and add [Solved] to the Subject.
It's the polite thing to do on any forum.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB