From owner-freebsd-current@FreeBSD.ORG Thu Oct 7 16:45:02 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25A9716A4CE for ; Thu, 7 Oct 2004 16:45:02 +0000 (GMT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB5A343D3F for ; Thu, 7 Oct 2004 16:45:01 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.1/8.13.1) with ESMTP id i97Giq5a058914; Thu, 7 Oct 2004 09:44:56 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200410071644.i97Giq5a058914@gw.catspoiler.org> Date: Thu, 7 Oct 2004 09:44:52 -0700 (PDT) From: Don Lewis To: nkalev@gmail.com In-Reply-To: <136a340a041007045538093bfd@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: rbgarga@gmail.com cc: freebsd-current@FreeBSD.org Subject: Re: csh is root's shell? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 16:45:02 -0000 On 7 Oct, Nikolay Kalev wrote: > On Thu, 7 Oct 2004 08:25:04 -0300, Renato Botelho wrote: >> On Thu, 7 Oct 2004 10:29:23 +0300, Nikolay Kalev wrote: >> > Ok here is the fix. I removed F1-F6 options, will research them this weekend :-) >> > Option CTRL+W is added, very neat thanks ! Please email me for other >> > suggestions. >> >> Other thing, >> >> You can replace this >> >> if ($LOGNAME == "root") then >> set prompt="[%B%m%b]:%S%/%s# " >> else >> set prompt="[%B%m%b]:%S%/%s> " >> endif >> >> with >> >> set prompt="[%B%m%b]:%S%/%s%# " >> >> %# will put # to root and > to others >> > nice thank you :-). I will release soon another fix. This is what I use: set prompt = '%m:%c4 %h%#' if ($?TERM && $TERM == xterm) then set prompt='%{\033]0;%n@%m:%c5\007%}%m:%c %h%#' endif It adds the last few components of $cwd and the history event number to the prompt. When running in an xterm, it puts the username, hostname, and the last part of $cwd in the xterm title.