This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function push --description "Notify devices on Pushover.net" | |
| # TODO: use cli password manager to retrieve the keys ... | |
| set -x PO_API_TOKEN "a new pushover app api token " | |
| set -x PO_USER_KEY "your general pushove ruser key" | |
| curl -s -F "token=$PO_API_TOKEN" \ | |
| -F "user=$PO_USER_KEY" \ | |
| -F "title=$(hostname) System Message" \ | |
| -F "message=$argv" https://api.pushover.net/1/messages.json | |
| end |