# Automatically add subdirectories from ~/opt to the user's path.

for optdir in `ls ~/opt/`
do
	optdirpath=~/opt/$optdir
	if [ -d "$optdirpath" ]
	then
		optdirsubpath=$optdirpath/bin
		if [ -d "$optdirsubpath" ]
		then
			export PATH=$PATH:$optdirsubpath
		else
			export PATH=$PATH:$optdirpath
		fi
	fi
done


Add subdirectories of ~/opt to $path
Add subdirectories of ~/opt to $path
