Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Option to turn on Text Coloring in the Console?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Slinger
Apprentice
Apprentice


Joined: 14 Dec 2002
Posts: 230

PostPosted: Mon Dec 16, 2002 4:09 am    Post subject: Option to turn on Text Coloring in the Console? Reply with quote

May sound a bit OT - however, coming from a Red Hat background I got used to having the text coloring in the console i.e. Directories were Blue, Binaries were green....etc

Can this be turned on in Gentoo?
Back to top
View user's profile Send private message
gfunkmonk
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 129
Location: Freelandville, IN

PostPosted: Mon Dec 16, 2002 4:12 am    Post subject: Reply with quote

The command is ls --color
you can make this permanent by editiing .bashrc in your home directory and adding this line:

alias ls="ls --color=auto
_________________
Slackware is Gentoo's bitch.
Back to top
View user's profile Send private message
Can O' Beans
n00b
n00b


Joined: 12 Dec 2002
Posts: 50

PostPosted: Mon Dec 16, 2002 4:49 am    Post subject: Reply with quote

Good info.

I'm still setting mine up & wanted to do the same. Forgot command :(
Back to top
View user's profile Send private message
kybber
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 228
Location: Trondheim, Norway

PostPosted: Mon Dec 16, 2002 10:37 am    Post subject: Reply with quote

You can find the "default" gentoo bash-setup (which includes coloring etc.) in /etc/skel/.bash{rc|_profile}
Back to top
View user's profile Send private message
MasterRa
n00b
n00b


Joined: 13 Dec 2002
Posts: 21
Location: Little Rock, AR USA

PostPosted: Tue Dec 17, 2002 3:05 pm    Post subject: Reply with quote

If you want colors like RedHat's console, put this at the end of you're /etc/profile

Code:

eval `dircolors`
alias ls="ls --color=auto"


Note that in the first line, the (`)'s are backticks. NOT single quotes. (it's the tilde key, just under the esc key on most keyboards)

the second line just makes alias ls to ls --color, so you don't have to type it like that every time.
After that log out and then back in, and you should have all you're colors back, including red for compressed files and rpms.
Back to top
View user's profile Send private message
S_aIN_t
Guru
Guru


Joined: 11 May 2002
Posts: 488
Location: Ottawa

PostPosted: Tue Dec 17, 2002 3:36 pm    Post subject: Reply with quote

putting it in the /etc/profile will make the setting system wide.


if you are using x windows, and you want the colours to appear in the colsole you are using, put thelines recommended above into the .bashrc file in the home directory.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum