From e5b473afe998aa6a99ee1b5e845f01672e1d3acf Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Tue, 9 Jul 2019 19:56:55 +0300 Subject: [PATCH] lxc: fix bash completions --- pkgs/os-specific/linux/lxc/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/os-specific/linux/lxc/default.nix b/pkgs/os-specific/linux/lxc/default.nix index a8668313465a..e834a769c78d 100644 --- a/pkgs/os-specific/linux/lxc/default.nix +++ b/pkgs/os-specific/linux/lxc/default.nix @@ -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 = {