gb_bash: managing bash functions

This library defines the gb_load bash function, that can be used to load other bash scripts. The scripts will be found when they are somewhere in any of the directories listed in the bash variable GB_PATH. This variable contains one or more directories seperated by columns (:), just like the usual PATH variable the contains a list of directories that is searched when you try to execute a program or script. In addition gb_bash provides the gb_addpath command that makes it easy to create a GB_PATH variable.

Installation

Get the git repository. Assuming you keep your git repos in ~/git then:

cd ~/git
git clone lilo.science.ru.nl:/vol/thchem/git/gb_bash
# If you already have it, you may want to update it:
git pull

Add the following to your ~/.bashrc file:

. ~/git/gb_boot.sh || echo "$0: ERROR: cannot load ~/git/gb_boot.sh"