Add comments.

This commit is contained in:
Scott Wallace 2016-02-16 20:19:31 +00:00
parent 5257725a34
commit b1b217cde8

View file

@ -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