up vote 2 down vote favorite
share [g+] share [fb]

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?

link|improve this question
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
feedback

migrated from stackoverflow.com Apr 15 '10 at 20:48

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

2 Answers

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown