Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'File Extension colors WITH Panther version of ls?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
File Extension colors WITH Panther version of ls?
Authored by: joeschram on Apr 14, '04 06:07:42PM
All good comments here. I have a curveball...is there any way to enable the custom file extension coloring on a stock Panther install without installing the GNU version of ls? I've added the paragraph described above into my .bash_profile file and quit Terminal.app, but the new colors will not appear. The pertinent section of my .bash_profile file appears below (line breaks added so careful with the cut 'n paste):

[export TERM=xterm-color
export CLICOLOR=1

LS_COLORS='no=00;32:fi=00:di=00;34:ln=01;36:pi=04;33:so=01;35:bd=33;04:cd=33;04:or=31;01:ex=00;32:
*.rtf=00;33:*.txt=00;33:*.html=00;33:*.htm=00;33:*.doc=00;33:*.indd=00;36:*.qxd=00;36:*.ai=00;36:
*.eps=00;36:*.pdf=00;36:*.ps=00;36:*.sx=00;31:*.bin=00;31:*.tar=00;31:*.tgz=00;31:*.arj=00;31:
*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.deb=00;31:*.dmg=00;31:
*.iso=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.psd=00;35:*.png=00;35:
*.pict=00;35:*.mp4=00;37:*.mpg=00;37:*.avi=00;37:*.avi=00;37:*.mov=00;37:*.m4a=00;37:*.m4p=00;37:*.mp3=00;37:'

export LS_COLORS;
export LSCOLORS=dxfxcxdxbxegedabagacad]

Any ideas folks?

[ Reply to This | # ]
File Extension colors WITH Panther version of ls?
Authored by: pjt33 on Apr 17, '04 10:13:30AM

The version of ls which comes with Panther supports some colouring - see man ls for details. It doesn't support the level of customisation provided by GNU ls.



[ Reply to This | # ]