*BSD News Article 68812


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!olivea!grapevine.lcs.mit.edu!newsie.dmc.com!news.zipnet.net!usenet
From: mi@aldan.algebra.com (Mikhail Teterin)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Path in prompt !!?? help!
Date: 17 May 1996 20:33:57 GMT
Organization: Aldan at Newton Upper Falls
Lines: 25
Message-ID: <4ninrl$f22@news.zipnet.net>
References: <DrG8vz.HCE@student.twi.tudelft.nl> <4nf6ed$22s@uriah.heep.sax.de>
Reply-To: mi@ALDAN.algebra.com
NNTP-Posting-Host: aldan.zipnet.net
X-Newsreader: knews 0.9.6

Honorable J Wunsch
      wrote on 16 May (in article <4nf6ed$22s@uriah.heep.sax.de>):

=For shells like tcsh or bash, there's a bunch of configuration options
=for the shell prompt.  Refer to the appropriate man page.

tcsh's prompt:
	"%B%n%b@%m:%.3 (%h)"
%B - begin bold font
%n - user's Name
%b - end bold font
%m - Machine's name
%.3 - last three direcotires of the path
%h - number of the current command in the history

bash's PS1:
	"\u@\h:\w (\!) "

Same, expcept, the lentgh of the path is not-limited, and there no
bold fonts.
	
	-mi
-- 
	"Windows for dummies"