about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-12 15:28:25 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-12 15:28:25 +0000
commit4026d75e5c00a5f03d1402743c70776ab8b8b5a5 (patch)
tree2e794364c51793f6954145b1ac4945b3e7f7054d /Completion
parent02e8fc1a27341bf119855c7e851e9ba3c707eed6 (diff)
downloadzsh-4026d75e5c00a5f03d1402743c70776ab8b8b5a5.tar.gz
zsh-4026d75e5c00a5f03d1402743c70776ab8b8b5a5.tar.xz
zsh-4026d75e5c00a5f03d1402743c70776ab8b8b5a5.zip
Initial revision
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_sort_tags28
1 files changed, 28 insertions, 0 deletions
diff --git a/Completion/Core/_sort_tags b/Completion/Core/_sort_tags
new file mode 100644
index 000000000..f1740511d
--- /dev/null
+++ b/Completion/Core/_sort_tags
@@ -0,0 +1,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 "$@"