historian 0.2 (new formula)
Install historian bash history utility. https://github.com/jcsalterego/historian Closes #12407. Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
parent
ecb032e570
commit
4075bb9b82
1 changed files with 21 additions and 0 deletions
21
Formula/historian.rb
Normal file
21
Formula/historian.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class Historian < Formula
|
||||
desc "Command-line utility for managing shell history in a SQLite database."
|
||||
homepage "https://github.com/jcsalterego/historian"
|
||||
url "https://github.com/jcsalterego/historian/archive/0.0.2.tar.gz"
|
||||
sha256 "691b131290ddf06142a747755412115fec996cb9cc2ad8e8f728118788b3fe05"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
def install
|
||||
bin.install "hist"
|
||||
end
|
||||
|
||||
test do
|
||||
ENV["HISTORIAN_SRC"] = "test_history"
|
||||
(testpath/"test_history").write <<-EOS.undent
|
||||
brew update
|
||||
brew upgrade
|
||||
EOS
|
||||
system bin/"hist", "import"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue