Author Topic: Dir_colors  (Read 934 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Dir_colors
« on: December 10, 2006, 09:06:16 pm »
I want to change the colour of the directories when displayed by ls in a bash script. I tried generating the values for LS_COLORS and exported the env but it doesn't have any effect. Also, there is no DIR_COLORS file under /etc
I compiled dircolors so I got the right colour string, but it doesn't appear to be working. What else do I need?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Dir_colors
« Reply #1 on: December 10, 2006, 09:39:40 pm »
Quote
I want to change the colour of the directories when displayed by ls in a bash script. I tried generating the values for LS_COLORS and exported the env but it doesn't have any effect. Also, there is no DIR_COLORS file under /etc
I compiled dircolors so I got the right colour string, but it doesn't appear to be working. What else do I need?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I'm using Bundabrg's pdaxrom-patchlist ipk, which does all this stuff. I've never looked at the contents, but it all works:

[a href=\"http://www.worldguard.com.au/projects/zaurus/pdaxrom/current/cookpot/]http://www.worldguard.com.au/projects/zaur...urrent/cookpot/[/url]
SL6000-L, RC12

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Dir_colors
« Reply #2 on: December 10, 2006, 09:54:34 pm »
Quote
Quote
I want to change the colour of the directories when displayed by ls in a bash script. I tried generating the values for LS_COLORS and exported the env but it doesn't have any effect. Also, there is no DIR_COLORS file under /etc
I compiled dircolors so I got the right colour string, but it doesn't appear to be working. What else do I need?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I'm using Bundabrg's pdaxrom-patchlist ipk, which does all this stuff. I've never looked at the contents, but it all works:

[a href=\"http://www.worldguard.com.au/projects/zaurus/pdaxrom/current/cookpot/]http://www.worldguard.com.au/projects/zaur...urrent/cookpot/[/url]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148765\"][{POST_SNAPBACK}][/a][/div]

thanks. I figured it out. the ls in busybox doesn't support LS_COLORS. I compiled my own copy of ls from the coreutils sources and all works
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Dir_colors
« Reply #3 on: December 10, 2006, 11:43:08 pm »
Quote
thanks. I figured it out. the ls in busybox doesn't support LS_COLORS. I compiled my own copy of ls from the coreutils sources and all works
[div align=\"right\"][a href=\"index.php?act=findpost&pid=148767\"][{POST_SNAPBACK}][/a][/div]
That's interesting - I haven't figured out what settings were changed (it might not even be the package I thought it was) to make it work for me, but I'm still using the busybox ls.
SL6000-L, RC12