Commit Graph
148 Commits
Author SHA1 Message Date
rupa 0f59bdb1f3 Merge branch 'master' into ordered_args 2013-08-18 02:42:01 -04:00
rupa dde88df53f Delete a letter in man page. 2013-08-18 02:41:29 -04:00
rupa 4932acafc7 Arguments to z must be ordered.
E.g. 'z foo bar' matches /foo/bar but not /bar/foo.
2013-08-18 02:26:08 -04:00
rupa 8053deda75 Avoid duplicate precmd functions in zsh
Hat tip @knu ... closes #110
2013-07-30 10:23:34 -04:00
rupa a3b78989b2 Merge pull request #109 from uchida/fix-for-solaris10-or-earlier
redirect to /dev/null instead of '-q' option for solaris 10 or earlier
2013-07-29 11:03:06 -07:00
Akihiro Uchida 805f6ff76d redirect to /dev/null instead of '-q' option for solaris 10 or earlier 2013-07-29 20:08:04 +09:00
rupa 6de41080cb redirect to dev/null a bit more POSIXly v1.8 2013-07-07 17:48:07 -04:00
rupa a3f3874696 Merge branch 'cleanup' of github.com:rupa/z into cleanup 2013-06-25 22:59:21 -04:00
rupa 1016795b40 Merge branch 'master' into cleanup 2013-06-25 22:58:45 -04:00
rupa 748b7ef678 Merge branch 'master' into cleanup 2013-06-24 10:15:04 -04:00
rupa ea574b79df Alternate approach to appending to PROMPT_COMMAND
Seems to work well no matter what weirdness is already in
PROMPT_COMMAND.

Thanks @godlygeek. Closes #99
2013-06-23 23:13:45 -04:00
rupa c2cdaa380c comments 2013-06-20 00:43:14 -04:00
rupa 0109444865 Cleanup
Rename variables, improve comments, etc, for clarity and to better fit
my programmerly preferences.
2013-06-18 21:37:19 -04:00
rupa 66b9ab69c1 Indentation is 4 spaces.
When I was a feckless youth, I preferred single space indentation for
shell. Now in my wise old age that feels cramped. Don't even say
anything about tabs - I will slap you.
2013-06-18 20:38:28 -04:00
rupa 4d77b0815f Merge branch 'master' into prompt_command_append
Conflicts:
	z.sh
v1.7
2013-06-09 23:16:45 -04:00
rupa 9e1e288375 remove mktemp dependency
Closes #103
2013-06-09 23:14:34 -04:00
rupa 9c6a7aca3e Handle empty PROMPT_COMMANDS 2013-05-27 14:41:16 -04:00
rupa 7570b48b16 Replace an echo with a redirect 2013-05-27 14:37:33 -04:00
rupa 54be46728d Append, rather than prepend to PROMPT_COMMAND 2013-05-27 14:16:38 -04:00
rupa 8aac576b7c revert warning if z.sh is being exec'd and not sourced
Because we can't reliably determine if we're really being exec'd.
2013-05-20 20:50:19 -04:00
rupa db827eec15 Throw away tmp files if mv fails
Attempt to get rid of stale temp files that occasionally drop. While
there is anecdotal evidence that this doesn't solve the problem, it
doesn't hurt, and it's the only place I can see to fix it.
2013-05-20 12:51:43 -04:00
rupa 19de191e25 Merge pull request #98 from baskerville/fix-typo
Fix a few typos
2013-05-18 07:59:26 -07:00
rupa 2ae54cd64e Regenerate README from man page
Closes #97
2013-05-18 10:54:42 -04:00
Bastien Dejean 6588af092f Fix a few typos 2013-05-18 11:19:16 +02:00
rupa 29dd032b56 Merge pull request #94 from baskerville/prune-pwd
New option: -x
2013-05-17 08:52:09 -07:00
Bastien Dejean b9afd5faad New option: -x
Removes the current directory from the data file.

Use case: sometimes `z tmp` lead me to `/tmp` whereas I was expecting to
be in `~/tmp`, with the new option I can do `z -x tmp`: it removes
`/tmp` from the data file and jumps to `~/tmp`.
2013-05-11 19:38:37 +02:00
rupa df34a871cb Warn user if z's datafile path is a directory.
Cause this means z will fill up the directory with temp files, and not
work.
2013-03-28 23:30:55 -04:00
rupa a41f9c6ea7 Merge pull request #86 from matthiasgoergens/master
Deal with spaces in $HOME when creating tempfile
v1.6
2013-03-17 17:23:59 -07:00
Matthias Goergens cc79eda0a9 Deal with spaces in $HOME 2013-03-17 15:03:03 +08:00
rupa 7f2b9189a0 chmod -x z.sh 2013-03-05 17:56:37 -05:00
rupa b82dadc1a8 Be explicit that -c matches should start with cwd, not just contain it. 2013-03-03 09:47:02 -05:00
rupa 2ce7fca7af Remove extra . from man page. 2013-03-03 02:54:55 -05:00
rupa 2c2ebc2b28 update README to match man page 2013-03-03 02:51:50 -05:00
rupa 76852ebb49 Allow options to be combined e.g -clt 2013-03-03 02:49:11 -05:00
rupa f5e4ff6a26 test directly, instead of testing exit variable 2013-03-03 02:24:12 -05:00
rupa ce3330e91f Make -c without args work like regular z does 2013-03-03 01:59:26 -05:00
rupa 0f3f7a437f -c option restricts matches to subdirs of cwd.
Closes #83
2013-03-03 00:54:40 -05:00
rupa b554f71399 Use _Z_CMD in z -h 2013-03-03 00:51:32 -05:00
rupa f186800c13 Add Makefile for README 2013-02-25 01:42:05 -05:00
rupa ca5661cb39 Add warning message if z.sh is executed instead of sourced.
Closes #74
2013-02-22 15:20:08 -05:00
rupa 2bdd699beb Merge pull request #78 from ntsuji/groff_man
More groff_man-ish coding style
v1.5
2013-01-22 08:30:07 -08:00
Natsuo Tsuji 396d9bc6d0 More groff_man-ish coding style 2013-01-22 23:51:34 +09:00
rupa 51dd0ba37f reflect aging formula changes in man page and README 2013-01-20 11:19:14 -05:00
rupa cf49435c73 Merge pull request #76 from nmeum/master
You only need one '=' character to check if something is equal. closes #75 and #76.
2013-01-20 08:11:06 -08:00
nmeum 1fa0463850 You only need one '=' character to check if something is equal 2013-01-20 15:19:19 +01:00
rupa b6f32ee5cd Change aging algorithm.
Aging happens when the sum of rankings passes a threshold. Raise this
threshold from 1000 to 6000.
Change aging multiplier from .9 to .99.

This formula is still pretty naive, and wants improvement, but seems to
be nicer. The previous constants tended to forget things too fast.

Closes #53, for now.
2013-01-18 19:44:28 -05:00
rupa 41a9119d38 revert an accidentally commited bit 2013-01-12 00:48:30 -05:00
rupa 61c4b1f8c0 docs
README
also removes zsh backward incompatibility warning
2013-01-12 00:45:38 -05:00
rupa 8ed575354b add exclude functionality
* Exclude dirs listed in the $_Z_EXCLUDE_DIRS array
2013-01-11 12:28:23 -05:00
rupa dfd4308ae8 ZSH USERS NOTE BACKWARD COMPATIBILITY WARNING!
Fix -t flag selecting the least, rather than most, recent matching
entry. Closes #68.
2012-09-06 11:50:57 -04:00