As described in the “Calling TextMate from Other Applications”:http://macromates.com/textmate/manual/using_textmate_from_terminal chapter in the “TextMate Manual”:http://macromates.com/textmate/manual/
bq. There is one command which does not support giving arguments in the EDITOR variable, it is crontab (which is sort of obsoleted by launchd). If you need to use it, you can create a symbolic link to mate with a _wait suffix which implies -w.
Well, as I found out a while ago, there’s another command that has the same problem: *sqlplus*. But if you follow Allan’s instructions, you can make TextMate work with sqlplus:
ln -s mate ~/bin/mate_wait # run this once to create the link export EDITOR='mate_wait' # use in your ~/.bash_profile
Assuming you’ve already created a symlink to mate and that ~/bin exists (you could also use /usr/local/bin or some other preferred location). Now, in sqlplus simply type ed or edit as usual, and your commandline will open up in TextMate. Yay, one less reason to ever edit any text outside of TextMate.