From owner-freebsd-hackers Mon Apr 15 18:31:23 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA24033 for hackers-outgoing; Mon, 15 Apr 1996 18:31:23 -0700 (PDT) Received: from cronus.oanet.com (richmond@cronus.oanet.com [204.209.13.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA24026 for ; Mon, 15 Apr 1996 18:31:15 -0700 (PDT) Received: (from richmond@localhost) by cronus.oanet.com (8.6.12/8.6.12) id TAA08454; Mon, 15 Apr 1996 19:30:18 -0600 Date: Mon, 15 Apr 1996 19:30:18 -0600 (MDT) From: Raymond Richmond To: Mark Bernard cc: hackers@freebsd.org Subject: Re: Configuration In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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--------------------(_____)