I'm working on a shell script that needs to execute some commands installed with homebrew. It's not working, because the path is different in the shell Alfred uses. For instance, if I do "which ruby" in my own shell I get a path to the Ruby version I've installed with homebrew, but if I do the same with my script I get "/usr/bin/ruby" which is the system default.
How do I get access to the same shell as the default one, the one where homebrew is available? I've tried sourcing .bash_profile but that doesn't help.