]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/functions/task-quote-magic
zsh: add todo to recursively check for task aliases in task-quote-magic
[dotfiles.git] / zsh / functions / task-quote-magic
index 96343208fd1498d623154b2db834cc5d8b391011..415c7d13f9ced6e474c252953494e1942a96ec10 100644 (file)
 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 {