Remove new line from beginning of completion script

This commit is contained in:
sophia 2020-10-14 12:10:58 -05:00
parent 2a675ba481
commit fb1faed525
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,3 @@
#compdef _vagrant vagrant
# ZSH completion for Vagrant
@ -26,6 +25,7 @@ __plugin_list ()
function _vagrant () {
local -a sub_commands && sub_commands=(
'autocomplete:manages autocomplete installation on host'
'box:manages boxes: installation, removal, etc.'
'cloud:manages everything related to Vagrant Cloud'
'destroy:stops and deletes all traces of the vagrant machine'
@ -316,6 +316,8 @@ case $state in
(options)
case $line[1] in
autocomplete)
__vagrant-autocomplete ;;
box)
__vagrant-box ;;
cloud)

View File

@ -1,7 +1,6 @@
require 'open3'
HEAD = """
#compdef _vagrant vagrant
HEAD = """#compdef _vagrant vagrant
# ZSH completion for Vagrant
#
@ -163,4 +162,4 @@ def generate_script
script
end
puts generate_script
puts generate_script