From owner-freebsd-questions@FreeBSD.ORG Thu May 5 12:56:29 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 895B4106566C for ; Thu, 5 May 2011 12:56:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 479138FC13 for ; Thu, 5 May 2011 12:56:28 +0000 (UTC) Received: from r55.edvax.de (port-92-195-63-56.dynamic.qsc.de [92.195.63.56]) by mx01.qsc.de (Postfix) with ESMTP id E6D943CA19; Thu, 5 May 2011 14:37:48 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p45CbmFJ001570; Thu, 5 May 2011 14:37:48 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 5 May 2011 14:37:48 +0200 From: Polytropon To: pwnedomina Message-Id: <20110505143748.4be94f6f.freebsd@edvax.de> In-Reply-To: <4DC27128.8040508@gmail.com> References: <4DC1BEA8.6030108@gmail.com> <20110504224931.9ffd5682.dcdowse@gmx.net> <4DC1E23E.3020001@gmail.com> <20110505014556.50dcea0e.dcdowse@gmx.net> <4DC27128.8040508@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: rox-fm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 12:56:29 -0000 On Thu, 05 May 2011 09:43:04 +0000, pwnedomina wrote: > ok, ive choosen "reply to all". my question now is > i have setted the command prompt to > "|[%n@%m:%c]%#" > but i intend to place color red in the [] brackets, how can i accomplish > this?| It looks like you are configuring a C shell prompt, correct? Make sure you have the following settings in ~/.cshrc (or in /ect/csh.cshrc, if you want a global setting): set promptchars = "%#" set prompt = "%n@%m:%~%# " This would give you the STANDARD prompt - note the space after the prompt character and the absense of the brackets. You want red color - I'm not sure if this is supported in csh. At least I know that bold printing is possible. Have a look at this: set prompt = "[%B%n@%m:%~%b]%# " This uses %B and %b to switch on and off bold printing. Refer to "man csh", section "Special shell variables" and scroll down to "prompt" - there are some more special settings to customize the prompt. It mentions "%{string%}" for escape sequences and can MAYBE be used for changing color. Is the pipe character at the beginning of the prompt intended? If yes, use this: set prompt = "|[%B%n@%m:%~%b]%# " I've kept the space at the end of the prompt for better readability. Remove it if desired. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...