From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 21:50:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19D1C16A4CE for ; Thu, 29 Jul 2004 21:50:12 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2650B43D39 for ; Thu, 29 Jul 2004 21:50:11 +0000 (GMT) (envelope-from itetcu@apropo.ro) Received: (qmail 5012 invoked by uid 89); 29 Jul 2004 21:43:23 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 29 Jul 2004 21:43:23 -0000 Received: from localhost (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 6998E128; Thu, 29 Jul 2004 20:39:27 +0300 (EEST) Received: from it.buh.tecnik93.com ([127.0.0.1]) by localhost (it.buh.tecnik93.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 49734-02; Thu, 29 Jul 2004 20:39:27 +0300 (EEST) Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id EEAA8B0; Thu, 29 Jul 2004 20:39:25 +0300 (EEST) Date: Thu, 29 Jul 2004 20:39:24 +0300 From: Ion-Mihai Tetcu To: Dan Message-Id: <20040729203924.211d63d5@it.buh.tecnik93.com> In-Reply-To: <000801c47570$25df3ab0$ca2aeecd@dannewxp> References: <000801c47570$25df3ab0$ca2aeecd@dannewxp> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at it.buh.cameradicommercio.ro cc: freebsd-questions@freebsd.org Subject: Re: freeBSD How to you set the prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2004 21:50:12 -0000 On Thu, 29 Jul 2004 13:29:30 -0000 "Dan" wrote: > Where and how do you set the prompt to show what user name that your on IE ROOT or user johndoe. > Eample of what the end results I would like to see. > > # router1.pdx/chatusa.com user johndoe. In tch I use this prompt (which also has some colors taht I cannot reproduce here): user@short_hostname> current_path [current_time] last_command_exit_code _#_ itetcu@it> /usr/ports/converters/php4-recode [20:35:57] 0 _ #_ which is done by adding this two lines in ~/.cshrc set prompt = "%S%n@`hostname -s`> %{\e[0;31m%}%/%{\e[0m%} [%P] %{\e[1;36m%}%?%{\e[0m%} %s\n%B%U %{\e[0;31m%}#%{\e[0m%} %u%b" -- IOnut Unregistered ;) FreeBSD "user"