KSHPR: prompt generator for .kshrc

Vernon C. Hoxie vern at zebra.UUCP
Wed Jun 28 03:20:51 AEST 1989


In article <19817 at cup.portal.com>, thad at cup.portal.com (Thad P Floryan) writes:
> The following is a l'il qwik'n'dirty you may find useful.  If you know of some
> other method to determine whether one is running su'd or not, please share it.
> This posting is to unix-pc.sources and comp.sys.att since it's of potential use

Here's what I did:
To ~/.kshrc add: 	alias ck='/bin/su -su'
			( ck for Clark Kent )

Change /.profile to:
	if [ "$SHFLAG" != 1 ]
	then
		exec /bin/ksh
	fi

Change /.kshrc to:
	PS1="Root ! > "
	PS2="Root ? "
	PS3="Root # "

It works for me, vern.

-- 
Vernon C. Hoxie		       {ncar,nbires,boulder,isis}!scicom!zebra!vern
3975 W. 29th Ave.					voice: 303-477-1780
Denver, Colo., 80212				( TB+ )  uucp: 303-455-2670



More information about the Unix-pc.sources mailing list