# function to source files if they exist
# set second argument to true to only source the file in interactive shell

add_file() {
  case $1 in
    /*) [ -f "$1" ] && cat "$1" ;;
    *) [ -f "${HOME%/}"/"$1" ] && cat "${HOME%/}"/"$1" ;;
  esac
}
