aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/z.rb
blob: 672cdadb329eb24b58a5e6674eb3d188ea1da1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Z < Formula
  homepage 'https://github.com/rupa/z'
  url 'https://github.com/rupa/z/archive/v1.8.tar.gz'
  sha1 '7906929c23743ae954df758f3828cb225a517c51'

  head 'https://github.com/rupa/z.git'

  def install
    (prefix/'etc/profile.d').install 'z.sh'
    man1.install 'z.1'
  end

  def caveats; <<-EOS.undent
    For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:
      . `brew --prefix`/etc/profile.d/z.sh
    EOS
  end
end