mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
lxc: fix bash completions
This commit is contained in:
parent
2bbe28463a
commit
e5b473afe9
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user