title: How does RubyGems modify $PATH
body: <p>When you install a gem with a bin directory it is automatically added to $PATH in zsh and bash.  How does rubygems go about this without modifying your bashrc, bash_profile or anyother pre-shell script?</p>