In search of a decent prompt
Michael Lodman
mike at ivory.SanDiego.NCR.COM
Fri Apr 15 08:10:26 AEST 1988
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 "<esc>" >> 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 at 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.
More information about the Comp.unix.xenix
mailing list