Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: ssh-copy-id (_ssh)



For people not using Monkeysphere.

Index: Completion/Unix/Command/_ssh
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_ssh,v
retrieving revision 1.46
diff -u -r1.46 _ssh
--- Completion/Unix/Command/_ssh	10 Dec 2011 19:37:36 -0000	1.46
+++ Completion/Unix/Command/_ssh	5 Mar 2012 15:49:43 -0000
@@ -1,4 +1,4 @@
-#compdef ssh slogin=ssh scp ssh-add ssh-agent ssh-keygen sftp
+#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).
 #
@@ -133,6 +133,11 @@
       '-s[SSH2 subsystem or path to sftp server on the remote host]' \
       '1:file:->rfile' '*:file:->file' "$common[@]" "$common_transfer[@]" && ret=0
     ;;
+  (ssh-copy-id)
+    _arguments \
+      '-i:SSH identity file:_files' \
+      ':remote host name:->userhost' \
+    ;;
   esac
 
   while [[ -n "$state" ]]; do



Messages sorted by: Reverse Date, Date, Thread, Author