[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-25 16:07:44 CEST

On Jul 21, 2006, at 01:53, Bala Paranj wrote:

>> 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.)
>
> Thank you for the suggestion. I installed the TextWrangler. I
> created a scripts directory under my
> root directory. I created a editor.sh with the two lines you had
> given. When I run the following
> command, it is bombing out. Please help.
>
> 19:47:51:~/work/sesame > svn propedit svn:ignore timelib
> sh: line 1: editor.sh: command not found
> svn: system('editor.sh svn-prop.tmp') returned 32512

1. By "root directory" I hope you mean "home directory", as in /Users/
<yourusername>

2. Is editor.sh executable? It needs to be. Make it so by doing this:

cd ~/scripts
chmod 755 editor.sh

3. Is the scripts directory in your path? I modified my path to put
it there, because I found this convenient. If you want to do that
too, you can add a line like this to your ~/.bash_profile:

export PATH=~/scripts:$PATH

Or if you don't want to modify your path, you can change the line
that exports the editor variable to use the absolute path to the script:

export EDITOR=/Users/<yourusername>/scripts/editor.sh

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 25 16:13:20 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.