local -a reply match mbegin mend
zstyle -m ':task-quote-magic:\*' task-seps '*' ||
- zstyle -e ':task-quote-magic:*' task-seps 'reply=("#{}&<>''${histchars[1]}")'
+ zstyle -e ':task-quote-magic:*' task-seps 'reply=("#{}\`\"&<>''${histchars[1]}")'
+# TODO: recursively check if cmd is an alias of an alias of task
zstyle -m ':task-quote-magic' task-cmds '*' ||
zstyle -e ':task-quote-magic' task-cmds \
'zmodload -i zsh/parameter;
reply=( task
- ${(k)galiases[(R)(* |)task( *|)]:-}
${(k)aliases[(R)(* |)task( *|)]:-} )'
function task-quote-magic {