Skip to content

How to load tabtab completion? #180

Answered by marlonrichert
muuvmuuv asked this question in Q&A
Discussion options

You must be logged in to vote

pnpm install-completion zsh creates two new files:

  • ~/.config/tabtab/zsh/__tabtab.zsh and
  • ~/.config/tabtab/zsh/pnpm.zsh.

It then goes on to modify ~/.zshrc (and if it doesn't exist, first creates it).

This (modifying a user's dotfiles) is a big NO-NO in Unix land! You should file a bug report with pnpm about this. Plus, if your $ZDOTDIR is set to something else than $HOME, this won't even enable pnpm completion (because then, $ZDOTDIR/.zshrc is read at startup, instead of ~/.zshrc.

What pnpm really should be doing is to install its completion function to /usr/local/share/zsh/site-functions, as I described here on Stack Overflow. You can include that link your bug report. If they do it th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@muuvmuuv
Comment options

Answer selected by marlonrichert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants