mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-04-24 17:12:16 +02:00
Add brew.
This commit is contained in:
parent
b0d8ff6f4a
commit
dad73b92eb
@ -57,6 +57,9 @@ for a very detailed comparison with more benchmarks and analysis.
|
|||||||
color and full Unicode support. Unlike GNU grep, `ripgrep` stays fast while
|
color and full Unicode support. Unlike GNU grep, `ripgrep` stays fast while
|
||||||
supporting Unicode (which is always on).
|
supporting Unicode (which is always on).
|
||||||
|
|
||||||
|
In other words, use `ripgrep` if you like speed, sane defaults, fewer bugs and
|
||||||
|
Unicode.
|
||||||
|
|
||||||
### Is it really faster than everything else?
|
### Is it really faster than everything else?
|
||||||
|
|
||||||
Yes. A large number of benchmarks with detailed analysis for each is
|
Yes. A large number of benchmarks with detailed analysis for each is
|
||||||
@ -96,6 +99,14 @@ but you'll need to have the
|
|||||||
Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)
|
Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools)
|
||||||
installed.
|
installed.
|
||||||
|
|
||||||
|
If you're a `brew` user, then you can install it with a custom formula
|
||||||
|
(N.B. `ripgrep` isn't actually in Homebrew yet. This just installs the binary
|
||||||
|
directly):
|
||||||
|
|
||||||
|
```
|
||||||
|
$ brew install https://github.com/BurntSushi/ripgrep/blob/master/pkg/brew/ripgrep.rb
|
||||||
|
```
|
||||||
|
|
||||||
If you're a Rust programmer, `ripgrep` can be installed with `cargo`:
|
If you're a Rust programmer, `ripgrep` can be installed with `cargo`:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
16
pkg/brew/ripgrep.rb
Normal file
16
pkg/brew/ripgrep.rb
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
require 'formula'
|
||||||
|
class Ripgrep < Formula
|
||||||
|
version '0.1.8'
|
||||||
|
desc "Search tool like grep and The Silver Searcher."
|
||||||
|
homepage "https://github.com/BurntSushi/ripgrep"
|
||||||
|
|
||||||
|
if Hardware::CPU.is_64_bit?
|
||||||
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
|
||||||
|
else
|
||||||
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-i686-apple-darwin.tar.gz"
|
||||||
|
end
|
||||||
|
|
||||||
|
def install
|
||||||
|
bin.install "rg"
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user