# path, the 0 in the filename causes this to load first
path=(
  $path
  $HOME/.yadr/bin
  $HOME/.yadr/bin/yadr
)


# path, the 0 in the filename causes this to load first
#
# If you have duplicate entries on your PATH, run this command to fix it:
# PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')

pathAppend() {
  # Only adds to the path if it's not already there
  if ! echo $PATH | egrep -q "(^|:)$1($|:)" ; then
    PATH=$PATH:$1
  fi
}

pathAppend "$HOME/.yadr/bin"

Add /usr/local/opt/ruby@2.3/bin:/Users/marelo/.nvm/versions/node/v7.9.0/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/marelo/.yadr/bin:/Users/marelo/.yadr/bin/yadr duplicated entries fix
Add /usr/local/opt/ruby@2.3/bin:/Users/marelo/.nvm/versions/node/v7.9.0/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/Users/marelo/.yadr/bin:/Users/marelo/.yadr/bin/yadr duplicated entries fix
