about summary refs log tree commit diff
path: root/Functions/Completion/__files
blob: dfade8c7fc16a96a7d84a7d3232bdb197699a7ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#helper

# 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