Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I attempt to run Mercurial diff from within Textmate, I get an error "Couldn't find hg."

hg works from the command line and is in my path.

Any suggestions?

share|improve this question

migrated from Apr 15 '10 at 20:48

This question came from our site for professional and enthusiast programmers.

What is shown when you issue echo $PATH? – badp Apr 15 '10 at 14:41
/opt/local/bin: /opt/local/sbin: /usr/bin:/bin: /usr/sbin: /sbin: /usr/X11/bin: /usr/local/bin: – John Apr 15 '10 at 14:50

I updated Textmate PATH shell variable to include /usr/local/bin/ and all is well.

share|improve this answer

Forget about the TM_HG variable and simply add /usr/local/bin/ to the PATH variable in the Textmate-Preferences.

For example my PATH looks like: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/

KR Bijan

share|improve this answer

You must log in to answer this question.