On 11. Feb 2021, at 10.30, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
Sure, I think that’s at least one thing that’s safe to ask. Something like this: Where do you want to store Zsh config, cache and history files? 1. All in your $HOME dir. 2. All in another dir of you choosing 3. In the standard locations defined by the XDG Base Directory Specification (subdirs in ~/.config, ~/.cache and ~/.local/share, respectively, by default).
That’s not necessary. compdump saves $ZSH_VERSION in the compdump file and compinit checks for it: https://github.com/zsh-users/zsh/blob/2cf6032a301d994c578e5e1942c4815e85651647/Completion/compinit#L491
No, but it is necessary _before_ compinit. And compinit even has a style it checks and which should thus be set before running compinit: https://github.com/zsh-users/zsh/blob/2cf6032a301d994c578e5e1942c4815e85651647/Completion/compinit#L566
No, I didn’t give a reason. I tried out both _list and _oldlist, but both seemed unnecessary to get the behavior I’m after. |