From owner-freebsd-questions Wed Jan 26 8:10:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from peloton.runet.edu (peloton.runet.edu [137.45.96.205]) by hub.freebsd.org (Postfix) with ESMTP id 51EA714EDC for ; Wed, 26 Jan 2000 08:10:12 -0800 (PST) (envelope-from brett@peloton.runet.edu) Received: from localhost (brett@localhost) by peloton.runet.edu (8.9.3/8.9.3) with ESMTP id LAA14147; Wed, 26 Jan 2000 11:10:01 -0500 (EST) (envelope-from brett@peloton.runet.edu) Date: Wed, 26 Jan 2000 11:10:01 -0500 (EST) From: Brett Taylor To: Matthew Jonkman Cc: freebsd-questions@FreeBSD.ORG, Jon Rust Subject: Re: Shell prompts In-Reply-To: <00aa01bf680e$5eb34120$350a0a0a@bussert.com.Bussert> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Wed, 26 Jan 2000, Matthew Jonkman wrote: > I am using tcsh for no real reason, if bash is that cut and dried then > I will probably go to that. Does tcsh have similar capabilities? If you're using tcsh you can do, for a simple prompt: set prompt = "${mch:q}: {\!} " and shove that in your .cschrc or .tcshrc. There are certainly more complicated things you can do! This won't tell you what directory you're in, but ... man tcsh to see the options (scroll down to the prompt environment variable) or install dotfile (/usr/ports/misc/dotfile) and have a tk based gui to configure your prompt. Add a %/ to get the current working directory for instance. This can get long so you're better off doing something like %c[[0]3] will give the 3 trailing components of the current working directory. Brett ***************************************************** Dr. Brett Taylor brett@peloton.runet.edu * Dept of Chem and Physics * Curie 39A (540) 831-6147 * Dept. of Mathematics and Statistics * Walker 234 (540) 831-5410 * ***************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message