diff options
author | Meghea Iulian <iulian.meghea@gmail.com> | 2019-07-09 19:56:55 +0300 |
---|---|---|
committer | Meghea Iulian <iulian.meghea@gmail.com> | 2019-07-12 16:39:28 +0300 |
commit | e5b473afe998aa6a99ee1b5e845f01672e1d3acf (patch) | |
tree | 97c6f78ac453d66edb4a60f6fa901be49977961f /pkgs/os-specific/linux/lxc | |
parent | 2bbe28463aeb9ffcac5cc8da239a50c6c26fccd4 (diff) |
lxc: fix bash completions
Diffstat (limited to 'pkgs/os-specific/linux/lxc')
-rw-r--r-- | pkgs/os-specific/linux/lxc/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/lxc/default.nix b/pkgs/os-specific/linux/lxc/default.nix index a8668313465a1..e834a769c78d4 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 = { |