When you run Git from the command line, it runs in the environment as set up by your Shell. GUI OS X apps, however, have no knowledge about your shell - and the PATH environment can be changed in many different places. The actual environment they run in even varies depending on how the application has been started:
(The MANPATH environment variable will not be modified unless it is already set in the environment.) Files in these directories should contain one path element per line. Prior to reading these directories, default PATH and MANPATH values are obtained from the files /etc/paths and /etc/manpaths respectively. The variables can be set in the “settings” part of a.sublime-project file. Here two entries can be created: env_file To point to an external shell file. If this file sets variables, those variables will be set also in Sublime. Paths can be relative to the project file itself (ex: “././env.sh”) env is a dictionary.
- From Spotlight
- From Finder
- From the Dock
- From the Terminal with the open command (or our CLI Tool)
To provide you with a configurable environment, Tower supports defining environment variables in a custom file.
To make use of this, create a PLIST XML formatted file named environment.plist
in ~/Library/Application Support/com.fournova.Tower3/
.

A sample to define your path could look like this:
You can add additional key-value pairs as needed.
If your hook script needs some variable to work properly, you can introduce it like this in the environment.plist
In case you're using a special authentication mechanism, like a smartcard (e.g. Yubikey), you can set this up here too. This should be similar to:
Mac Tool For Managing Environment Variables In Linux

Mac Tool For Managing Environment Variables Path
You can either use a text editor to create a Property List or Xcode, which provides a Property List Editor.
Please note that environment variables like $HOME
aren't supported in the environment.plist
. Also note that using relative paths might cause problems, which is why you should consider using absolute paths.