Fix Taskwarrior autocompletion on Termux

If you use Taskwarrior on Termux, autocompletion doesn’t work out of the box, be it on Zsh or Bash.

I found out that the completions are available at $PREFIX/share/doc/task/scripts, but absent on the appropriate shell completion directories.

For zsh, I solved it by linking into zsh’s site-functions directory (vendor-completions didn’t do it):

$ cd $PREFIX/share/zsh/site-functions
$ ln -s $PREFIX/share/doc/task/scripts/zsh/_task

Now I can press tab and have my list of projects and all the good stuff I’m used to on my desktop. If use Bash, the solution should be analogous.

I opened an issue for it.

Relevant versions

  • Taskwarrior 2.5.3
  • Termux 0.114

See all posts