14 lines
330 B
Bash
Executable File
14 lines
330 B
Bash
Executable File
#!/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
|