class Sshrc < Formula desc "Bring your .bashrc, .vimrc, etc. with you when you SSH" homepage "https://github.com/Russell91/sshrc" url "https://github.com/Russell91/sshrc/archive/0.6.2.tar.gz" sha256 "ecae095eb69dedc3ea1058c2d6f7028ec626956f5f498a192d66d135aa2fad3d" head "https://github.com/Russell91/sshrc.git" bottle :unneeded def install bin.install %w[sshrc moshrc] end test do touch testpath/".sshrc" (testpath/"ssh").write <<~EOS #!/bin/sh true EOS chmod 0755, testpath/"ssh" ENV.prepend_path "PATH", testpath system "#{bin}/sshrc", "localhost" end end