Files
zsh/Functions/Completion/_files
1999-04-15 18:05:38 +00:00

11 lines
238 B
Plaintext

#autoload
# Utility function for completing files of a given type or any file.
# In many cases you will want to call this one instead of _path_files().
local nm=$NMATCHES
_path_files "$@"
[[ $# -ne 0 && -nmatches nm ]] && _path_files