Browse code

Adds oh-my-zsh plugin to load TaskWarrior completions

Pete Clark authored on 24/05/2011 at 19:29:05
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,21 @@
0
+################################################################################
1
+# Author: Pete Clark
2
+# Email: pete[dot]clark[at]gmail[dot]com
3
+# Version: 0.1 (05/24/2011)
4
+# License: WTFPL<http://sam.zoy.org/wtfpl/>
5
+#
6
+# This oh-my-zsh plugin adds smart tab completion for
7
+# TaskWarrior<http://taskwarrior.org/>. It uses the zsh tab completion
8
+# script (_task) distributed with TaskWarrior for the completion definitions.
9
+#
10
+# Typing task[tabtab] will give you a list of current tasks, task 66[tabtab]
11
+# gives a list of available modifications for that task, etc.
12
+################################################################################
13
+
14
+zstyle ':completion:*:*:task:*' verbose yes
15
+zstyle ':completion:*:*:task:*:descriptions' format '%U%B%d%b%u'
16
+
17
+zstyle ':completion:*:*:task:*' group-name ''
18
+
19
+alias t=task
20
+compdef _task t=task