ericmartel/Sublime-Text-2-Perforce-Plugin — Issue #8: ConstructCommand method looks only in the .bash_profile file
Author: sahilb
Created: 2012-03-01 02:03:32+00:00
State: open

def ConstructCommand(in_command):
command = ''
if(sublime.platform() == "osx"):
command = 'source ~/.bash_profile && '
command += in_command
return command

The issue is some times the user could have .profile file or other files for shell settings.
this gives the order which shell follows for setting up the environment: http://hayne.net/MacDev/Notes/unixFAQ.html