While I mostly agree with eduffy, I usually put such functions in a file either in the user's home directory, or if the scripts are shared between users in a directory in the user's path. Then I would send the file (. ~ / FILE or. $ (Type -p FILE)) to .bash_profile. This allows you to โredirectโ the file if necessary (i.e. change something in it) without having to re-enter the system, etc.
source share