1 2 3 4 5
addNodePath () { addToSearchPath NODE_PATH $1/node_modules } envHooks=(${envHooks[@]} addNodePath)