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:
@@ -16,7 +16,8 @@ _todo()
|
|||||||
mv prepend prep pri p replace report shorthelp"
|
mv prepend prep pri p replace report shorthelp"
|
||||||
|
|
||||||
# Add custom commands from add-ons, if installed.
|
# 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
|
local completions
|
||||||
if [ $COMP_CWORD -eq 1 ]; then
|
if [ $COMP_CWORD -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user