adds install script for sourcing into PATH
This commit is contained in:
Executable
+13
@@ -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
|
||||||
Reference in New Issue
Block a user