At the command-line, if I do mate <filepath>
it opens up the right file for me in TextMate.
But when I do:
$ mate -v
open: invalid option -- v
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Also, when I do git commit
, I see this:
$ git commit
error: cannot run mate: No such file or directory
error: There was a problem with the editor 'mate'.
Please supply the message using either -m or -F option.
My ~/.bashprofile
has these lines:
#Set Textmate as my default editor from the command-line
alias mate='open -a TextMate.app'
export EDITOR="/usr/local/bin/mate -w"
And ~/.bashrc
has just this one:
alias mate='open -a TextMate.app'
Edit 1
My ~/.gitconfig
includes the following:
[user]
name = My Name
email = myemail@address.com
[core]
editor = mate
[github]
user = marcamillion
token = 50e3iuaidsgadjkhwkjegakjhbsdkjb30432 (don't worry, this is fake)
Help!