documentation

This commit is contained in:
rupa committed 2009-06-26 11:22:25 -04:00
1 parent 784eafbc3d
commit 7e8f0dad3a
2 files changed
+28 -1

No files matched your search

+14
View File
@@ -8,3 +8,17 @@ it easier to experiment with some stuff I'd been thinking about.
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.
# 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
# * z -r rank # goes to highest ranked dir matching foo
# * z -t rank # goes to most recently accessed dir matching foo
# * z -l foo # list all dirs matching foo (by frecency)
+14 -1
View File
@@ -1,6 +1,19 @@
#!/bin/bash
# pure shell version of 'new j'
# 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
# * z -r rank # goes to highest ranked dir matching foo
# * z -t rank # goes to most recently accessed dir matching foo
# * z -l foo # list all dirs matching foo (by frecency)
z() {
local datafile=$HOME/.z