.cshrc efficiency note
Mike Muuss
mike at BRL.ARPA
Fri May 2 10:25:59 AEST 1986
If your .cshrc contains a like like:
set prompt=\!\ "`hostname`>"\
then this will cause the /bin/hostname program to be run FOR EVERY
PROMPT that the CSH prints out! This can be a non-trivial load if
20-30 people are doing this. Instead, I recommend the two line replacement:
set hostname=`hostname`
set prompt=\!\ "$hostname"\>\
since it is unlikely that the host name will change during a login
session.
-Mike
More information about the Comp.unix.wizards
mailing list