Changeset 76421


Ignore:
Timestamp:
Feb 22, 2011, 10:19:35 PM (9 years ago)
Author:
and.damore@…
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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/guide/xml/installing.xml

    r64696 r76421  
    520520
    521521    <section id="installing.shell.editorvar">
    522       <title>Optional EDITOR Variable</title>
    523 
    524       <para>A useful environment variable to set in
    525       <filename>.profile</filename> is the <varname>EDITOR</varname> variable.
    526       Setting this variable allows you to use the edit option to the port
    527       command to edit Portfiles quickly and easily. Set the
    528       <varname>EDITOR</varname> variable to point to your favorite text
    529       editor.</para>
     522      <title>Optional Editor Variables</title>
     523
     524      <para>You can set an environment variable in order to use your favorite
     525      text editor with edit option of port command.</para>
     526      <para>MacPorts will check <varname>MP_EDITOR</varname>,
     527      <varname>VISUAL</varname> and <varname>EDITOR</varname> in this order,
     528      allowing you to either use a default editor shared with other programs
     529      (<varname>VISUAL</varname> and <varname>EDITOR</varname>) or a Macports'
     530      specific one (<varname>MP_EDITOR</varname>).</para>
    530531
    531532      <para>For example, to use the nano editor, add this line to your
     
    540541
    541542      <programlisting>export EDITOR=/usr/bin/edit</programlisting>
     543     
     544      <para>To keep a text editor as default while using a graphic editor with
     545      portfiles add this to <filename>~/.profile</filename>: </para>
     546
     547      <programlisting>
     548      export EDITOR=/usr/bin/vi
     549      export MP_EDITOR=/usr/bin/edit</programlisting>
    542550    </section>
    543551  </section>
Note: See TracChangeset for help on using the changeset viewer.