summaryrefslogtreecommitdiff
path: root/.zsh_taskwarrior
blob: ea9104e3d2b713e035890513b1cbf32b34f906fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 ###