vrms
(Gunnar)
October 31, 2023, 3:07pm
1
Continuing the discussion from [LXD 4.7] Autocompletion on ubuntu 20.04 :
I would love to have some bash completion for lxd/Incus. By that I mean that when typing something like
lxc list deb <tab>
will autocomplete to i.e. debian
, debian12
lxc exe <tab>
will autocomplete to exec
…
where would you get that file (lxd.lxc
) from exactly?
I am on manjaro linux, running lxd 5.7
, installed via pacman.
Is it a shortcoming of the distributions package if that is nowhere on the system?
stgraber
(Stéphane Graber)
October 31, 2023, 5:56pm
2
Yes, the file is available in the upstream repository.
Same deal for incus, we have a bash completion script, our Debian packages include that file as you can see when using tab-completion at Linux Containers - Incus - Try it online
The file is here in the upstream repo: https://github.com/lxc/incus/blob/main/scripts/bash/incus
vrms
(Gunnar)
October 31, 2023, 6:48pm
3
thx. Maybe things got mixed up when I switched from snap lxd to pacman lxd.