rework the misc helpers section

master
Jacopo De Simoi 5 years ago
parent 4e522c96e6
commit f4ed838662
  1. 17
      zshrc.org

@ -94,21 +94,22 @@ Each environment has slightly different setups, which will be tangled to differe
#+end_src #+end_src
*** Misc helpers *** Misc helpers
#+begin_src sh :tangle ".zshrc" - wttr.in
#+begin_src sh :tangle ".zshrc"
wttr() wttr()
{ {
local location=Toronto local location=Toronto
[[ $(tput cols) -le 124 ]] && local narrow=n; [[ $(tput cols) -le 124 ]] && local narrow=n;
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-$location}?T$narrow" curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-$location}?T$narrow"
} }
#ifttt
ifttt () {
curl -X POST https://maker.ifttt.com/trigger/$1/with/key/$ifttt_apikey
}
#+end_src #+end_src
- ifttt
#+begin_src shell
ifttt () {
curl -X POST https://maker.ifttt.com/trigger/$1/with/key/$ifttt_apikey
}
#+end_src
*** konsole helpers
*** emacs helpers *** emacs helpers
#+begin_src sh :tangle ".zshrc" #+begin_src sh :tangle ".zshrc"

Loading…
Cancel
Save