#compdef z

_arguments \
  '-c[restrict matches to subdirectories of the current directory]' \
  '-e[echo the best match, don'"'"'t cd]' \
  '-h[show a brief help message]' \
  '-l[list only]' \
  '-r[match by rank only]' \
  '-t[match by recent access only]' \
  '-x[remove the current directory from the datafile EXAMPLES]' \
  '*:file:_path_files -/ -W ~'
