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:
# add directories to path below
if [-d "$HOME/tools"]; then
for d in $HOME/tools/*/bin; do PATH="$PATH:$d"; done
fi
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?