From a937cfe121885e40d5f27126d6c01bfa9f968d90 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 31 Dec 2018 20:23:53 -0500 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Configuration.md b/Configuration.md index 8593a72..539af98 100644 --- a/Configuration.md +++ b/Configuration.md @@ -8,6 +8,19 @@ Example configuration using `env` command: ```bash env CHROME_BINARY=google-chrome-stable RESOLUTION=1440,900 FETCH_PDF=False ./archive ~/Downloads/bookmarks_export.html ``` + +One way to have persistent config is to create a `~/.ArchiveBox.conf` file, and put your options inside it like so: + +```bash +CHROME_BINARY=google-chrome-stable +RESOLUTION=1440,900 +FETCH_PDF=False +``` + +Then source it when you run the archive script: + +```bash +export $(grep -v '^#' ~/.ArchiveBox.conf | xargs); ./archive https://example.com/rss/feed.xml --- ## Environment Variables