Merge pull request #294003 from lucc/vagrant-completion

vagrant: install zsh completion
This commit is contained in:
Pol Dellaiera 2024-03-27 09:25:06 +01:00 committed by GitHub
commit 63411b26d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,8 +91,12 @@ in buildRubyGem rec {
mkdir -p "$out/vagrant-plugins/plugins.d"
echo '{}' > "$out/vagrant-plugins/plugins.json"
# install bash completion
mkdir -p $out/share/bash-completion/completions/
cp -av contrib/bash/completion.sh $out/share/bash-completion/completions/vagrant
# install zsh completion
mkdir -p $out/share/zsh/site-functions/
cp -av contrib/zsh/_vagrant $out/share/zsh/site-functions/
'' +
lib.optionalString withLibvirt ''
substitute ${./vagrant-libvirt.json.in} $out/vagrant-plugins/plugins.d/vagrant-libvirt.json \