We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77e938 commit 3540968Copy full SHA for 3540968
z.sh
@@ -116,7 +116,19 @@ _z() {
116
-*) opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in
117
c) fnd="^$PWD $fnd";;
118
e) echo=1;;
119
- h) echo "${_Z_CMD:-z} [-cehlrtx] args" >&2; return;;
+ 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;;
132
l) list=1;;
133
r) typ="rank";;
134
t) typ="recent";;
0 commit comments