Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.