bin/pb @ 3d37ca22c5c5 bpollack/use-command-to-explicitly-call-ag-and-us-1442506830050

Use command to explicitly call ag, and use compound if block
author Benjamin Pollack <benjamin@bitquabit.com>
date Thu, 17 Sep 2015 16:20:42 +0000
parents 25ffd1bd1092
children f14a899254c7
#!/usr/bin/env bash

set -e

curl -F 'sprunge=<-' http://paste.stevelosh.com | tr -d '\n' | sed -e 's_sprunge-stevelosh.herokuapp.com_http://paste.stevelosh.com_' | pbcopy
echo
curl -s "`pbpaste`"
tput bold
echo ""
echo "Copied URL `pbpaste` to clipboard"