diff --git a/todo.cfg b/todo.cfg index df374f2..cf21f79 100644 --- a/todo.cfg +++ b/todo.cfg @@ -10,8 +10,8 @@ export DONE_FILE="$TODO_DIR/done.txt" export REPORT_FILE="$TODO_DIR/report.txt" export TMP_FILE="$TODO_DIR/todo.tmp" -# Custom your actions directory location -#export TODO_ACTIONS_D="$HOME/.todo.actions.d" +# You can customize your actions directory location +#export TODO_ACTIONS_DIR="$HOME/.todo.actions.d" # == EDIT FILE LOCATIONS ABOVE === diff --git a/todo.sh b/todo.sh index 7e4aee2..300c640 100755 --- a/todo.sh +++ b/todo.sh @@ -206,10 +206,10 @@ help() TODOTXT_SORT_COMMAND="sort ..." customize list output EndHelp - if [ -d "$TODO_ACTIONS_D" ] + if [ -d "$TODO_ACTIONS_DIR" ] then echo "" - for action in "$TODO_ACTIONS_D/*" + for action in "$TODO_ACTIONS_DIR/*" do if [ -x $action ] then @@ -355,10 +355,10 @@ TODOTXT_SORT_COMMAND=${TODOTXT_SORT_COMMAND:-env LC_COLLATE=C sort -f -k2} export TODOTXT_VERBOSE TODOTXT_PLAIN TODOTXT_CFG_FILE TODOTXT_FORCE TODOTXT_PRESERVE_LINE_NUMBERS TODOTXT_AUTO_ARCHIVE TODOTXT_DATE_ON_ADD TODOTXT_SORT_COMMAND -if [ -z "$TODO_ACTIONS_D" -o ! -d "$TODO_ACTIONS_D" ] +if [ -z "$TODO_ACTIONS_DIR" -o ! -d "$TODO_ACTIONS_DIR" ] then - TODO_ACTIONS_D="$HOME/.todo.actions.d" - export TODO_ACTIONS_D + TODO_ACTIONS_DIR="$HOME/.todo.actions.d" + export TODO_ACTIONS_DIR fi TODO_SH="$0" @@ -513,9 +513,9 @@ then shift ## Reset action to new first argument action=$( printf "%s\n" "$1" | tr 'A-Z' 'a-z' ) -elif [ -d "$TODO_ACTIONS_D" -a -x "$TODO_ACTIONS_D/$action" ] +elif [ -d "$TODO_ACTIONS_DIR" -a -x "$TODO_ACTIONS_DIR/$action" ] then - "$TODO_ACTIONS_D/$action" "$@" + "$TODO_ACTIONS_DIR/$action" "$@" cleanup fi