New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default color output for ls on OSX #3141
Conversation
I'm a bit unsure of the change I made for avoiding aliases to get overwritten. It seems to me that there might be cases where you DO want aliases to be overwritten that my change will stop. I'm not sure how you should differentiate between these cases. |
OS X does not behave differently from BSD here, so we don't need to add an extra branch, we just needed to add |
Fixed incorrect overriding of ls alias on OSX which prevented producing color output
Aha. Fixed now. |
I can't imagine a case where an alias should be overwritten by a regular executable on the path. The point of aliases is to emulate bash aliases, which always take precedence over items on your path (as far as I know, anyway). |
Well it happens on my machine... I tried changing the code like this:
..and it prints
|
Sorry, I meant that I can't imagine a case where that's the right behavior - you said you were unsure about your change preventing the code from overwriting aliases with items on the path, and I only meant to say that I can't think of a situation where your change is not the right answer. Basically, a circuitous and unclear +1 to the change. |
Aha. Cool :) On 8 apr 2013, at 22:33, Min RK notifications@github.com wrote:
|
Yeah colored ls. This looks good, I am merging. |
Default color output for ls on OSX
Default color output for ls on OSX
Also fixed incorrect overriding of ls alias on OSX which prevented producing color output.