From 4d0bd914e7c1ee65f4036e60149a7b891906a5d3 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Tue, 31 Oct 2023 17:54:07 +0000 Subject: Commit all to date. --- sys/orgdenv | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 sys/orgdenv (limited to 'sys/orgdenv') diff --git a/sys/orgdenv b/sys/orgdenv new file mode 100755 index 0000000..9c537eb --- /dev/null +++ b/sys/orgdenv @@ -0,0 +1,27 @@ +#!/bin/sh + +# Set up the full gamut of ORGD environment variables based on the prompt +# path. + +# Usage: +# orgdenv .profile +# Add all default orgd paths, e.g. $HOME/docs/wr/orgd into .profile. +# orgdenv .zshrc ~/.local/orgd +# Add orgd paths starting at ~/.local/orgd into .zshrc. +# TODO: finish the envvars off. + +[ -z "$1" ] && echo "You must provide a file to add into." && exit +[ -z "$2" ] && ORGD_ROOT="$HOME/docs/wr/orgd" || ORGD_ROOT="$2" + +echo "$1" +echo "$2" +touch "$1" + +cat > "$1" <<-END + export ORGD_ROOT="$ORGD_ROOT" + # kt + export ORGD_KT_PATH="$ORGD_ROOT/kt" + export ORGD_BIB_PATH="$ORGD_KT_PATH/biblio" + export ORGD_BIBCSV_PATH="$ORGD_KT_PATH/biblio.csv" + export ORGD_MED_PATH="$ORGD_ROOT/med" +END -- cgit v1.2.1