From 440fbaedc53cfcb248f7a1e69e2188b396f6a92e Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Sat, 30 Nov 2024 22:54:44 +0100 Subject: [PATCH] adds install script for sourcing into PATH --- install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 install.sh 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