[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: setting svn editor value

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-07-20 18:04:22 CEST

On Jul 20, 2006, at 17:16, Bala Paranj wrote:

> I am following the Pragmmatic Subversion book, it does not say how
> to set the environment for the
> SVN EDITOR variable. I am on Mac OS. I don't have xemacs on my
> machine. Can someone please help
> me? TIA.

You don't need xemacs. xemacs is just a text editor; you can use any
you like. I use TextWrangler which is nice and free.

In the file ~/.bash_profile I have this line:

export EDITOR=editor.sh

editor.sh is a small shell script located somewhere within my path.
(On my system that's ~/scripts) The contents of the script is:

#!/bin/sh
edit +1 --wait --resume "$@"

"edit" opens TextWrangler. +1 tells it to hilite the first line of
the file. --wait tells edit to wait until I save and close the file
in TextWrangler before returning control to the script. --resume
means the Terminal should come to the front when I save and close the
document in TextWrangler. (These options are specific to
TextWrangler's edit command; if you want to use a different editor,
you'll need to consult that editor's documentation.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 20 18:06:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.