title: Add the bin subdirectories of all folders to path
body: <p>I have a folder in my home called tools, it is where I place all the utilities I use for my projects. Each folder in tools has a /bin subdirectory that I want to add to my path. my .profile file currently has this piece of code added to it:</p>
  <pre><code>    # add directories to path below
  if [-d &quot;$HOME/tools&quot;]; then
    for d in $HOME/tools/*/bin; do PATH=&quot;$PATH:$d&quot;; done
  fi
  </code></pre>
  <p>I scraped this together from related threads on how to add folders to path, but have ended up no further than where I began.
  What i'd like for it to do is for each subfolder within tools, add the bin to path. Any pointers?</p>