*BSD News Article 43959


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!cks.ssd.k12.wa.us!netnews1.nwnet.net!alfa02.medio.net!news.sprintlink.net!howland.reston.ans.net!swrinde!sgiblab!wrdis02.robins.af.mil!rcp6.elan.af.mil!newshub.nosc.mil!dog.ee.lbl.gov!news.cs.utah.edu!cc.usu.edu!kurto
From: kurto@cc.usu.edu (Kurt Olsen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Unix/FreeBSD versions of DOS utilities
Message-ID: <1995May8.113446.50129@cc.usu.edu>
Date: 8 May 95 11:34:46 MDT
References: <3ojlul$r3c@warp.cris.com>
Organization: Utah State University
Lines: 37

In article <3ojlul$r3c@warp.cris.com>, Da_worm@cris.com (DAWORM) writes:
> PROMPT - Lets you set a customized command prompt with features like 

I put the following 2 lines in my .login:

set prompt="`/bin/hostname | sed -e s/.declab.usu.edu//g`:`pwd |
 sed -e s\[/u/students/kurto\[kurto\[g`> "

alias cd 'cd \!*;set prompt="`/bin/hostname | sed -e s/.declab.usu.edu//g`:`pwd
 | sed -e s\[/u/students/kurto\[kurto\[g`> "'

(Admittedly this is on a decstation, but I've got the exact same thing on
my freebsd box at home.)

The situation is that I'm in a lab of twenty machines with names like
paradise.declab.usu.edu, petersboro.declab.usu.edu, etc.  My prompt looks like
this:

paradise:kurto>       (if I'm in my home directory)
paradise:kurto/bin>   (if I'm in my home bin directory)
paradise:/usr/bin>    (if I'm in /usr/bin)

The 'alias cd ...' changes what the cd command does, and the 'set prompt ...'
set's up my path when I first login.

> NCD - This program, when first ran, creates a database of sorts of all of

I'm not positive, but check the 'cdpath' variable, I think it does something
similar.

> RIR - Actually, ls handles 90% of RIR, but the one thing RIR does is

Hrm.  Haven't seen anything like this.

-- 
Kurt Olsen (kurto@cc.usu.edu)
<a href="http://www.mcs.usu.edu/~kurto/">Me & my Atari Lynx</a> archive.