AMENDME DIfferentiate the different boxes

master
Jacopo De Simoi 5 years ago
parent cf64e4bb76
commit 15ec96ebaf
  1. 12
      zshrc.org

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

Loading…
Cancel
Save