On Tue, 2003-12-30 at 23:46, [EMAIL PROTECTED] wrote:
> I have an old kernel 2.2.12 and I was wondering if it is possible to
> get some source code to recompile the kernel with terminal font color
> highlighting. I am not sure what to call it but its the font that's
> typed whenever your at a prompt. A different color for directories and
> another for executable files exetra...    

The kernel has _nothing_ to do with this at all, leave it alone. You
want to have the terminal font colors set in a config file for your
shell, probably /etc/profile
Put this in there:

# If running interactively, then:
if [ "$PS1" ]; then
    # enable color support of ls
    eval `dircolors -b`
    alias ls='ls --color=auto'
fi

(dircolors is a part of the fileutils package).
Also nice: red prompt for root, green for users:

if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
then
        if [ "`id -u`" -eq 0 ]
        then
                PS1='\[\033[01;[EMAIL PROTECTED]: \[\033[01;34m\]\w \$
\[\033[00m\]'
        else
                PS1='\[\033[01;[EMAIL PROTECTED]: \[\033[01;34m\]\w \$
\[\033[00m\]'
        fi
fi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to