Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 1996 19:30:18 -0600 (MDT)
From:      Raymond Richmond <richmond@cronus.oanet.com>
To:        Mark Bernard <markb@chartway.com>
Cc:        hackers@freebsd.org
Subject:   Re: Configuration
Message-ID:  <Pine.BSD/.3.91.960415191719.7372C-100000@cronus.oanet.com>
In-Reply-To: <Pine.BSF.3.91.960415170904.371A-100000@iway.chartway.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 15 Apr 1996, Mark Bernard wrote:

> 	
> I have just replaced my 2.0 with 2.1.... Clean installation.
> 
> I have two questions:
> 1)  It used to be on my 2.0 when I did a who to see who was logged on you 
> would see the IP..it now shows the host.  What can I do to make it show 
> the IP again?

	Not sure on this one, hope somebody else can grab an answer.
> 
> 2)  What are the metacharacters that I can use to vary my prompt in my csh?
> Its set up with the history variable and I want it to show the directory.
> 

I use this little hack in my .cshrc to give me easily modified prompts.
This one give you a machine name as well as present directory referenced 
from users home directory.

if ($?prompt) then
	# An interactive shell -- set some stuff up
	set mch = `hostname -s`
	alias prompt 'set noglob;\\
	set prompt = `dirs`;\\
	set prompt = "${mch}:{!}:${prompt[1]}>";\\
	unset noglob'
	alias popd 'popd \!*; prompt'
	alias pushd 'pushd \!*; prompt'


--
 
 __^__                                                        __^__
( ___ )------------------------------------------------------( ___ )
 | / |---Raymond Richmond---Question Man-------(403)430-0811 -| \ |
 | / |---------OA Internet----------Technical Support---------| \ |
 |_*_|                                                        |_*_|
(_____)----------------richmond@oanet.com--------------------(_____)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD/.3.91.960415191719.7372C-100000>