about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2012-05-17 13:37:08 +0000
committerMikael Magnusson <mikachu@gmail.com>2012-05-17 13:37:08 +0000
commit95f02efe7e2aeae654b05acb0f36185f7e14957d (patch)
treef6932680fc560d8db21ba87a9018ea1958620091
parent08408fe134df663bac2ad8153b3502dff0065f2e (diff)
downloadzsh-95f02efe7e2aeae654b05acb0f36185f7e14957d.tar.gz
zsh-95f02efe7e2aeae654b05acb0f36185f7e14957d.tar.xz
zsh-95f02efe7e2aeae654b05acb0f36185f7e14957d.zip
30474: add ssh -O cancel completion
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_ssh4
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 98f932822..dbe7f85f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
 	* 30473: Completion/Linux/Command/_strace: update for 4.7 and
 	mark all options as taking sticked arguments.
 
+	* 30474: Completion/Unix/Command/_ssh: Add -O cancel.
+
 2012-05-14  Mikael Magnusson  <mikachu@gmail.com>
 
 	* 30468: Functions/Prompts/prompt_fade_setup: add missing $
@@ -16306,5 +16308,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5654 $
+* $Revision: 1.5655 $
 *****************************************************
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 8a06bf8bb..7e85e2bb6 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -1,6 +1,6 @@
 #compdef ssh slogin=ssh scp ssh-add ssh-agent ssh-keygen sftp ssh-copy-id
 
-# Completions currently based on OpenSSH 5.9 (released on 2011-09-06).
+# Completions currently based on OpenSSH 6.0 (released on 2012-04-22).
 #
 # TODO: update ssh-keygen (not based on 5.9)
 # TODO: sshd, ssh-keyscan, ssh-keysign
@@ -50,7 +50,7 @@ _ssh () {
       '(-1)-m+[specify mac algorithms]:mac spec:->macs' \
       '(-1)-N[do not execute a remote command (protocol version 2 only)]' \
       '-n[redirect stdin from /dev/null]' \
-      '-O:multiplex control command:((check\:"check master process is running" exit\:"request the master to exit" forward\:"request forward without command execution" stop\:"request the master to stop accepting further multiplexing requests"))' \
+      '-O:multiplex control command:((check\:"check master process is running" exit\:"request the master to exit" forward\:"request forward without command execution" stop\:"request the master to stop accepting further multiplexing requests" cancel\:"cancel existing forwardings with -L and/or -R"))' \
       '-P[use non privileged port]' \
       '-p+[specify port on remote host]:port number on remote host' \
       '(-v)*-q[quiet operation]' \