Skip to content

Commit

Permalink
lima 0.7.1
Browse files Browse the repository at this point in the history
Also add zsh and fish completions (supported since lima 0.7.0).

Closes #86859.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Signed-off-by: Branch Vincent <19800529+branchvincent@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
AkihiroSuda authored and BrewTestBot committed Oct 8, 2021
1 parent 9f3dfd1 commit 1763395
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Formula/lima.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Lima < Formula
desc "Linux virtual machines"
homepage "https://github.com/lima-vm/lima"
url "https://github.com/lima-vm/lima/archive/v0.6.4.tar.gz"
sha256 "3795568924c0c5eabbc6528b457a0c120383717a7f5c9a64252f032070da5afd"
url "https://github.com/lima-vm/lima/archive/v0.7.1.tar.gz"
sha256 "635d03bde3a8e592350394d45f06b9bdea1dffe747b5a9739711d6e937f2faab"
license "Apache-2.0"

bottle do
Expand All @@ -22,9 +22,13 @@ def install
bin.install Dir["_output/bin/*"]
share.install Dir["_output/share/*"]

# Install bash completion
# Install shell completions
output = Utils.safe_popen_read("#{bin}/limactl", "completion", "bash")
(bash_completion/"limactl").write output
output = Utils.safe_popen_read("#{bin}/limactl", "completion", "zsh")
(zsh_completion/"_limactl").write output
output = Utils.safe_popen_read("#{bin}/limactl", "completion", "fish")
(fish_completion/"limactl.fish").write output
end

test do
Expand Down

0 comments on commit 1763395

Please sign in to comment.