Because all LXD commands start with lxc (for example
lxc config edit), Arch tries to use LXCs auto complete for the commands and so auto complete doesn’t work at all for LXD commands.
I’ve successfully fixed this by porting over the auto complete from a snap install (taking the lxd.lxc file and the lxc symbolic link and putting them in /usr/share/bash-completions/completions) but every time either LXC or the auto completion package updates, the symbolic link file gets overwritten by the new LXC auto-completions and everything breaks again. Is there any way I can override this auto completion permanently? I suspect I can use my
bash_profile file, but I’m unsure exactly how.