On Sep 21, 2006, at 20:41, Landon Fuller wrote:
On Sep 21, 2006, at 10:48, Mark Duling wrote:
"Daniel J. Luke" <dluke@geeklair.net> writes:
EDITOR is an environment variable that port uses to decide which text editor to invoke when you type 'port edit foo'
With bash, you'd want to do something like 'export EDITOR=nano' (or vi or emacs or whatever)
We could probably have it default to nano if no editor is specified, though.
Oooh. That would be nice for people who are new to Unix, and also for us who assist them. Could that be put on the TODO list, wherever it is?
Seeing as Wolfgang Keller was whining about not being Mac-like, why not go all the way? TextMate and BBEdit have command line tools ('mate' and 'bbedit') that launch the GUI editor.
Absolutely. Here's how I do just that: http://svn.haxx.se/users/archive-2006-07/0848.shtml (That was in response to a question on the Subversion mailing list but it applies just as well to MacPorts or any other Unix command- line utility that uses the EDITOR environment variable.)