Recently in BASH Category

Autmatisches anpassen von PATH

Da in /opt/ immer neuche sachen auftauchen habe ich mir was in die .bash_profile geschrieb was automatische alle /opt/*/bin in meine PATH eintrÃĪgt.

for i in `ls /opt/` ; do
if [ -d /opt/$i/bin ]; then
PATH=/opt/$i/bin:"${PATH}"
fi
done