Re: was wondering

From: Mario Vukelic (mario.vukelic_at_dantian.org)
Date: 12/31/03

  • Next message: Matt Flores: "unsubscribe"
    To: Xzbenjudah7@aol.com
    Date: Wed, 31 Dec 2003 00:23:39 +0100
    
    

    On Tue, 2003-12-30 at 23:46, Xzbenjudah7@aol.com 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;31m\]\u@\h: \[\033[01;34m\]\w \$
    \[\033[00m\]'
            else
                    PS1='\[\033[01;32m\]\u@\h: \[\033[01;34m\]\w \$
    \[\033[00m\]'
            fi
    fi

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Matt Flores: "unsubscribe"

    Relevant Pages

    • Re: was wondering
      ... > source code to recompile the kernel with terminal font color highlighting. ... The colors which you are thinking of have nothing to do with the kernel. ... ...that's assuming that you have set up a color database in the file ...
      (Debian-User)
    • was wondering
      ... 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. ...
      (Debian-User)
    • Re: was wondering
      ... > source code to recompile the kernel with terminal font color highlighting. ... Do a google for dircolors or check your system for it. ...
      (Debian-User)