Export variables so that they can be easily used in actions

Signed-off-by: Gina Trapani <ginatrapani@gmail.com>
This commit is contained in:
Ed Blackman
2009-03-07 10:35:08 +08:00
committed by Gina Trapani
parent 7736e6b4fa
commit 5683490c0e
2 changed files with 31 additions and 29 deletions

View File

@@ -1,41 +1,41 @@
# === EDIT FILE LOCATIONS BELOW === # === EDIT FILE LOCATIONS BELOW ===
# Your todo.txt directory # Your todo.txt directory
#TODO_DIR="/Users/gina/Documents/todo" #export TODO_DIR="/Users/gina/Documents/todo"
TODO_DIR="C:/Documents and Settings/gina/My Documents" export TODO_DIR="C:/Documents and Settings/gina/My Documents"
# Your todo/done/report.txt locations # Your todo/done/report.txt locations
TODO_FILE="$TODO_DIR/todo.txt" export TODO_FILE="$TODO_DIR/todo.txt"
DONE_FILE="$TODO_DIR/done.txt" export DONE_FILE="$TODO_DIR/done.txt"
REPORT_FILE="$TODO_DIR/report.txt" export REPORT_FILE="$TODO_DIR/report.txt"
TMP_FILE="$TODO_DIR/todo.tmp" export TMP_FILE="$TODO_DIR/todo.tmp"
# == EDIT FILE LOCATIONS ABOVE === # == EDIT FILE LOCATIONS ABOVE ===
# === COLOR MAP === # === COLOR MAP ===
NONE='' export NONE=''
BLACK='\\033[0;30m' export BLACK='\\033[0;30m'
RED='\\033[0;31m' export RED='\\033[0;31m'
GREEN='\\033[0;32m' export GREEN='\\033[0;32m'
BROWN='\\033[0;33m' export BROWN='\\033[0;33m'
BLUE='\\033[0;34m' export BLUE='\\033[0;34m'
PURPLE='\\033[0;35m' export PURPLE='\\033[0;35m'
CYAN='\\033[0;36m' export CYAN='\\033[0;36m'
LIGHT_GREY='\\033[0;37m' export LIGHT_GREY='\\033[0;37m'
DARK_GREY='\\033[1;30m' export DARK_GREY='\\033[1;30m'
LIGHT_RED='\\033[1;31m' export LIGHT_RED='\\033[1;31m'
LIGHT_GREEN='\\033[1;32m' export LIGHT_GREEN='\\033[1;32m'
YELLOW='\\033[1;33m' export YELLOW='\\033[1;33m'
LIGHT_BLUE='\\033[1;34m' export LIGHT_BLUE='\\033[1;34m'
LIGHT_PURPLE='\\033[1;35m' export LIGHT_PURPLE='\\033[1;35m'
LIGHT_CYAN='\\033[1;36m' export LIGHT_CYAN='\\033[1;36m'
WHITE='\\033[1;37m' export WHITE='\\033[1;37m'
DEFAULT='\\033[0m' export DEFAULT='\\033[0m'
# === PRIORITY COLORS === # === PRIORITY COLORS ===
PRI_A=$YELLOW # color for A priority export PRI_A=$YELLOW # color for A priority
PRI_B=$GREEN # color for B priority export PRI_B=$GREEN # color for B priority
PRI_C=$LIGHT_BLUE # color for C priority export PRI_C=$LIGHT_BLUE # color for C priority
PRI_X=$WHITE # color for rest of them export PRI_X=$WHITE # color for rest of them

View File

@@ -195,6 +195,8 @@ PRESERVE_LINE_NUMBERS=1
AUTO_ARCHIVE=1 AUTO_ARCHIVE=1
DATE_ON_ADD=0 DATE_ON_ADD=0
export VERBOSE PLAIN CFG_FILE FORCE PRESERVE_LINE_NUMBERS AUTO_ARCHIVE DATE_ON_ADD
while getopts ":fhpnatvVd:" Option while getopts ":fhpnatvVd:" Option
do do
case $Option in case $Option in
@@ -660,7 +662,7 @@ note: PRIORITY must be anywhere from A to Z."
usage usage
if [ -d "$HOME/.todo.actions.d" ]; then if [ -d "$HOME/.todo.actions.d" ]; then
if [ -x "$HOME/.todo.actions.d/$action" ]; then if [ -x "$HOME/.todo.actions.d/$action" ]; then
CFG_FILE="$CFG_FILE" "$HOME/.todo.actions.d/$action" "$@" "$HOME/.todo.actions.d/$action" "$@"
else else
usage usage
fi fi