mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-14 09:53:28 +00:00

This adds a basic bash auto-completion profile. It supports 3 things at this time: - Auto-complete of container name (-n or -o) - Auto-complete of template name (-t) - Auto-complete of state names (-s) It's configured in a way to be as little disruptive as possible, any argument that's not explicitly handled by the profile will fallack to bash's default completion. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
15 lines
363 B
Makefile
15 lines
363 B
Makefile
EXTRA_DIST = lxc
|
|
|
|
if ENABLE_BASH
|
|
install-bash:
|
|
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
|
$(INSTALL_DATA) lxc $(DESTDIR)$(sysconfdir)/bash_completion.d/
|
|
|
|
uninstall-bash:
|
|
rm -f $(DESTDIR)$(sysconfdir)/bash_completion.d/lxc
|
|
rmdir $(DESTDIR)$(sysconfdir)/bash_completion.d/ || :
|
|
|
|
install-data-local: install-bash
|
|
uninstall-local: uninstall-bash
|
|
endif
|