about summary refs log tree commit diff
path: root/Functions/Completion/_files
blob: ab3006e39e5f77417503dad1df44e194e790cf89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#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