4 ms·
If someone simply prefers a GNU equivalent, they can trivially install GNU ls somewhere else on the system and use it all they want without blowing away part of
by predakanga 8y ago
If someone simply prefers a GNU equivalent, they can trivially install GNU ls somewhere else on the system and use it all they want without blowing away part of the OS.
That's exactly what this does. The script uses Homebrew, which installs all software into /usr/local - this is empty on a standard macOS install, and is not in PATH for regular Mac apps[1].
Homebrew also prefixes GNU tools by default so that you can use "ls" for BSD and "gls" for GNU, but this script disables that.
[1]: https://docs.brew.sh/FAQ#my-mac-apps-dont-find-usrlocalbin-utilities https://docs.brew.sh/FAQ#my-mac-apps-dont-find-usrlocalbin-u...
- mwfunk 8y agoThat’s totally reasonable, although my personal paranoia about such things would want to keep it aliased as gls. :) Too many bad experiences bouncing between Unices.