[76421] trunk/doc-new/guide/xml/installing.xml
and.damore at macports.org
and.damore at macports.org
Tue Feb 22 14:19:36 PST 2011
Revision: 76421
http://trac.macports.org/changeset/76421
Author: and.damore at macports.org
Date: 2011-02-22 14:19:35 -0800 (Tue, 22 Feb 2011)
Log Message:
-----------
small changes to "Optional Editor Variables" section of "Installing MacPorts" in the guide, added reference to MP_EDITOR (r76419) and VISUAL (already present in base and never mentioned in guide)
Revision Links:
--------------
http://trac.macports.org/changeset/76419
Modified Paths:
--------------
trunk/doc-new/guide/xml/installing.xml
Modified: trunk/doc-new/guide/xml/installing.xml
===================================================================
--- trunk/doc-new/guide/xml/installing.xml 2011-02-22 22:01:09 UTC (rev 76420)
+++ trunk/doc-new/guide/xml/installing.xml 2011-02-22 22:19:35 UTC (rev 76421)
@@ -519,14 +519,15 @@
</section>
<section id="installing.shell.editorvar">
- <title>Optional EDITOR Variable</title>
+ <title>Optional Editor Variables</title>
- <para>A useful environment variable to set in
- <filename>.profile</filename> is the <varname>EDITOR</varname> variable.
- Setting this variable allows you to use the edit option to the port
- command to edit Portfiles quickly and easily. Set the
- <varname>EDITOR</varname> variable to point to your favorite text
- editor.</para>
+ <para>You can set an environment variable in order to use your favorite
+ text editor with edit option of port command.</para>
+ <para>MacPorts will check <varname>MP_EDITOR</varname>,
+ <varname>VISUAL</varname> and <varname>EDITOR</varname> in this order,
+ allowing you to either use a default editor shared with other programs
+ (<varname>VISUAL</varname> and <varname>EDITOR</varname>) or a Macports'
+ specific one (<varname>MP_EDITOR</varname>).</para>
<para>For example, to use the nano editor, add this line to your
<filename>~/.profile</filename>:</para>
@@ -539,6 +540,13 @@
<filename>~/.profile</filename>:</para>
<programlisting>export EDITOR=/usr/bin/edit</programlisting>
+
+ <para>To keep a text editor as default while using a graphic editor with
+ portfiles add this to <filename>~/.profile</filename>: </para>
+
+ <programlisting>
+ export EDITOR=/usr/bin/vi
+ export MP_EDITOR=/usr/bin/edit</programlisting>
</section>
</section>
</chapter>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110222/c47ba7b3/attachment.html>
More information about the macports-changes
mailing list