I noticed that when I installed the git plugin it wasn’t using the right version (the version in /usr/local/bin) since it was missing some features.
in the ST2 python console I ran
>>> os.system("echo $PATH > temp.txt")
and the reslt in temp.txt was
/usr/bin:/bin:/usr/sbin:/sbin
On the other hand, in my terminal:
derek@derek-MBA:~% echo $PATH [15:06]
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin
derek@derek-MBA:~% cat /etc/paths [15:06]
/usr/local/bin
/usr/bin
/bin
/usr/local/sbin
/usr/sbin
/sbin
derek@derek-MBA:~% [15:06]
As I understand it the path env variable is based off the /etc/paths file and ofc can be modified like any other env var, but ST2 doesn’t appear to use it.
I also ran “which git” inside the ST2 console and got “/usr/bin/git” while in a terminal I get “/usr/local/bin/git”, as I hoped for.
This seems like a bug, but is there any temporary fix, such as putting the correct path into the settings file somehow?
Thanks,
Derek