Remove ifttt

master
Jacopo De Simoi 4 years ago
parent d571f67a27
commit 1dac04abbb
  1. 26
      zshrc.org

@ -173,33 +173,7 @@ setup-pi-webcam()
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-$location}?T$narrow"
}
#+end_src
- ifttt helper
This sends the first argument as a maker event to IFTTT; the
function defines some completions; is there a way to retrieve
them from IFTTT?
#+begin_src sh :tangle "ifttt"
curl -X POST https://maker.ifttt.com/trigger/$1/with/key/$ifttt_apikey
#+end_src
Define the completions (by hand for the time being)
#+begin_src sh :tangle "_ifttt"
#compdef ifttt
_ifttt() {
integer ret=1
local -a args
args+=(
'1:event to be sent:(table-light table-light-off wu1 wu2 goodnight wind-down)'
)
_arguments $args[@] && ret=0
return ret
}
_ifttt
#+end_src
Load the function
#+begin_src sh
autoload ifttt
#+end_src
- This is an helper for moving a file to some other place and adding
a link back to the original position. ~bl~ stands for backlink

Loading…
Cancel
Save