1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-20 12:01:12 +00:00
prezto/plugins/taskwarrior/init.zsh
2012-01-23 20:40:39 -05:00

26 lines
583 B
Bash

# Complete task.
completion_file="${0:h}/_task"
if [[ ! -e "$completion_file" ]] && ; then
if [[ -L "$completion_file" ]]; then
unlink "$completion_file" 2> /dev/null
fi
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 ''
# Aliases
alias t=task
compdef _task t=task