![]() |
x terminal ls-command - different colors for folder/file
hi,
it seems like a simple problem but i'm unable to find a solution here and in google. when using the ls-command in x terminal the output is just monochrome. everything is black on white. but i would like to have different colors for folders and files. for example folders in blue and files in green or something. that would be especially helpfull if the file hasn't an extension like .mp3 or .doc etc. the option --color=always isn't recognized by ls and other options don't seem to do what i would like to see. can anybody help? (i'm feeling pretty dumb right now because the problem looks too simple :/) |
Re: x terminal ls-command - different colors for folder/file
Well, we need to convince nokia to ditch busybox and finally get bash and coreutils on this thing to make it perfect :-)
|
Re: x terminal ls-command - different colors for folder/file
so... mhm... is there no chance of getting some color in x terminal? :/
|
Re: x terminal ls-command - different colors for folder/file
You could possibly get bash installed and select that as a shell, I am unsure if this would work or break the device, or even if xterm supports colour at all.
|
Re: x terminal ls-command - different colors for folder/file
Quote:
On the N8x0, someone had made a color-ls package. Anyone brave enough to try it and see if it works fine on the N900? :D -jkq |
Re: x terminal ls-command - different colors for folder/file
well by xterm I meant x terminal on the N900 Gui. So even if bash/dash/etc was installed would colours work locally? (I suspect they would work just fine by ssh-ing into the N900)
Cheers Rip |
Re: x terminal ls-command - different colors for folder/file
1 Attachment(s)
Quote:
The problem is that the version of ls on the N900 does not support colored output, as it is actually busybox, not the "standard" ls found on most linux boxes. Ssh-ing into the N900 won't magically add that funtionality to ls. Using a proper version of ls on the device will make colors "work". -jkq |
Re: x terminal ls-command - different colors for folder/file
Feel free to install gcoreutils from my repos(see sig). That will install it and some other tools as gls and so on...
|
Re: x terminal ls-command - different colors for folder/file
1 Attachment(s)
Quote:
Attached the deb in case anyone doesn't want to install all of coreutils. You have to install it through dpkg. |
Re: x terminal ls-command - different colors for folder/file
Quote:
Oh and I copied the built-in busybox to busybox-suid and made links for su and ping. I hope my minor tinkering isn't eating up too much space on / (only 600k out of the default 50meg left). |
All times are GMT. The time now is 00:49. |
vBulletin® Version 3.8.8