Z 1.0
Tracks your most used directories, based on 'frecency'. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
36ddd06bbc
commit
8c1f16ea73
1 changed files with 29 additions and 0 deletions
29
Formula/z.rb
Normal file
29
Formula/z.rb
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue