[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] Time var



On Thu, May 04, 2000 at 09:01:44AM +1000, Shaun Clowes wrote:

>> Does anyone know of a way to display the current time, in c shell,
>> I want to stick it in my .cshrc file at work, unfortunately we have
>> an AIX box, which has a lot of shells cept for tcsh? So I cant use
>> %t.

> Hmmm... well, the whole point of open source is that you can compile
> your own. But for those that want an easy way, there is a large
> archive of smit installable freeware (e.g apache) at
> http://www.bull.de/pub/. As for the time thing, why not just show
> the output of the 'date' command.

i think he means in the prompt (which he didnt state). if that is the
case, try this.

this assumes you are running a csh that works properly (this may not
be the case with AIX csh).

alias setprompt set prompt \"`date` '>'\"
alias cd "setprompt ; \cd \!*"

of course YMMV

	matt

-- 
"Linux can be a harsh mistress"
	-- bert hubert
--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>