Date: Thu, 7 Oct 2004 09:44:52 -0700 (PDT) From: Don Lewis <truckman@FreeBSD.org> To: nkalev@gmail.com Cc: freebsd-current@FreeBSD.org Subject: Re: csh is root's shell? Message-ID: <200410071644.i97Giq5a058914@gw.catspoiler.org> In-Reply-To: <136a340a041007045538093bfd@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7 Oct, Nikolay Kalev wrote:
> On Thu, 7 Oct 2004 08:25:04 -0300, Renato Botelho <rbgarga@gmail.com> wrote:
>> On Thu, 7 Oct 2004 10:29:23 +0300, Nikolay Kalev <nkalev@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410071644.i97Giq5a058914>
