#!/usr/bin/env bash function add-path { dir="$1" if [[ $PATH =~ "$dir" ]]; then return fi if [[ -d $dir ]]; then PATH=$dir:$PATH fi } add-path ~/.cargo/bin add-path ~/go/bin add-path /var/lib/gems/1.8/bin add-path /Library/Frameworks/Python.framework/Versions/2.7/bin add-path ~/Library/Python/2.7/bin add-path ~/.rvm/bin add-path ~/opt/bin add-path /usr/local/mysql/bin add-path /opt/vertica/bin add-path /opt/local/bin add-path /opt/local/sbin add-path ~/bin add-path /usr/local/go/bin add-path ~/.bin add-path ~/opt/depot_tools add-path ~/.yarn/bin unset -f _add-path