How does the 'Applications' folder get on the path?
For example, I installed Chrome browser into the Applications folder on my Mac and I can type
chrome at a bash shell prompt to start it. Now, if I type
which chrome, I get nothing, and therefore it doesn't reveal itself: how it got on the path.
BUT, on the other hand, if I move Chrome to my own custom
/opt/local/applications folder, running with
chrome no longer works and neither will it work if I add this to the path:
/opt/local/applications/Google Chrome.app/Contents/MacOS . I am trying to understand this so I can get Chrome working from the command line, when installed into a custom location.