You are not logged in.

#1 2010-06-23 13:35:00

dickoverfrick
Member
Registered: 2008-11-11
Posts: 11

Bashrc - colors

I managed to change console colors for various file formats but it's only visible in my home directory...
when I go, for example to /mnt/storage/ it uses default colors.
I thought first that it's permissions problem, but after I switched permissions to my user - it's still same!
Then I thought I should find global .bashrc file and changed /etc/skell/.bashrc - add colors, but it's same... damn it!
I need an idea! big_smile

Offline

#2 2010-06-23 13:51:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Bashrc - colors

'/etc/skell/.bashrc' is a stock file, you don't change it! You use it to build you own, customized /etc/bash.bashrc.local or whatever.
''/etc/skell/' is a dir where all the skelleton files reside. Yuo copy them over to the desired location and edit at will.

> I managed to change console colors for various file formats
How did you do it?

Last edited by karol (2010-06-23 13:55:27)

Offline

#3 2010-06-23 13:59:07

dickoverfrick
Member
Registered: 2008-11-11
Posts: 11

Re: Bashrc - colors

karol wrote:

'/etc/skell/.bashrc' is a stock file, you don't change it! You use it to build you own, customized /etc/bash.bashrc.local or whatever.
''/etc/skell/' is a dir where all the skelleton files reside. Yuo copy them over to the desired location and edit at will.

> I managed to change console colors for various file formats
How did you do it?

http://linux-sxs.org/housekeeping/lscolors.html

Offline

#4 2010-06-23 14:12:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Bashrc - colors

You mention '/mnt/storage/' - maybe it's a NTFS/FAT so it's not a linux fs ...

I'll look into it in an hour or so, I have to run now.

Offline

#5 2010-06-23 14:24:16

dickoverfrick
Member
Registered: 2008-11-11
Posts: 11

Re: Bashrc - colors

karol wrote:

You mention '/mnt/storage/' - maybe it's a NTFS/FAT so it's not a linux fs ...

I'll look into it in an hour or so, I have to run now.

hmm! yes it's a NTFS!
Any way to apply ls color for a NTFS?

Offline

#6 2010-06-23 14:41:08

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: Bashrc - colors

I have "colors" for my NTFS volumes but it isn't ideal. They are mounted with 777 permissions so all files show up green (color for executables), and all the dirs are highlighted.
That's just the way I configured dircolors, and I am sure there are ways to get nicer, differentiated colors.

Last edited by egan (2010-06-23 14:41:55)

Offline

#7 2010-06-23 15:03:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Bashrc - colors

> That's just the way I configured dircolors, and I am sure there are ways to get nicer, differentiated colors.
I think OP uses a different method.

From http://linux-sxs.org/housekeeping/lscolors.html
The *.rpm=90 parameter at the end tells ls to display any files ending in .rpm in the specified colour, in this case colour 90 (dark grey). This can be applied to any types of files (eg. you could use '*.png=35' to make jpeg files appear purple.

You can try setting many '*.ext=xx' parameters or e-mail the author about NTFS.

Offline

Board footer

Powered by FluxBB