mirror_lxc/config/bash/Makefile.am
Stéphane Graber 0306de4f28 Add bash auto completion
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>
2014-01-22 12:23:08 -05:00

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