aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/zsh-history-substring-search.rb
blob: 163ad593ed8d4f34ad180ddbdb3f2b6dc655459e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class ZshHistorySubstringSearch < Formula
  homepage 'https://github.com/zsh-users/zsh-history-substring-search'
  url 'https://github.com/zsh-users/zsh-history-substring-search/archive/v1.0.0.tar.gz'
  sha1 'c64cab22664fc62479ccf687ba55410177a3f5d6'

  def install
    inreplace "README.md", "source zsh-history", "source #{opt_prefix}/zsh-history"
    prefix.install Dir['*.zsh']
  end

  def caveats; <<-EOS.undent
    For setup instructions:
      more "#{opt_prefix}/README.md"
    EOS
  end
end