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 8860031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:11:25+00:00 2026-06-14T15:11:25+00:00

I am using OS X 10.8, and I used brew to install a more

  • 0

I am using OS X 10.8, and I used brew to install a more recent version of emacs than the one shipped with OS X.

The newer emacs binary is installed in /usr/local/bin (24.2.1), and the old “shipped-with-osx” one in /usr/bin (22.1.1).

I updated my $PATH env variable by prepending /usr/local/bin to it. It works fine in my shell (ie. typing emacs runs the 24.2.1 version), but when git opens the editor, the emacs version is 22.1.1.

Isn’t git supposed to use $PATH to find the editor I want to use ?

Additional informations:

$ type -a emacs
emacs is /usr/local/bin/emacs
emacs is /usr/bin/emacs
emacs is /usr/local/bin/emacs
$ env
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
SHELL=/bin/zsh
PAGER=most
EDITOR=emacs -nw
_=/usr/bin/env

Please note that I’d prefer not to set the absolute path of my editor directly in my git conf, as I use this conf across multiple systems.

EDIT: Here’s an bit of my .zshrc:

# Mac OS X
if [ `uname` = "Darwin" ]; then
    # Brew binaries
    PATH="/usr/local/bin":"/usr/local/sbin":$PATH
else # Everyone else (Linux)
    # snip
fi

So, yes, I could add a line export EDITOR='/usr/local/bin emacs -nw' in the first if, but I’d like to understand why git is not using my PATH variable 🙂

  • 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-14T15:11:26+00:00Added an answer on June 14, 2026 at 3:11 pm

    Installing git 1.8.0 fixed the issue.

    Old version was 1.7.9.6 (Apple Git-31.1). This is weird as I didn’t find any references to this kind of problem in the changelogs.

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

Sidebar

Related Questions

I have installed ruby 1.9.3 using hombrew brew install ruby But default 1.8.7 is
In a previous thread one of the respondents said that using wsHttpBinding used a
I installed the latest version of postgres on OS X Lion using homebrew. The
I have for longer than I can remember not used using blocks when doing
I configured GWT 2.4.0 + Hibernate 4.x I used Using Data Transfer Objects (DTO)
XulRunner/Gecko seems to be really interesting for developing GUI-intensive applications (by using widely used
I am used to using inline events in my websites for example <head> <script>
I'm used to using the command mysql_insert_id() in PHP to return the id of
I am used to using JMock in Java which allows you to specify things
I have used the using statement in both C# and VB. I agree with

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.