# Find source dir DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$DIR" # Set temporary environment variable export SRCROOT=$DIR # Configure githooks folder path git config core.hooksPath .githooks