FIX: Support $HOME and $TODOTXT_ACTIONS_DIR containing spaces.

And document a minor discrepancy in action completion to todo.sh.
This commit is contained in:
Ingo Karkat
2011-11-20 15:03:19 +01:00
parent b1d894f65d
commit d2e0f6e38d

View File

@@ -16,7 +16,8 @@ _todo()
mv prepend prep pri p replace report shorthelp"
# Add custom commands from add-ons, if installed.
local allCommands="$COMMANDS $('ls' ${TODO_ACTIONS_DIR:-$HOME/.todo.actions.d}/ 2>/dev/null)"
# TODO: Filter for executable flag of files found in $TODO_ACTIONS_DIR.
local allCommands="$COMMANDS $('ls' "${TODO_ACTIONS_DIR:-$HOME/.todo.actions.d}/" 2>/dev/null)"
local completions
if [ $COMP_CWORD -eq 1 ]; then