swcarpentry / DEPRECATED-bc

DEPRECATED: This repository is now frozen - please see individual lesson repositories.
Other
299 stars 383 forks source link

Add instructions for configuring common editors to work with Git #600

Closed gvwilson closed 9 years ago

gvwilson commented 10 years ago

Our setup instructions should include notes on how to configure commonly-used editors (all the ones we list, at least) to be the default with Git.

wking commented 10 years ago

On Fri, Jul 18, 2014 at 07:15:21AM -0700, Greg Wilson wrote:

Our setup instructions should include notes on how to configure commonly-used editors (all the ones we list, at least) to be the default with Git.

That's not just:

$ git config core.editor "$MY_EDITOR"

? Or for folks using Bash, the even more generic:

$ echo "export EDITOR='$MY_EDITOR'" >> ~/.bashrc
gvwilson commented 10 years ago

Our instructions should include the paths to the editors (or how to get the editor onto the path) and other special instructions, e.g. http://stackoverflow.com/questions/8951275/git-config-core-editor-how-to-make-sublime-text-the-default-editor-for-git-on

rgaiacs commented 10 years ago

455 is a similar issue to this one (but for Gedit) and we agree to add this type of note at novice/teaching/03-git.md and not at _includes/setup.html.

strootman commented 9 years ago

@gvwilson This seems like an obvious question, but is this the ticket you intended to use for tracking "git diff/merge using graphical tools"?

It looks like vim, nano, notepad++, TextWrangler, Sublime Text, RStudio, and Kate are the editors mentioned in the setup.html.

gvwilson commented 9 years ago

@strootman sorry to be so long replying - no, this one is "how do I git config so that editor XYZ will be launched when Git wants to write a commit message or the like.