about summary refs log tree commit diff
path: root/Completion/User/_hostports
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-12 00:02:45 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-12 00:02:45 +0000
commit567917651a0ac6f595b062e0721267a8f1585b51 (patch)
tree3374a55b18e50de6dd24f1231d9667db7a9f9bac /Completion/User/_hostports
parent48306f7ac45df11fed092383fd2ea798bc91fdec (diff)
downloadzsh-567917651a0ac6f595b062e0721267a8f1585b51.tar.gz
zsh-567917651a0ac6f595b062e0721267a8f1585b51.tar.xz
zsh-567917651a0ac6f595b062e0721267a8f1585b51.zip
Initial revision
Diffstat (limited to 'Completion/User/_hostports')
-rw-r--r--Completion/User/_hostports9
1 files changed, 9 insertions, 0 deletions
diff --git a/Completion/User/_hostports b/Completion/User/_hostports
new file mode 100644
index 000000000..9e331bb8a
--- /dev/null
+++ b/Completion/User/_hostports
@@ -0,0 +1,9 @@
+#autoload
+
+# Usage: _hostport host
+
+local host="$1"
+shift
+
+compadd "$@" - ${${(M)hosts\:#$host\:*}#*\:}
+