about summary refs log tree commit diff
path: root/Completion/Darwin/Command/_open
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2004-07-23 13:37:42 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2004-07-23 13:37:42 +0000
commit8605ba6dacb27d48be99fd762b54aaac1a6b4958 (patch)
treefff2a34f6aa83d39a4f7d2241485af8b3ff67647 /Completion/Darwin/Command/_open
parentd8e4bb5a383a8566e7ee86466ebe057c45b03201 (diff)
downloadzsh-8605ba6dacb27d48be99fd762b54aaac1a6b4958.tar.gz
zsh-8605ba6dacb27d48be99fd762b54aaac1a6b4958.tar.xz
zsh-8605ba6dacb27d48be99fd762b54aaac1a6b4958.zip
Motoi Washida: 20179: new completions for Mac OS X
Diffstat (limited to 'Completion/Darwin/Command/_open')
-rw-r--r--Completion/Darwin/Command/_open12
1 files changed, 12 insertions, 0 deletions
diff --git a/Completion/Darwin/Command/_open b/Completion/Darwin/Command/_open
new file mode 100644
index 000000000..9478dd562
--- /dev/null
+++ b/Completion/Darwin/Command/_open
@@ -0,0 +1,12 @@
+#compdef open
+
+local curcontext="$curcontext" state line
+
+_arguments -C \
+  '-a[specify application]:application:->open_mac_applications' \
+  '-e[open with TextEdit]' \
+  '*:files:_webbrowser'
+
+if [[ -n "$state" ]]; then
+  _mac_applications || _files
+fi