From b1b217cde8dc3e83d72a8ac319336931caa4620b Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 16 Feb 2016 20:19:31 +0000 Subject: [PATCH] Add comments. --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index 0f225d6..44b7801 100644 --- a/.bashrc +++ b/.bashrc @@ -1,8 +1,12 @@ +#-------------------------------------------------------------------------------- +# Function to prepend PATH only if it doesn't already exist +#-------------------------------------------------------------------------------- pathadd() { if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then PATH="$1${PATH:+":$PATH"}" fi } +#-------------------------------------------------------------------------------- #-------------------------------------------------------------------------------- # The best editor