Files
z/README
T

34 lines
1.1 KiB
Plaintext
Raw Normal View History

2009-06-25 18:47:05 -04:00
z is the new j
2009-07-27 12:55:52 -04:00
First, there was j: http://github.com/rupa/j/.
2009-06-25 18:47:05 -04:00
2009-07-27 12:55:52 -04:00
Then, there was j2: http://github.com/rupa/j2/, with some python added. Made
2009-06-25 18:47:05 -04:00
it easier to experiment with some stuff I'd been thinking about.
2009-06-25 18:49:14 -04:00
Now there's this, where I rewrote j2 back in bash. I like it. Sorry about all
the repos , but it kind of grew this way.
2009-06-25 18:47:05 -04:00
2009-10-13 19:54:41 -04:00
The biggest change from j is the use of 'frecency' for weighting. Directories
2010-02-10 14:46:06 -05:00
that have low ranking but were accessed recently, will quickly have higher rank.
2009-10-13 19:54:41 -04:00
The -r switch preserves the old behavior.
2009-06-26 11:22:25 -04:00
# maintains a jump-list of the directories you actually use
#
# INSTALL:
# * put something like this in your .bashrc:
# . /path/to/z.sh
# * put something like this in your .zshrc:
# . /path/to/z.sh
# function precmd () {
# z --add "$(pwd -P)"
# }
2009-06-26 11:22:25 -04:00
# * cd around for a while to build up the db
# * PROFIT!!
#
# USE:
2011-02-06 19:04:56 -05:00
# * z foo # cd to most frecent dir matching foo
# * z foo bar # cd to most frecent dir matching foo and bar
# * z -r foo # cd to highest ranked dir matching foo
# * z -t foo # cd to most recently accessed dir matching foo
2009-06-26 11:22:25 -04:00
# * z -l foo # list all dirs matching foo (by frecency)