homebrew-core/Formula/goto.rb

21 lines
641 B
Ruby

class Goto < Formula
desc "Bash tool for navigation to aliased directories with auto-completion"
homepage "https://github.com/iridakos/goto"
url "https://github.com/iridakos/goto/archive/v2.0.0.tar.gz"
sha256 "460fe3994455501b50b2f771f999ace77ade295122e90e959084047dbfb1f0dc"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, all: "151a459ba41105325842a700dfca388a6df6512ca3b0b50173cae906cfc78509"
end
def install
bash_completion.install "goto.sh"
end
test do
assert_match "-F _complete_goto_bash",
shell_output("bash -c 'source #{bash_completion}/goto.sh && complete -p goto'")
end
end