View previous topic :: View next topic |
Author |
Message |
slimbim n00b
Joined: 14 Aug 2002 Posts: 29
|
Posted: Sun Aug 25, 2002 6:00 pm Post subject: directory colors. how do i get it? |
|
|
Ok. I've searched a lot, and found out that i need to do something with DIRCOLORS and xinitrc and others, but I have no idea what to do. I read that some other distributions already have this, so just use their DIRCOLORS file, but i dont' know how to do this either.
When I first boot into gentoo, I first get the text prompt, and then I start X, or KDE or Gnome or whatever desktop environment. I mostly use Enlightenment (not really, since installing gentoo last week, haven't done much with it).
In the text prompt, right after I boot, if I do ls or ls -la, it will list the contents with different colors for text, directory, links and such. I want this in the xterm or any terminal within enlightenment or kde or whatever. Can someone direct me to some instructions on how to do this?
Thank you! |
|
Back to top |
|
|
Valen Apprentice
Joined: 18 Aug 2002 Posts: 197 Location: Toronto, Ontario, Canada
|
Posted: Sun Aug 25, 2002 6:23 pm Post subject: |
|
|
I'm not entirely sure how Gentoo handles this, but what is probably happening is that an alias is being made in /etc/profile or in your .bash_profile/.bashrc. It will look something like this "alias ls='/bin/ls -F --color'", now you can either make your xterm a login shell (run xterm with "xterm -ls") which should process the above files and make the nice alias.
Another option would be to write a simple script which would call that: make a text file in /usr/bin (call it lc or something easy to remember) which contains:
Code: |
#!/bin/bash
/bin/ls -F --color
|
and then make it executable (chmod a+x /usr/bin/lc, or whatever you called it). You will need to be root to write to this directory. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Aug 25, 2002 6:24 pm Post subject: |
|
|
See if this trhead helps.
This question has been asked many, many times.
Locking. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|
|
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
|
|