Autmatisches anpassen von PATH

| No Comments | No TrackBacks
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

No TrackBacks

TrackBack URL: http://openserv.org/mt/mt-tb.cgi/2

Leave a comment