about summary refs log tree commit diff
path: root/Completion/Unix/Type
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-01-16 16:29:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-01-16 16:29:51 +0000
commitd7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87 (patch)
tree1f21ac9faf956d67f24e2005b82a42264a27f535 /Completion/Unix/Type
parent8476aa7fc2faea453c3e07dae2e58535fa2a7086 (diff)
downloadzsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.tar.gz
zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.tar.xz
zsh-d7822305b4a20ba09ef0c9eb0c6c9bf697c1ee87.zip
16461: a number of minor completion function updates
Diffstat (limited to 'Completion/Unix/Type')
-rw-r--r--Completion/Unix/Type/.distfiles2
-rw-r--r--Completion/Unix/Type/_terminals8
2 files changed, 9 insertions, 1 deletions
diff --git a/Completion/Unix/Type/.distfiles b/Completion/Unix/Type/.distfiles
index 04c30b4b0..40a193a40 100644
--- a/Completion/Unix/Type/.distfiles
+++ b/Completion/Unix/Type/.distfiles
@@ -8,5 +8,5 @@ _domains             _path_files          _ps                  _user_at_host
 _files               _pdf                 _pspdf               _users
 _groups              _perl_basepods       _signals             _users_on
 _hosts               _perl_builtin_funcs  _tar_archive         _time_zone
-_file_systems        _net_interfaces
+_file_systems        _net_interfaces      _terminals
 '
diff --git a/Completion/Unix/Type/_terminals b/Completion/Unix/Type/_terminals
new file mode 100644
index 000000000..7dbfeeba5
--- /dev/null
+++ b/Completion/Unix/Type/_terminals
@@ -0,0 +1,8 @@
+#compdef infocmp
+
+local desc expl
+
+desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo )
+
+_wanted terminals expl 'terminal name' \
+    compadd "$@" - $desc/*/*(N:t)