I would advice MacPorts.org instead of homebrew. With package managers such as macport and homebrew, you can run on Darwin freedom/open source programs, including a lot of GNU software that you also find on Linux. You can also compile those freedom/open source programs yourself, or get binaries produced from them (eg. http://emacsformacosx.com ). The alternative, is to run Linux binaries on a Linux system, with two c…
Firstly, so did you refer that you work on Linux and connect to your MacOS which is running a X11 server using xquarts?
Secondly, how do you manage the files on your Linux machine if you use your Mac as the main machine? Do you use SSHFS to mount your Linux drives on your MacOS? (I'm used to the environment that Linux gives me, and try to work on Mac without giving up Linux tools)