Fish shell completions installed in wrong directory

Description:

According to fish shell's document, we should install completions into usr/share/fish/vendor_completions.d instead of usr/share/fish/completions/.

I don't know if it used to work, but as I tested with the latest fish version(4.2.1-1), it does not load the completions anymore.

Additional info:

  • package version(s): 0.30.0-1
  • config and/or log files:
  • link to upstream bug report, if any:

Steps to reproduce:

  1. pacman -S fish aichat
  2. Start fish and type aichat -- and press tab, nothing happens
  3. ln -s /usr/share/fish/completions/aichat.fish /usr/share/fish/vendor_completions.d/aichat.fish
  4. The tab completions now work.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information