#!/usr/bin/bash if [ $# -lt 2 ]; then echo "Arguments missing! Usage: pbnotify \"message title\" \"message body\"" exit 1 fi curl -u $PB_API:\ -X POST https://api.pushbullet.com/v2/pushes \ --header 'Content-Type: application/json' \ --data-binary "{\"type\": \"note\", \"title\": \"$1\", \"body\": \"$2\"}" \ --silent > /dev/null