You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
583 B
26 lines
583 B
13 years ago
|
# Complete task.
|
||
|
completion_file="${0:h}/_task"
|
||
|
if [[ ! -e "$completion_file" ]] && ; then
|
||
|
if [[ -L "$completion_file" ]]; then
|
||
|
unlink "$completion_file" 2> /dev/null
|
||
|
fi
|
||
13 years ago
|
|
||
13 years ago
|
if (( $+commands[taskwarrior] )); then
|
||
|
ln -s \
|
||
|
"${commands[task]:h:h}/share/doc/task/scripts/zsh/_task" \
|
||
|
"$completion_file" \
|
||
|
2> /dev/null
|
||
|
fi
|
||
|
fi
|
||
|
unset completion_file
|
||
|
|
||
|
# Style
|
||
13 years ago
|
zstyle ':completion:*:*:task:*' verbose yes
|
||
|
zstyle ':completion:*:*:task:*:descriptions' format '%U%B%d%b%u'
|
||
|
zstyle ':completion:*:*:task:*' group-name ''
|
||
|
|
||
13 years ago
|
# Aliases
|
||
13 years ago
|
alias t=task
|
||
|
compdef _task t=task
|
||
13 years ago
|
|