Changes between Version 15 and Version 16 of CommitMessages


Ignore:
Timestamp:
Nov 7, 2016, 11:53:37 PM (7 years ago)
Author:
larryv (Lawrence Velázquez)
Comment:

demonstrate how to set environment variables in Bourne and C shells

Legend:

Unmodified
Added
Removed
Modified
  • CommitMessages

    v15 v16  
    7373
    7474It 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.
     75{{{
     76#!sh
     77# Bourne shell (sh) and relatives
     78export VISUAL
     79VISUAL=nano
     80}}}
     81{{{
     82#!csh
     83# C shell (csh) and relatives
     84setenv VISUAL nano
     85}}}
    7586
    7687If for some reason you want to override `VISUAL`/`EDITOR` and use a different editor with Git, you can specify it in `$HOME/.gitconfig`:
    7788{{{
     89#!sh
    7890$ git config --global core.editor ed
    7991}}}