Merge pull request #294003 from lucc/vagrant-completion
vagrant: install zsh completion
This commit is contained in:
commit
63411b26d0
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue