On Sep 21, 2006, at 2:41 PM, 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.
TextMate and BBEdit don't come with the OS install, though. I suppose we could use TextEdit, though (open -e), or the default text editor (open -t) ... (mostly jokingly) -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+