From 2802e211ee29aa24507c61f74adcdbaa925504e6 Mon Sep 17 00:00:00 2001 From: Ethan Kinnear <51250849+superatomic@users.noreply.github.com> Date: Sun, 17 Jul 2022 23:32:39 -0500 Subject: [PATCH] Simplify installation of `brew caveats` command --- Formula/brew-caveats.rb | 16 ---------------- README.md | 8 ++++---- cmd/brew-caveats.rb | 0 3 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 Formula/brew-caveats.rb mode change 100644 => 100755 cmd/brew-caveats.rb diff --git a/Formula/brew-caveats.rb b/Formula/brew-caveats.rb deleted file mode 100644 index 7639037..0000000 --- a/Formula/brew-caveats.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'formula' - -class BrewCaveats < Formula - url 'https://github.com/rafaelgarrido/homebrew-caveats.git' - desc 'Formulae Caveats Shortcut for Homebrew Package Manager' - homepage 'https://github.com/rafaelgarrido/homebrew-caveats' - version '0.1.0' - - skip_clean 'bin' - - def install - bin.install 'cmd/brew-caveats.rb' - (bin+'brew-caveats.rb').chmod 0755 - end - -end diff --git a/README.md b/README.md index 266fb47..ae4a88d 100644 --- a/README.md +++ b/README.md @@ -59,14 +59,14 @@ This is also valid for casks: You can install `brew caveats` in two ways. -1. Tap this repository and install via `brew` itself. +1. Tap this repository. 1. Install manually. -For the first method, do the following: +For the first method, run the following command: - brew tap rafaelgarrido/homebrew-caveats && brew install brew-caveats + brew tap rafaelgarrido/caveats -For the second method clone or download this repository. Then simply put the file `cmd/brew-caveats.rb` anywhere in your `$PATH`. For example: +For the second method, clone or download this repository. Then simply put the file `cmd/brew-caveats.rb` anywhere in your `$PATH`. For example: mv cmd/*-caveats.rb ~/bin diff --git a/cmd/brew-caveats.rb b/cmd/brew-caveats.rb old mode 100644 new mode 100755