From f4ed838662c6d1e0f8e36ef7261db5120409910d Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sun, 11 Apr 2021 11:04:16 -0400 Subject: [PATCH] rework the misc helpers section --- zshrc.org | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/zshrc.org b/zshrc.org index 5376183..498cf07 100644 --- a/zshrc.org +++ b/zshrc.org @@ -94,21 +94,22 @@ Each environment has slightly different setups, which will be tangled to differe #+end_src *** Misc helpers - #+begin_src sh :tangle ".zshrc" - - + - wttr.in + #+begin_src sh :tangle ".zshrc" wttr() { local location=Toronto [[ $(tput cols) -le 124 ]] && local narrow=n; 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 + - ifttt + #+begin_src shell + ifttt () { + curl -X POST https://maker.ifttt.com/trigger/$1/with/key/$ifttt_apikey + } + #+end_src +*** konsole helpers *** emacs helpers #+begin_src sh :tangle ".zshrc"