diff options
| author | Paul Mucur | 2011-02-27 23:08:50 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-13 14:41:20 -0700 |
| commit | f578f60a93ed273d352f8a2806cbca4462433f98 (patch) | |
| tree | d1f47d354ad2e57defc1ff87632e638cc88d97a5 /Library | |
| parent | 0936f8bb9df8749e12c733eaa69dcd2d50cbbb57 (diff) | |
| download | homebrew-f578f60a93ed273d352f8a2806cbca4462433f98.tar.bz2 | |
Z 1.0
Tracks your most used directories, based on 'frecency'.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/z.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/z.rb b/Library/Formula/z.rb new file mode 100644 index 000000000..befac25a4 --- /dev/null +++ b/Library/Formula/z.rb @@ -0,0 +1,29 @@ +require 'formula' + +class Z < Formula + homepage 'https://github.com/rupa/z' + url 'https://github.com/rupa/z/tarball/v1.0' + sha1 '788823562d7f03542685c1d839a9c74165cdb0dc' + + head 'git://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, put something like this in your $HOME/.bashrc: + + . `brew --prefix`/etc/profile.d/z.sh + + For Zsh, put something like this in your $HOME/.zshrc: + + . `brew --prefix`/etc/profile.d/z.sh + function precmd () { + z --add "$(pwd -P)" + } + EOS + end +end + |
