csh is root's shell?
Don Lewis
truckman at FreeBSD.org
Thu Oct 7 09:45:02 PDT 2004
On 7 Oct, Nikolay Kalev wrote:
> On Thu, 7 Oct 2004 08:25:04 -0300, Renato Botelho <rbgarga at gmail.com> wrote:
>> On Thu, 7 Oct 2004 10:29:23 +0300, Nikolay Kalev <nkalev at 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.
More information about the freebsd-current
mailing list