Files
z/README
T

29 lines
1.0 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
# * cd around for a while to build up the db
# * PROFIT!!
#
# USE:
# * z foo # goes to most frecent dir matching foo
# * z foo bar # goes to most frecent dir matching foo and bar
2009-07-06 15:55:56 -04:00
# * z -r foo # goes to highest ranked dir matching foo
# * z -t foo # goes 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)