This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/plugins/taskwarrior/init.zsh

26 lines
583 B
Bash
Raw Normal View History

2011-08-30 23:16:15 -04:00
# Complete task.
completion_file="${0:h}/_task"
if [[ ! -e "$completion_file" ]] && ; then
if [[ -L "$completion_file" ]]; then
unlink "$completion_file" 2> /dev/null
fi
2011-08-30 23:16:15 -04:00
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
zstyle ':completion:*:*:task:*' verbose yes
zstyle ':completion:*:*:task:*:descriptions' format '%U%B%d%b%u'
zstyle ':completion:*:*:task:*' group-name ''
2011-08-30 23:16:15 -04:00
# Aliases
alias t=task
compdef _task t=task
2011-08-30 23:16:15 -04:00