Re: csh is root's shell?

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Thu, 7 Oct 2004 09:44:52 -0700 (PDT)
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_at_%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.
Received on Thu Oct 07 2004 - 14:45:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC