From ce3330e91f22cfcbc421c02767119e36f24ad638 Mon Sep 17 00:00:00 2001 From: rupa Date: Sun, 3 Mar 2013 01:59:26 -0500 Subject: [PATCH] Make -c without args work like regular z does --- z.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z.sh b/z.sh index aec8967..a551d24 100755 --- a/z.sh +++ b/z.sh @@ -109,7 +109,7 @@ _z() { --) while [ "$1" ]; do shift; local fnd="$fnd $1";done;; *) local fnd="$fnd $1";; esac; local last=$1; shift; done - [ "$fnd" ] || local list=1 + [ "$fnd" -a "$fnd" != "$PWD " ] || local list=1 # if we hit enter on a completion just go there case "$last" in