Skip to content

Commit 3540968

Browse files
committed
Improve help message
1 parent e77e938 commit 3540968

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

z.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,19 @@ _z() {
116116
-*) opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in
117117
c) fnd="^$PWD $fnd";;
118118
e) echo=1;;
119-
h) echo "${_Z_CMD:-z} [-cehlrtx] args" >&2; return;;
119+
h) cat <<'EOF'
120+
Usage: ${_Z_CMD:-z} [-cehlrtx] args
121+
122+
Options:
123+
-c restrict matches to subdirectories of the current directory
124+
-e echo the best match, don't cd
125+
-h show a brief help message
126+
-l list only
127+
-r match by rank only
128+
-t match by recent access only
129+
-x remove the current directory from the datafile
130+
EOF
131+
return;;
120132
l) list=1;;
121133
r) typ="rank";;
122134
t) typ="recent";;

0 commit comments

Comments
 (0)