🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #571

time in prompt

#571
From: Doug Schmidt
Date: Sun, 10 Sep 1989 07:17
20 lines
1130 bytes
Hi,

  Is there an easy way to get bash to display the current time in the
prompt *without* using 24 hour time?!  Furthermore, is there an easy
way to get the `inverse video' effect available in tcsh's prompt
format?

  What I'd really like is a hint on how to make my bash prompt 
look just like my tcsh prompt, i.e.:

  set prompt = "%S[%@]%s [%m] [%h]..: "

  thanks!
  
    Doug
--
schmidt@ics.uci.edu (ARPA) |   Per me si va nella citta' dolente.
office: (714) 856-4043     |   Per me si va nell'eterno dolore.
                           |   Per me si va tra la perduta gente.
                           |   Lasciate ogni speranza o voi ch'entrate.
Technical Details
Message-ID: <1989Sep10.071745.17860@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucla-cs!uci-ics!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucla-cs!uci-ics!news
From: schmidt@crimee.ics.uci.edu (Doug Schmidt)
Newsgroups: gnu.bash.bug
Subject: time in prompt
Message-ID: <1989Sep10.071745.17860@paris.ics.uci.edu>
Date: 10 Sep 89 07:17:45 GMT
Sender: news@paris.ics.uci.edu (Network News)
Reply-To: schmidt@crimee.ics.uci.edu (Doug Schmidt)
Distribution: gnu
Organization: University of California, Irvine - Dept of ICS
Lines: 20