[Linux-Anyway] Re: Update: Bash help?

  • From: Meph Istopheles <Meph@xxxxxxxxxx>
  • To: Linux-Anyway@xxxxxxxxxxxxx
  • Date: Sat, 20 Nov 2004 13:39:25 -0800 (PST)

>>    Don't suppose bash is capable of outorefreshing?  I can't 
>> seem to find anything about it.

> No, it'll just display the time it was when the prompt was output.

   Drag.  Seems a nifty feature to have -- assuming the user opens 
a terminal or only runs in console mode.  Too bad, that.

> Try this instead:

> $ PS1="\w \D{%H.%M %p} \$ "
> ~ 22.06 pm $

   Ah-hah!  Although I had to substitute "%p" with "%P" to get 
lower-case (?!).  Wheee!

   Thank you very much.

-- 
   What use is magic if it can't save a unicorn?
   -Peter S Beagle, "The Last Unicorn"
To unsubcribe send e-mail with the word unsubscribe in the body to:   
Linux-Anyway-Request@xxxxxxxxxxxxx?body=unsubscribe

Other related posts: