Export variables so that they can be easily used in actions
Signed-off-by: Gina Trapani <ginatrapani@gmail.com>
This commit is contained in:
committed by
Gina Trapani
parent
7736e6b4fa
commit
5683490c0e
56
todo.cfg
56
todo.cfg
@@ -1,41 +1,41 @@
|
||||
# === EDIT FILE LOCATIONS BELOW ===
|
||||
|
||||
# Your todo.txt directory
|
||||
#TODO_DIR="/Users/gina/Documents/todo"
|
||||
TODO_DIR="C:/Documents and Settings/gina/My Documents"
|
||||
#export TODO_DIR="/Users/gina/Documents/todo"
|
||||
export TODO_DIR="C:/Documents and Settings/gina/My Documents"
|
||||
|
||||
# Your todo/done/report.txt locations
|
||||
TODO_FILE="$TODO_DIR/todo.txt"
|
||||
DONE_FILE="$TODO_DIR/done.txt"
|
||||
REPORT_FILE="$TODO_DIR/report.txt"
|
||||
TMP_FILE="$TODO_DIR/todo.tmp"
|
||||
export TODO_FILE="$TODO_DIR/todo.txt"
|
||||
export DONE_FILE="$TODO_DIR/done.txt"
|
||||
export REPORT_FILE="$TODO_DIR/report.txt"
|
||||
export TMP_FILE="$TODO_DIR/todo.tmp"
|
||||
|
||||
# == EDIT FILE LOCATIONS ABOVE ===
|
||||
|
||||
# === COLOR MAP ===
|
||||
|
||||
NONE=''
|
||||
BLACK='\\033[0;30m'
|
||||
RED='\\033[0;31m'
|
||||
GREEN='\\033[0;32m'
|
||||
BROWN='\\033[0;33m'
|
||||
BLUE='\\033[0;34m'
|
||||
PURPLE='\\033[0;35m'
|
||||
CYAN='\\033[0;36m'
|
||||
LIGHT_GREY='\\033[0;37m'
|
||||
DARK_GREY='\\033[1;30m'
|
||||
LIGHT_RED='\\033[1;31m'
|
||||
LIGHT_GREEN='\\033[1;32m'
|
||||
YELLOW='\\033[1;33m'
|
||||
LIGHT_BLUE='\\033[1;34m'
|
||||
LIGHT_PURPLE='\\033[1;35m'
|
||||
LIGHT_CYAN='\\033[1;36m'
|
||||
WHITE='\\033[1;37m'
|
||||
DEFAULT='\\033[0m'
|
||||
export NONE=''
|
||||
export BLACK='\\033[0;30m'
|
||||
export RED='\\033[0;31m'
|
||||
export GREEN='\\033[0;32m'
|
||||
export BROWN='\\033[0;33m'
|
||||
export BLUE='\\033[0;34m'
|
||||
export PURPLE='\\033[0;35m'
|
||||
export CYAN='\\033[0;36m'
|
||||
export LIGHT_GREY='\\033[0;37m'
|
||||
export DARK_GREY='\\033[1;30m'
|
||||
export LIGHT_RED='\\033[1;31m'
|
||||
export LIGHT_GREEN='\\033[1;32m'
|
||||
export YELLOW='\\033[1;33m'
|
||||
export LIGHT_BLUE='\\033[1;34m'
|
||||
export LIGHT_PURPLE='\\033[1;35m'
|
||||
export LIGHT_CYAN='\\033[1;36m'
|
||||
export WHITE='\\033[1;37m'
|
||||
export DEFAULT='\\033[0m'
|
||||
|
||||
# === PRIORITY COLORS ===
|
||||
|
||||
PRI_A=$YELLOW # color for A priority
|
||||
PRI_B=$GREEN # color for B priority
|
||||
PRI_C=$LIGHT_BLUE # color for C priority
|
||||
PRI_X=$WHITE # color for rest of them
|
||||
export PRI_A=$YELLOW # color for A priority
|
||||
export PRI_B=$GREEN # color for B priority
|
||||
export PRI_C=$LIGHT_BLUE # color for C priority
|
||||
export PRI_X=$WHITE # color for rest of them
|
||||
|
||||
4
todo.sh
4
todo.sh
@@ -195,6 +195,8 @@ PRESERVE_LINE_NUMBERS=1
|
||||
AUTO_ARCHIVE=1
|
||||
DATE_ON_ADD=0
|
||||
|
||||
export VERBOSE PLAIN CFG_FILE FORCE PRESERVE_LINE_NUMBERS AUTO_ARCHIVE DATE_ON_ADD
|
||||
|
||||
while getopts ":fhpnatvVd:" Option
|
||||
do
|
||||
case $Option in
|
||||
@@ -660,7 +662,7 @@ note: PRIORITY must be anywhere from A to Z."
|
||||
usage
|
||||
if [ -d "$HOME/.todo.actions.d" ]; then
|
||||
if [ -x "$HOME/.todo.actions.d/$action" ]; then
|
||||
CFG_FILE="$CFG_FILE" "$HOME/.todo.actions.d/$action" "$@"
|
||||
"$HOME/.todo.actions.d/$action" "$@"
|
||||
else
|
||||
usage
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user