From 41881902e8ea9dbd2976461048ad3d7907ba38a2 Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Sat, 27 Jul 2019 14:58:00 +0300 Subject: [PATCH] vagrant: add bash completions --- pkgs/development/tools/vagrant/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/vagrant/default.nix b/pkgs/development/tools/vagrant/default.nix index 7b47cf0aa089..324e22d491e2 100644 --- a/pkgs/development/tools/vagrant/default.nix +++ b/pkgs/development/tools/vagrant/default.nix @@ -68,6 +68,9 @@ in buildRubyGem rec { mkdir -p "$out/vagrant-plugins/plugins.d" echo '{}' > "$out/vagrant-plugins/plugins.json" + + mkdir -p $out/share/bash-completion/completions/ + cp -av contrib/bash/completion.sh $out/share/bash-completion/completions/vagrant '' + lib.optionalString withLibvirt '' substitute ${./vagrant-libvirt.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \