Thursday, June 19, 2008

Make TextMate the default editor for the shell

Edit ~.profile with e.g. "mate ~.profile" and add the following lines:

export EDITOR="mate -w"
export VISUAL="mate -w"
export SVN_EDITOR="mate -w"

Now your shell will always invoke TextMate whenever a file needs to be edited (e.g. Subversion commit text).

1 comment:

Anonymous said...

I was doing like that but have an error:

crontab: mate -w: No such file or directory