mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #294003 from lucc/vagrant-completion
vagrant: install zsh completion
This commit is contained in:
commit
63411b26d0
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user