|
|
|
|
@ -24,7 +24,7 @@ Each environment has slightly different setups, which will be tangled to differe |
|
|
|
|
|
|
|
|
|
*** Include |
|
|
|
|
First, include a number of confidential data (such as API keys and |
|
|
|
|
such) |
|
|
|
|
such); for now, this is only relevant on my main box |
|
|
|
|
#+BEGIN_SRC sh :tangle ".zshrc" |
|
|
|
|
source .config/confidential.sh |
|
|
|
|
# This defines a number of env variables: |
|
|
|
|
@ -34,6 +34,7 @@ Each environment has slightly different setups, which will be tangled to differe |
|
|
|
|
# ifttt_apikey=xyz |
|
|
|
|
#+end_src |
|
|
|
|
*** KDE helpers |
|
|
|
|
This is also only relevant on the KDE box |
|
|
|
|
#+BEGIN_SRC sh :tangle ".zshrc" |
|
|
|
|
kde-current-activity () { |
|
|
|
|
qdbus org.kde.ActivityManager /ActivityManager/Activities org.kde.ActivityManager.Activities.CurrentActivity |
|
|
|
|
@ -99,7 +100,7 @@ setup-pi-webcam() |
|
|
|
|
#+end_src |
|
|
|
|
*** Misc helpers |
|
|
|
|
- wttr.in |
|
|
|
|
#+begin_src sh :tangle ".zshrc" |
|
|
|
|
#+begin_src sh :tangle '(".zshrc" ".zshrc.pi" ".zshrc.android") |
|
|
|
|
wttr() |
|
|
|
|
{ |
|
|
|
|
local location=Toronto |
|
|
|
|
@ -108,7 +109,7 @@ setup-pi-webcam() |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
- ifttt |
|
|
|
|
#+begin_src shell :tangle ".zshrc" |
|
|
|
|
#+begin_src shell :tangle '(".zshrc" ".zshrc.pi") |
|
|
|
|
ifttt () { |
|
|
|
|
curl -X POST https://maker.ifttt.com/trigger/$1/with/key/$ifttt_apikey |
|
|
|
|
} |
|
|
|
|
@ -168,7 +169,7 @@ setup-pi-webcam() |
|
|
|
|
|
|
|
|
|
#+end_src |
|
|
|
|
*** oh-my-zsh setup |
|
|
|
|
#+begin_src sh :tangle ".zshrc" |
|
|
|
|
#+begin_src sh :tangle '(".zshrc" ".zshrc.pi" ".zshrc.android") |
|
|
|
|
|
|
|
|
|
# Path to your oh-my-zsh configuration. |
|
|
|
|
ZSH=$HOME/.oh-my-zsh |
|
|
|
|
@ -272,7 +273,8 @@ setup-pi-webcam() |
|
|
|
|
|
|
|
|
|
autoload zmv |
|
|
|
|
#+end_src |
|
|
|
|
*** editor env variables |
|
|
|
|
*** TODO editor env variables |
|
|
|
|
This needs to be diff'd among the versions |
|
|
|
|
#+begin_src sh :tangle ".zshrc" |
|
|
|
|
|
|
|
|
|
# editor stuff |
|
|
|
|
|