lxc: fix bash completions

This commit is contained in:
Meghea Iulian 2019-07-09 19:56:55 +03:00
parent 2bbe28463a
commit e5b473afe9

View File

@ -67,6 +67,17 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapPythonPrograms
completions=(
lxc-attach lxc-cgroup lxc-console lxc-destroy lxc-device lxc-execute
lxc-freeze lxc-info lxc-monitor lxc-snapshot lxc-stop lxc-unfreeze
)
pushd $out/share/bash-completion/completions/
mv lxc lxc-start
for completion in ''${completions[@]}; do
ln -sfn lxc-start $completion
done
popd
'';
meta = {