[MacPorts] CommitMessages modified

MacPorts noreply at macports.org
Tue Nov 8 00:53:38 CET 2016


Page "CommitMessages" was changed by larryv
Diff URL: <https://trac.macports.org/wiki/CommitMessages?action=diff&version=16>
Revision 16
Comment: demonstrate how to set environment variables in Bourne and C shells
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: CommitMessages
=========================================================================
--- CommitMessages (version: 15)
+++ CommitMessages (version: 16)
@@ -72,9 +72,21 @@
 1. the compile-time default (usually vi)
 
 It is best to modify your shell startup files to set the `VISUAL` or `EDITOR` environment variables. Git requires no configuration to use them, and they can be used by other programs too.
+{{{
+#!sh
+# Bourne shell (sh) and relatives
+export VISUAL
+VISUAL=nano
+}}}
+{{{
+#!csh
+# C shell (csh) and relatives
+setenv VISUAL nano
+}}}
 
 If for some reason you want to override `VISUAL`/`EDITOR` and use a different editor with Git, you can specify it in `$HOME/.gitconfig`:
 {{{
+#!sh
 $ git config --global core.editor ed
 }}}
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/CommitMessages>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'CommitMessages' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list