summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-18 22:54:17 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-18 22:54:17 +0200
commitd64c80b1d2184ab4f9f388dbae9a525bcc0bf487 (patch)
tree602cb601213820b2f9c3e57a9429ec4b8c3236f6
parent3ac738ce2e4ed8e69e9f26c209438751b43dbc0d (diff)
devtodo completion: Use 'command todo' (just in case)
-rw-r--r--etc/completions/_devtodo2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/completions/_devtodo b/etc/completions/_devtodo
index b367eea..0ff9039 100644
--- a/etc/completions/_devtodo
+++ b/etc/completions/_devtodo
@@ -88,7 +88,7 @@ function _todo_index () {
-u) todo_opts+=(--filter done)
esac
done
- for entry in $(todo $todo_opts -f +children --format display='%1>%i%n:%t\n'); do
+ for entry in $(command todo $todo_opts -f +children --format display='%1>%i%n:%t\n'); do
number=${entry%%:*}
depth=$(( ${#number} - ${#${number// }} ))
((depth)) && entry=${(j:.:)${${(s:.:):-a.${last_entry%%:*}}[2,depth+1]}}.$entry