From 2a095e05704c1bb9dbf8cdc2407dcfe3be32e827 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 3 Oct 2017 09:34:02 +0100 Subject: [PATCH] profile: add secrets file --- .gitignore | 1 + .profile | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 0dbe282..6b08f84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ bookmarks +.config/secrets *.log .xournal/recent-files diff --git a/.profile b/.profile index 1e4cd6b..cbc05ab 100644 --- a/.profile +++ b/.profile @@ -15,6 +15,13 @@ export BROWSER="chromium" export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" export QT_QPA_PLATFORMTHEME=gtk2 +# Source secret keys and values into environment +if [ -f "$CONFIG_DIR/secrets" ]; then + set -o allexport + source $CONFIG_DIR/secrets + set +o allexport +fi + # Merge system clipboards if ! [ -z $DISPLAY ] && which autocutsel &>/dev/null; then autocutsel -fork &