about summary refs log tree commit diff
path: root/Completion/Base/_command_names
blob: 8f75f1a778d09d47f4b521910a586ea87a3fe368 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#compdef -command-

local nm=$compstate[nmatches] ret=1

compgen -c && ret=0

if [[ nm -eq compstate[nmatches] ]]; then
  _path_files -/g "*(*)"
else
  return ret
fi