# Something like this ought to work...
# (note: specify the full, absolute path to IDL when given to `find`)
#
IDL_PATH="$(find /path/to/idl -type d -print0 |tr -s '\000' ':' |sed 's/:$//')"
export IDL_PATH
# Optionally:
#
PATH="$PATH:$IDL_PATH"
export PATH