
In fact, you can open a file the same way opening it in finder would work by typing open. You can open the curent directory in Finder by typing open.pbpaste pastes what is in the clipboard to stdout.
Using the clipboard: pbcopy copies what is given to it by stdin into the clipboard. This one is not really a set-up step as much as it is a reminder of some very useful Terminal commands that are Mac OS X specific (as far as I know): sudo port install wget nmap watch pwgen wireshark sudo grep man googlecl coreutils. Optionally, install the following useful ports:. sudo port select -set python python27 (or python31 if you prefer Python 3.1.). Select MacPorts' Python as the default:. sudo port install python27 python31 py27-pip p圓1-pip py27-ipython p圓1-ipython. sudo port install macvim git-core mercurial. Install the following ports to get MacVim, Mercurial, and Git:. To make sure all the rest of the ports are installed with bash completion support, edit /opt/local/etc/macports/nf and add a single line containing:. Install MacPorts by downloading the required package fromĪfter MacPorts is installed run the following:
This article has MacPorts commands but the Homebrew equivalents should be Many programmers seem to prefer Homebrew, so if you have not triedĮither, you might want to try both and pick the one you prefer. I personally use MacPorts, though admittedly I have never tried
MACVIM COMMAND LINE FOR MAC OS
There are two well-known package managers for Mac OS X: Homebrew and Getting a package manager is going to make your life as a programmer muchĮasier.