about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-01-30 16:24:20 +0000
committerPeter Stephenson <pws@zsh.org>2015-01-30 16:24:20 +0000
commit1c942291f8a41d80d7db4e7513adf06edfe50277 (patch)
treedfdbc105711ee1d6114e741dc9daa7d1c1134603 /Completion/Zsh
parentbc8491c3dc939411546d0b5ee5fe25551bce424f (diff)
downloadzsh-1c942291f8a41d80d7db4e7513adf06edfe50277.tar.gz
zsh-1c942291f8a41d80d7db4e7513adf06edfe50277.tar.xz
zsh-1c942291f8a41d80d7db4e7513adf06edfe50277.zip
34435: Update emulate completion.
Add new feature to run command in emulation.

Factor out handling of quoted command string to new function.
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_emulate6
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Zsh/Command/_emulate b/Completion/Zsh/Command/_emulate
index e562d6834..d6fb0c3d9 100644
--- a/Completion/Zsh/Command/_emulate
+++ b/Completion/Zsh/Command/_emulate
@@ -1,6 +1,8 @@
 #compdef emulate
 
-_arguments -C -s -A "-*" \
+_arguments -C -s \
   '-L[set local_options and local_traps as well]' \
   '-R[reset all options instead of only those needed for script portability]' \
-  '::shell to emulate:(zsh sh ksh csh)'
+  '1:shell to emulate:(zsh sh ksh csh)' \
+  '2:specify optional command:(-c)' \
+  '3:command:_cmdstring'