Okay, so I'm a Linux power user, that is I feel most at home when I have access to the command-line, and I'm very much used to using GNU coreutils, so now that I've installed GNU coreutils on Mac OS X using Homebrew, how would I go about removing the builtin coreutils that vanilla Mac OS X comes with?
Please keep in mind that I'm using zsh, so when I set the path to something I do it like this:
path=(/usr/local/bin ~/.gem/ruby/2.0.0/bin ~/.nvm/bin ~/bin /bin $path)
I want to be able to say,
Include everything present in the current path in the new path, excluding these files: /usr/bin/ls
, /usr/bin/grep
...
brew install everything from now on in 'coreutils'
That's not really what I want. I want some that saysinclude everything in '/usr/bin' EXCEPT for this list of files
– Alexej Magura Nov 11 '13 at 17:45$(brew --prefix coreutils)/libexec/gnubin
to your existing path will mean that any GNU tool will replace the relevant tool found in /usr/bin. If it doesn't exist in GNU's bin, it will use /usr/bin. – grg Nov 11 '13 at 17:49$path
. – Alexej Magura Nov 11 '13 at 17:57