Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ciupicri
on May 25, 2012
|
parent
|
context
|
favorite
| on:
Cronic - A cure for Cron's chronic email problem
On Red Hat based systems, ls is an alias for
ls --color=auto
which means that colors are used only on terminals, not pipes or files.
ajross
on May 25, 2012
|
next
[–]
And no one should ever be using ls in a shell script anyway. Shell globbing and find are the proper tools.
_swa8
on May 25, 2012
|
prev
[–]
Debian has this as well. I do "unalias -a" whenever I log into an account I haven't configured to my liking yet (I want no ls coloring, but I do want a bash prompt in boldface).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: