about summary refs log tree commit diff
path: root/Completion/Core/_sort_tags
blob: f1740511d5a5bbc6b1ee4c9f5bc1f9aaceb7ea13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#autoload

comptry arguments values
comptry options

case "$contexts" in
# Some silly examples commented out:
#
# *p[bgpn]m*)           # change the order for file-completion
#   comptry globbed-files directories
#   comptry all-files
#   ;;
# *:dvips,-o*)          # automatic context set by _arguments
#   comptry all-files
#   return
#   ;;
# *:kill,*)
#   comptry processes
#   return              # this return ensures that we use only processes
#   ;;
*)
  comptry globbed-files
  comptry directories
  comptry all-files
  ;;
esac

comptry "$@"