rupa
a0f58616ec
use a case statement rather than a bash substring, for portability
2011-08-03 16:13:15 -04:00
rupa
3638788227
remove a debug line
2011-08-02 15:51:50 -04:00
rupa
08044a32c5
fix zsh tab completion, which I believe has been broken since 84ace8e8a9
2011-08-02 15:50:46 -04:00
rupa
79dc3f340f
only cd to completions if we've actually tab completed them
...
We decide you've tab completed if the last argument begins with /, and is an
existing directory. This may still cause unexpected behavior if you do that
without tab completing.
2011-07-25 16:46:10 -04:00
rupa
2613c630bd
better error handling for issues 30 and 31
2011-07-10 15:09:15 -04:00
rupa
860fe10fe1
we don't care if awk reports a failure due to no .z file. Closes #31
2011-07-09 21:11:38 -04:00
rupa
dfc42cfba8
minor style change after pulling from Enlik
2011-06-29 16:13:37 -04:00
Sławomir Nizio
3f22f53d7d
Check return status of awk when adding an entry.
...
This will avoid truncating data file to zero length when disk is full.
2011-06-26 01:01:40 +02:00
Sławomir Nizio
3e103cf8a5
Use actual return status, not 'local' builtin's.
2011-06-26 00:52:24 +02:00
rupa
84ace8e8a9
rename z() to _z(), aliased to z. update manpage and readme.
...
Alias allows cmd to be overriden, and makes it so z prints to STDOUT as
expected. Not well tested on zsh.
2011-06-08 17:06:01 -04:00
Simon Heimlicher
a8fa136820
Allow spaces in directory names (fix only works for zsh)
2011-05-03 11:53:58 +02:00
rupa
22b68c7e96
use 'test' to check for file ownership. closes #25 . thanks sjmadsen.
2011-04-27 14:30:30 -04:00
rupa
bad41c20ca
better tests for file ownership. closes #24 and #25
2011-04-27 03:19:27 -04:00
rupa
85f1c2e73c
typo
2011-04-14 09:05:55 -04:00
rupa
d96f3c99ec
bail out if we're another user but our env is still from olduser - prevent clobbering our db file
2011-04-14 08:28:08 -04:00
rupa
84837e575f
suppress any errors from PROMPT_COMMAND
2011-04-14 08:08:50 -04:00
rupa
67cd38d05a
remove shebang line. It's not necessary as the script is sourced, and it implies bash only
2011-02-28 17:27:33 -05:00
rupa
107fa3e1a8
deal with 'set -C'. closes #16
2011-02-23 15:23:23 -05:00
rupa
c415a22158
license under WTFPL. Closes #13 - I think...
2011-02-19 14:25:20 -05:00
rupa
73edb4969c
docs
2011-02-06 19:12:39 -05:00
rupa
5d6ab0a07f
let's try using env in case people have aliases mv or rm. closes #11
2011-02-06 18:55:51 -05:00
rupa
fe143668c1
only set $PROMPT_COMMAND under bash. Closes #10
2011-01-28 15:30:11 -05:00
rupa
5142b69212
use mktemp to prevent file clobbering (d'oh!). closes #9
2011-01-27 14:22:57 -05:00
Josh Dick
3f418bab5d
zsh support for z with tab completion - precmd() was found inside sjl/z-zsh
2010-12-18 07:29:22 +00:00
rupa
50e01eeba8
supress a rare error from pwd, and formatting
2010-12-16 03:12:04 -05:00
rupa
91c3b9ecd2
variable quoting for $HOME with spaces. seems like it works.
2010-04-06 17:07:20 -04:00
rupa
15d37f8928
should fix issues with spaces in $HOME
2010-03-31 19:29:22 -04:00
rupa
0f7f16b229
smartcase in completions - ie only case sensitive if there is an uppercase letter in search
2010-02-15 15:33:36 -05:00
rupa
10e2de9cf2
make completions case-insensitive
2010-02-15 11:20:51 -05:00
rupa
8a125d9f3d
make the cd variable local. make PROMPT_COMMAND checking a bit more robust.
2010-02-10 14:40:54 -05:00
rupa
47c4f3b3d5
minor formatting change in list output
2009-10-13 19:46:37 -04:00
rupa
0904fc4c04
rename the case array to wcase, as gawk can be compiled with support for
...
switch/case, in which event case is a reserved word, and causes errors.
Closes gh-2.
2009-10-13 19:42:10 -04:00
rupa
151872282f
protect against a malformed regex deleting your
2009-07-21 15:13:38 -04:00
rupa
45dd885e7c
documentation
2009-07-06 15:55:56 -04:00
rupa
eacb0e8cd3
pass tmpfile name to awk in a variable. BSD awk (which OSX appears to use) doesn't like to redirect to concatenated filenames, and FILENAME is not available in the BEGIN clause, which is where i'd like to concatenate it, so this seemed the best approach. Closes gh-1
2009-07-02 12:18:53 -04:00
rupa
66cb4864b0
iphone compatibility - use fd redirects rather than explicitly naming /dev/stderr.
2009-07-02 10:54:49 -04:00
rupa
46bb84b76c
typo
2009-06-26 11:26:07 -04:00
rupa
7e8f0dad3a
documentation
2009-06-26 11:22:25 -04:00
rupa
784eafbc3d
don't complain if isn't there yet
2009-06-26 11:08:36 -04:00
rupa
9cba24cb14
oops missed a var when renaming
2009-06-24 20:05:03 -04:00
rupa
b0d66247eb
changed shortest to short
2009-06-23 12:28:25 -04:00
rupa
3ebf95aee5
golf
2009-06-22 22:43:14 -04:00
rupa
33b6afba4e
move a line
2009-06-22 22:19:50 -04:00
rupa
abe28244aa
beter variable names
2009-06-22 21:48:30 -04:00
rupa
ac111ffb15
light golfing
2009-06-20 12:23:56 -04:00
rupa
4606f549fc
zz -> z
2009-06-19 13:58:10 -04:00
rupa
c75009c94f
zz -> z
2009-06-19 13:57:34 -04:00