View previous topic :: View next topic |
Author |
Message |
Slinger Apprentice
Joined: 14 Dec 2002 Posts: 230
|
Posted: Mon Dec 16, 2002 4:09 am Post subject: Option to turn on Text Coloring in the Console? |
|
|
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 |
|
|
gfunkmonk Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: Freelandville, IN
|
Posted: Mon Dec 16, 2002 4:12 am Post subject: |
|
|
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 |
|
|
Can O' Beans n00b
Joined: 12 Dec 2002 Posts: 50
|
Posted: Mon Dec 16, 2002 4:49 am Post subject: |
|
|
Good info.
I'm still setting mine up & wanted to do the same. Forgot command |
|
Back to top |
|
|
kybber Apprentice
Joined: 25 Jun 2002 Posts: 228 Location: Trondheim, Norway
|
Posted: Mon Dec 16, 2002 10:37 am Post subject: |
|
|
You can find the "default" gentoo bash-setup (which includes coloring etc.) in /etc/skel/.bash{rc|_profile} |
|
Back to top |
|
|
MasterRa n00b
Joined: 13 Dec 2002 Posts: 21 Location: Little Rock, AR USA
|
Posted: Tue Dec 17, 2002 3:05 pm Post subject: |
|
|
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 |
|
|
S_aIN_t Guru
Joined: 11 May 2002 Posts: 488 Location: Ottawa
|
Posted: Tue Dec 17, 2002 3:36 pm Post subject: |
|
|
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 |
|
|
|