summaryrefslogtreecommitdiffstats
path: root/scripts/completions/zsh/_dcop
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/completions/zsh/_dcop')
-rw-r--r--scripts/completions/zsh/_dcop11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/completions/zsh/_dcop b/scripts/completions/zsh/_dcop
new file mode 100644
index 00000000..c3fe6a50
--- /dev/null
+++ b/scripts/completions/zsh/_dcop
@@ -0,0 +1,11 @@
+#compdef dcop
+
+local tmp
+
+if [ CURRENT -eq 4 ]; then
+ tmp=(`$words[1,CURRENT-1] 2>/dev/null | sed -e "s,.* \(.*\)(.*,\1,"`)
+else
+ tmp=(`$words[1,CURRENT-1] 2>/dev/null | sed -e "s,(default),default,"`)
+fi
+
+compadd -a tmp