Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8460179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:32:03+00:00 2026-06-10T13:32:03+00:00

At the command-line, if I do mate <filepath> it opens up the right file

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:32:04+00:00Added an answer on June 10, 2026 at 1:32 pm

    By adding the following to the core section in ~/.gitconfig

    [core]
        editor = mate
    

    Update:
    Ok if it’s already there then the issue is probably with textmate and not git.

    Textmate 2:

    In preferences there is a terminal tab and an install button
    When you click on install mate will be in /usr/local/bin/mate and everything should work.

    Textmate 1:

    You need to create a symbolic link
    http://manual.macromates.com/en/using_textmate_from_terminal.html

    I have textmate 1 (I use vim now 🙂

    ls -l `which mate`
    
    lrwxr-xr-x  1 jameskyburz  staff  66 Jul  1  2011 /usr/local/bin/mate -> /Applications/TextMate.app/Contents/SharedSup
    

    ln -s /Applications/TextMate.app/Contents/Resources/mate /usr/local/bin/mate

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a command line tool that will crack open a JAR file and
Had to download Command Line Tools from Apple to get make to work, but
Windows command line, I want to search a file for all rows starting with:
sqlplus command line utility is working fine but i need to copy commands edit
From the command line, how do I set the Java CLASSPATH option to point
From command line I am getting file name which I have to compile using
I have a command-line process that creates a PDF file from an HTML file
invalid command-line parameter: ..\Documents\android-sdk-windows\tools/emulator-arm.exe. Any idea how can I solve that problem?
using command line, how can i open a window containing the folder? I am
A command-line program outputs a list of file paths. I pipe the output to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.