about summary refs log tree commit diff
path: root/Completion/Unix/Type
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Type')
-rw-r--r--Completion/Unix/Type/.distfiles2
-rw-r--r--Completion/Unix/Type/_ctags_tags7
2 files changed, 8 insertions, 1 deletions
diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles
index 1392115dd..6c15f9b84 100644
--- a/Completion/Unix/Type/.distfiles
+++ b/Completion/Unix/Type/.distfiles
@@ -7,7 +7,7 @@ _directories         _other_accounts      _printers            _urls
 _domains             _path_files          _ps                  _user_at_host
 _files               _pdf                 _pspdf               _users
 _groups              _perl_basepods       _signals             _users_on
-_hosts               _tar_archive         _time_zone
+_hosts               _tar_archive         _time_zone           _ctags_tags
 _file_systems        _net_interfaces      _terminals           _locales
 _java_class          _services		  _email_addresses     _global_tags
 _mime_types
diff --git a/Completion/Unix/Type/_ctags_tags b/Completion/Unix/Type/_ctags_tags
new file mode 100644
index 000000000..2474969ab
--- /dev/null
+++ b/Completion/Unix/Type/_ctags_tags
@@ -0,0 +1,7 @@
+#autoload
+
+local expl tags
+
+[[ -r tags ]] && tags=( ${${${(f)"$(< tags)"}:#!*}%%[[:blank:]]*} )
+
+_wanted ctags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' -a "$@" - tags