|
|
What about bash?
Sigh, it's about time submitted osxhints are better edited. Rob, you need to hire people, I guess. Anyway, this hint is so stale and is more a Jaguar tip and should have been updated so that it works in bash, which is the default shell. In bash and while using Terminal.app, all you need is edit (create if there isn't one) a .bash_profile file in your home dir (text file of course, and use vi or bbedit for it, not rich text editors) and add:
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:*.doc=00;33:*.pdf=00;33:
*.ps=00;33:*.sit=00;31:*.hqx=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;36:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.ppm=00;35:*.tga=00;35:
*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.mpg=00;37:*.avi=00;37:*.gl=00;37:*.dl=00;37:
*.mov=00;37:*.mp3=00;35:'
Of course, the LS_COLORS definition is mine, and YMMV. Use dircolors to change values (see
What about bash?
Shouldn't this be
LSCOLORS=...instead of LS_COLORS=...in the bash? BTW I prefer to set enviroment variables in the .bash_profile file.
What about bash?
There is no man dircolors. I think you are using GNU ls installed by fink, instead of the standard ls.
What about bash?
[sarcasm]
What about bash?
Pretty arrogant of you to admonish Rob for not editing hints, and then submit a hint that will not work in either Jaguar or Panther out-of-the-box installs.
This hint will only work if you have installed GNU file utilities (fileutils). You can do that through fink if you wish. (see Fink fileutils page.)
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|