diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..0147f6c --- /dev/null +++ b/install.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# This script adds the bin directory to PATH +# +# Usage: +# Source this script in your rc: +# source /path/to/here/install.sh + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +BIN_DIR="$SCRIPT_DIR/bin" + +if [ -d "$BIN_DIR" ] && [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then + export PATH="$PATH:$BIN_DIR" +fi