One Script, Several Files: source

A library is a file of functions that several scripts share: each script loads it with source, and finds it from any folder with here=$(dirname "${BASH_SOURCE[0]}"), the folder the script itself is saved in.

Updated

Cheat sheet for the lesson One Script, Several Files: source: A library is a file of functions that several scripts share: each script loads it with source, and finds it from any folder with here=$(dirname "${BASH_SOURCE[0]}"), the folder the script itself is saved in.
Category
Bash
Level
Journeyman
Tags
<source>, bash-source, dirname, library, linux, shell-function, unix