#!/bin/sh
#
# https://github.com/rtomayko/dotfiles
#
# Usage: pbcurl <options>
# Shorthand for: curl -L <options> "$(pbpaste)"
if [ $(uname -a | grep -ci Darwin) != 1 ]; then
  echo "Sorry, this script only works on macOS"
  exit 1
fi

exec curl -L "$@" $(pbpaste)
