# Source: http://superuser.com/a/39995/215067
#
# Add a directory to $PATH if it's not aleady there.


pathaddstart() {
    if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
        PATH="$1${PATH:+":$PATH"}"
    fi
}


pathaddend() {
    if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
        PATH="${PATH:+"$PATH:"}$1"
    fi
}

Define helper functions for adding to the path
Define helper functions for adding to the path
