From a3c3b8d6bf1714f7bbb2c9c57674b58c8aaae20f Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Wed, 17 Feb 2021 23:24:40 -0500 Subject: [PATCH] Move confidential information into another file --- zshrc.org | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/zshrc.org b/zshrc.org index 96a92f7..84f4672 100644 --- a/zshrc.org +++ b/zshrc.org @@ -22,6 +22,17 @@ This is my ~.zshrc~; it will be used in many environments: Each environment has slightly different setups, which will be tangled to different files +*** Include + First, include a number of confidential data (such as API keys and + such) + #+BEGIN_SRC sh :tangle ".zshrc" + source .config/confidential.sh + # This defines a number of env variables: + # ANDROID_A3=xxxx + # ANDROID_BLU=xxx + # ANDROID_IP=xxx.xxx.xxx.xxx + # ifttt_apikey=xyz + #+end_src *** KDE helpers #+BEGIN_SRC sh :tangle ".zshrc" kde-current-activity () { @@ -47,10 +58,6 @@ Each environment has slightly different setups, which will be tangled to differe adb shell am broadcast --user 0 -a net.dinglish.tasker.run_task -e task "$1" } - ANDROID_A3=A3201809076708 - ANDROID_BLU=6LFUQ86DYLOFCANR - ANDROID_IP=192.168.0.22 - android-remote-keyboard() { # should set this up in a tmux session @@ -99,7 +106,7 @@ Each environment has slightly different setups, which will be tangled to differe #ifttt ifttt () { - curl -X POST https://maker.ifttt.com/trigger/$1/with/key/JLJw_lpzFTzDQetjix9Hr + curl -X POST https://maker.ifttt.com/trigger/$1/with/key/$ifttt_apikey } #+end_src *** emacs helpers