mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-12-04 15:31:01 +01:00
only offer pushover if token variable set
This commit is contained in:
parent
4edf109dcd
commit
1c10548a77
20
zsh/scripts
20
zsh/scripts
@ -39,15 +39,17 @@ function manp() {
|
|||||||
man -t $1 | pstopdf -o $TMPDIR/$1.pdf && open $TMPDIR/$1.pdf && sleep 1 && rm $TMPDIR/$1.pdf
|
man -t $1 | pstopdf -o $TMPDIR/$1.pdf && open $TMPDIR/$1.pdf && sleep 1 && rm $TMPDIR/$1.pdf
|
||||||
}
|
}
|
||||||
|
|
||||||
# pushover notification
|
# Send pushover notification (if set)
|
||||||
function pushover() {
|
if [[ -z "$pushover_token" ]]; then
|
||||||
curl -s \
|
function pushover() {
|
||||||
--form-string "token=$pushover_token" \
|
curl -s \
|
||||||
--form-string "user=$pushover_user" \
|
--form-string "token=$pushover_token" \
|
||||||
--form-string "title=$HOST" \
|
--form-string "user=$pushover_user" \
|
||||||
--form-string "message=$1" \
|
--form-string "title=$HOST" \
|
||||||
https://api.pushover.net/1/messages.json
|
--form-string "message=$1" \
|
||||||
}
|
https://api.pushover.net/1/messages.json
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# png to jpeg 95
|
# png to jpeg 95
|
||||||
function png2jpeg() {
|
function png2jpeg() {
|
||||||
|
Loading…
Reference in New Issue
Block a user