summaryrefslogtreecommitdiff
path: root/.zsh_taskwarrior
diff options
context:
space:
mode:
authorHendrik Jaeger <git-commit@henk.geekmail.org>2016-09-25 00:02:32 +0200
committerHendrik Jaeger <git-commit@henk.geekmail.org>2016-09-25 00:02:32 +0200
commit52e3d2e3163d4a40b9b87810963b55ceaeeaa14a (patch)
treeaa3f68a9ecf58eeb0455c83dd8b3d1a7c3573d7b /.zsh_taskwarrior
parentd443352c96f036858b34c4827d8690ed69c04709 (diff)
Taskwarrior and media convenience
Diffstat (limited to '.zsh_taskwarrior')
-rw-r--r--.zsh_taskwarrior34
1 files changed, 34 insertions, 0 deletions
diff --git a/.zsh_taskwarrior b/.zsh_taskwarrior
new file mode 100644
index 0000000..c579511
--- /dev/null
+++ b/.zsh_taskwarrior
@@ -0,0 +1,34 @@
+### BEGIN task auto-completion ###
+fpath=($fpath /usr/local/share/doc/task/scripts/zsh)
+autoload -Uz compinit
+compinit -i
+
+# OPTIONAL
+# be verbose, i.e. show descriptions
+zstyle ':completion:*' verbose yes
+zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
+
+# group by tag names
+zstyle ':completion:*' group-name ''
+
+# OPTIONAL
+# colors
+autoload colors && colors
+
+# The magic works as follows:
+# * (#b) activates the use of brackets within regular expressions
+# * the part to the next = character is a regular expression to be matched
+# * color codes are separated with = characters
+# * the first code is the default color
+# * the other codes define the colors of the 1st, 2nd, etc. pair of brackets
+# (See http://zshwiki.org/home/examples/compsys/colors for a detailed description.)
+
+# You can use zstyle to configure the completion behaviour.
+# Here is an example of adding colors to the list of suggestions:
+
+# zstyle ':completion:*:*:task:*:arguments' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[bold];$color[blue]"
+# zstyle ':completion:*:*:task:*:default' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[green]"
+# zstyle ':completion:*:*:task:*:values' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[bold];$color[red]"
+# zstyle ':completion:*:*:task:*:commands' list-colors "=(#b) #([^-]#)*=$color[cyan]=$color[yellow]"
+
+### END task auto-completion ### \ No newline at end of file