Is there a bash command like source
except it will only source a file once for a given shell?
for example:
source_cached foo.sh # runs as normal
source_cached foo.sh # would not load foo.sh a second time
since the foo.sh path has already been sourced, it would not source it again.