Re: was wondering
From: Mario Vukelic (mario.vukelic_at_dantian.org)
Date: 12/31/03
- Previous message: Adam Barton: "keeping Debian up to date and checking the version number"
- In reply to: Xzbenjudah7_at_aol.com: "was wondering"
- Next in thread: Arnt Karlsen: "Re: was wondering"
- Reply: Arnt Karlsen: "Re: was wondering"
- Reply: Paul Morgan: "Re: was wondering"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Adam Barton: "keeping Debian up to date and checking the version number"
- In reply to: Xzbenjudah7_at_aol.com: "was wondering"
- Next in thread: Arnt Karlsen: "Re: was wondering"
- Reply: Arnt Karlsen: "Re: was wondering"
- Reply: Paul Morgan: "Re: was wondering"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|