Home

Awesome

pushbullet-exit

BASH script to send a pushbullet notification upon the exit of a unix shell command.

pushbullet-exit uses the Pushbullet API v2 to send a notification to your device when run. This can include an exit status to let you know that your command ran successfully or not, or it can just act as a naive indicator.

##Requirements:

##Instructions:

It's generally useful to call the script as part of a larget command, eg make install; ./pushbullet-exit.sh $?. Remember to use ;, as && will not run the script if the previous command fails.

##Account Token Handling This branch is reworking the handling of account tokens. Tokens are looked for in this priority:

  1. A -t flag when the script is called, manually specifying the key.
  2. An environment variable called PUSHBULLET_ACCT_TOKEN
  3. As the first line in ~/.config/pushbullet. This is similar to how pushbullet-bash, another pushbullet bash script on GitHub, handles tokens.
  4. In a file called acct-token in the current directory (Will be deprecated on April 1, 2015.)

##Future Features: