From c926863c67d1346ff91c353613d0e991208a91d4 Mon Sep 17 00:00:00 2001 From: Bhagya Silva Date: Thu, 11 Jul 2019 17:45:51 +0200 Subject: [PATCH 1/2] Adding brew installer --- README.md | 3 +++ brew_formula/vimv.rb | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 brew_formula/vimv.rb diff --git a/README.md b/README.md index af3680c..8af6cde 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,6 @@ Or simply copy the `vimv` file to a location in your `$PATH` and make it executa ## Gotchas Don't delete or swap the lines while in Vim or things will get ugly. + +## Contributors +- Bhagya Silva (about.me/bhagyas) diff --git a/brew_formula/vimv.rb b/brew_formula/vimv.rb new file mode 100644 index 0000000..00ddb6d --- /dev/null +++ b/brew_formula/vimv.rb @@ -0,0 +1,14 @@ +class Vimv < Formula + desc "vimv is a terminal-based file rename utility that lets you easily mass-rename files using Vim" + homepage "https://github.com/thameera/vimv" + url "https://raw.githubusercontent.com/thameera/vimv/master/vimv" + version "1.0" + sha256 "b7cd3c652266b53798357b9930645a3415394e9b5da6e6979bb8fa5ac253aa41" + bottle :unneeded + def install + bin.install "vimv" + end + + test do + end +end From df01d139a62dd6b7ef623f11e94e497f19ed8cc0 Mon Sep 17 00:00:00 2001 From: Bhagya Silva Date: Thu, 11 Jul 2019 17:50:50 +0200 Subject: [PATCH 2/2] Updating documentation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 8af6cde..92c90c1 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,14 @@ curl https://raw.githubusercontent.com/thameera/vimv/master/vimv > ~/bin/vimv && Or simply copy the `vimv` file to a location in your `$PATH` and make it executable. +### Installing with Homebrew + +Run the following. + +``` +brew install https://raw.githubusercontent.com/thameera/vimv/master/brew_formula/vimv.rb +```` + ## Usage 1. Go to a directory and enter `vimv` with optionally, a list of files to rename.