*BSD News Article 43897


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.uoregon.edu!usenet.eel.ufl.edu!news.mathworks.com!uunet!not-for-mail
From: jacob@mayhem.com (Jacob DeGlopper)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Unix/FreeBSD versions of DOS utilities
Date: 8 May 1995 17:26:34 -0400
Organization: Mayhem Communications
Lines: 29
Sender: jacob@uunet.uu.net
Message-ID: <3om2aa$ld4@rodan.UU.NET>
References: <(none)> <3ojlul$r3c@warp.cris.com> <duncD89otE.Dsy@netcom.com>
NNTP-Posting-Host: rodan.uu.net

In article <duncD89otE.Dsy@netcom.com>, Kevet Duncombe <dunc@netcom.com> wrote:
>Da_worm@cris.com (DAWORM) wrote:
>On 7 May 1995 23:43:17 GMT, you wrote:
>
>>PROMPT - Lets you set a customized command prompt with features like 
>>showing the current directory (with tree all the way back to the root, as 
>>in "c:\progs\foo\bar"), setting color, showing date and time, ect.  I can 
>>change my text prompt in my login script, but have yet to find a way to 
>>make it show me the directory I am in.
>
>It's a bit roundabout, but this is what I use in my .cshrc:
>	alias setprompt	'set prompt="${cwd}% "'
>	alias cd		'cd \!*; setprompt'

tcsh and bash both allow you to do this in one statement.

From my .bash_profile:

export PS1="\u@\h \w \\$ "

I also put the current directory in the title bar of my xterm:

  cd () { builtin cd $1; title }

 title () { echo "^[]2;$USER@$HOST $PWD^G^[]1;$HOST:$PWD^G" }
-- 
Jacob DeGlopper, EMT-A, N3RHI
UUNET Technologies, Inc.
jacob@uunet.uu.net