Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!umd5!uvaarpa!mcnc!ece-csc!ncrcae!ncr-sd!ivory!mike From: mike@ivory.SanDiego.NCR.COM (Michael Lodman) Newsgroups: comp.unix.xenix Subject: Re: In search of a decent prompt Message-ID: <331@ivory.SanDiego.NCR.COM> Date: 14 Apr 88 22:10:26 GMT References: <2816@crash.cts.com> Reply-To: mike@ivory.SanDiego.NCR.COM (Michael Lodman) Organization: Advanced Development, NCR Corporation, San Diego Lines: 28 On this subject, the following is a prompt I developed for my system based on one somebody else did under DOS. Place the following lines in your .cshrc, replacing # with ^[. #begin set sysname=`uname -n` set day=`date '+%a %h %d , 19%y'` alias cd 'cd \!* ; set prompt="#7#[0m#[3m#[2;15;4m#[H#[K#[12m]#[10m#[12C$day#[10C${sysname}:`pwd`#[1;80H#[12m]#[10m#8#[2;15;1m\\!>#[0m#[2;15;1m#[1C"' cd . #end To get a ^[ into a file, type the following: % echo "" >> Filename The colors may be modified based on the documentation for screen in the Xenix manuals. If you need help, email me or call at the below number. -- Michael Lodman (619) 485-3335 Advanced Development NCR Corporation E&M San Diego mike.lodman@ivory.SanDiego.NCR.COM {sdcsvax,cbatt,dcdwest,nosc.ARPA,ihnp4}!ncr-sd!ivory!mike When you die, if you've been very, very good, you'll go to ... Montana.